CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CaloRecoTauDiscriminationByCharge Class Reference
Inheritance diagram for CaloRecoTauDiscriminationByCharge:
TauDiscriminationProducerBase< TauType, TauDiscriminator > edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

Public Member Functions

 CaloRecoTauDiscriminationByCharge (const edm::ParameterSet &iConfig)
 
double discriminate (const reco::CaloTauRef &pfTau)
 
 ~CaloRecoTauDiscriminationByCharge ()
 
- Public Member Functions inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator >
virtual void beginEvent (const edm::Event &evt, const edm::EventSetup &evtSetup)
 
virtual double discriminate (const TauRef &tau)=0
 
virtual void endEvent (edm::Event &evt)
 
void produce (edm::Event &, const edm::EventSetup &)
 
 TauDiscriminationProducerBase (const edm::ParameterSet &iConfig)
 
 TauDiscriminationProducerBase ()
 
virtual ~TauDiscriminationProducerBase ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Private Attributes

uint32_t chargeReq_
 
bool oneOrThreeProng_
 

Additional Inherited Members

- Public Types inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator >
typedef std::vector< TauType > TauCollection
 
typedef edm::Ref< TauCollectionTauRef
 
typedef edm::RefProd
< TauCollection
TauRefProd
 
- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 
- Protected Attributes inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator >
double prediscriminantFailValue_
 
edm::InputTag TauProducer_
 

Detailed Description

Definition at line 11 of file CaloRecoTauDiscriminationByCharge.cc.

Constructor & Destructor Documentation

CaloRecoTauDiscriminationByCharge::CaloRecoTauDiscriminationByCharge ( const edm::ParameterSet iConfig)
inlineexplicit

Definition at line 13 of file CaloRecoTauDiscriminationByCharge.cc.

References chargeReq_, edm::ParameterSet::getParameter(), and oneOrThreeProng_.

15  chargeReq_ = iConfig.getParameter<uint32_t>("AbsChargeReq");
17  iConfig.getParameter<bool>("ApplyOneOrThreeProngCut");
18  }
T getParameter(std::string const &) const
TauDiscriminationProducerBase< reco::CaloTau, reco::CaloTauDiscriminator > CaloTauDiscriminationProducerBase
CaloRecoTauDiscriminationByCharge::~CaloRecoTauDiscriminationByCharge ( )
inline

Definition at line 19 of file CaloRecoTauDiscriminationByCharge.cc.

19 {}

Member Function Documentation

double CaloRecoTauDiscriminationByCharge::discriminate ( const reco::CaloTauRef pfTau)

Definition at line 26 of file CaloRecoTauDiscriminationByCharge.cc.

References abs, chargeReq_, and oneOrThreeProng_.

27  {
28  uint16_t nSigTk = theTauRef->signalTracks().size();
29  bool chargeok = (abs(theTauRef->charge()) == int(chargeReq_));
30  bool oneOrThreeProngOK = ( (nSigTk==1) || (nSigTk==3) || !oneOrThreeProng_ );
31 
32  return ( (chargeok && oneOrThreeProngOK) ? 1. : 0. );
33 }
#define abs(x)
Definition: mlp_lapack.h:159

Member Data Documentation

uint32_t CaloRecoTauDiscriminationByCharge::chargeReq_
private
bool CaloRecoTauDiscriminationByCharge::oneOrThreeProng_
private