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
PFRecoTauDiscriminationByTauPolarization Class Reference
Inheritance diagram for PFRecoTauDiscriminationByTauPolarization:
TauDiscriminationProducerBase< TauType, TauDiscriminator > edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

Public Member Functions

void beginEvent (const Event &, const EventSetup &)
 
double discriminate (const PFTauRef &)
 
 PFRecoTauDiscriminationByTauPolarization (const ParameterSet &iConfig)
 
 ~PFRecoTauDiscriminationByTauPolarization ()
 
- Public Member Functions inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator >
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

bool booleanOutput
 
double rTauMin
 

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 13 of file PFRecoTauDiscriminationByTauPolarization.cc.

Constructor & Destructor Documentation

PFRecoTauDiscriminationByTauPolarization::PFRecoTauDiscriminationByTauPolarization ( const ParameterSet iConfig)
inlineexplicit

Definition at line 16 of file PFRecoTauDiscriminationByTauPolarization.cc.

References edm::ParameterSet::getParameter().

18  :PFTauDiscriminationProducerBase(iConfig) { // retrieve quality cuts
19  rTauMin = iConfig.getParameter<double>("rtau");
20  booleanOutput = iConfig.getParameter<bool>("BooleanOutput");
21  }
T getParameter(std::string const &) const
TauDiscriminationProducerBase< reco::PFTau, reco::PFTauDiscriminator > PFTauDiscriminationProducerBase
PFRecoTauDiscriminationByTauPolarization::~PFRecoTauDiscriminationByTauPolarization ( )
inline

Definition at line 23 of file PFRecoTauDiscriminationByTauPolarization.cc.

23 {}

Member Function Documentation

void PFRecoTauDiscriminationByTauPolarization::beginEvent ( const Event event,
const EventSetup eventSetup 
)
virtual
double PFRecoTauDiscriminationByTauPolarization::discriminate ( const PFTauRef tau)

Definition at line 37 of file PFRecoTauDiscriminationByTauPolarization.cc.

References edm::Ref< C, T, F >::isNonnull().

37  {
38 
39  double rTau = 0;
40  // rtau for PFTau has to be calculated for leading PF charged hadronic candidate
41  // calculating it from leadingTrack can (and will) give rtau > 1!
42  if(tau.isNonnull() && tau->p() > 0
43  && tau->leadPFChargedHadrCand().isNonnull()) {
44  rTau = tau->leadPFChargedHadrCand()->p()/tau->p();
45  }
46 
47  if(booleanOutput) return ( rTau > rTauMin ? 1. : 0. );
48  return rTau;
49 }
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:250

Member Data Documentation

bool PFRecoTauDiscriminationByTauPolarization::booleanOutput
private

Definition at line 29 of file PFRecoTauDiscriminationByTauPolarization.cc.

double PFRecoTauDiscriminationByTauPolarization::rTauMin
private

Definition at line 30 of file PFRecoTauDiscriminationByTauPolarization.cc.