CMS 3D CMS Logo

Public Member Functions | Private Attributes

PFRecoTauDecayModeIndexProducer Class Reference

Inheritance diagram for PFRecoTauDecayModeIndexProducer:
TauDiscriminationProducerBase< TauType, TauDiscriminator > edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

void beginEvent (const edm::Event &evt, const edm::EventSetup &evtSetup)
double discriminate (const PFTauRef &thePFTauRef)
 PFRecoTauDecayModeIndexProducer (const edm::ParameterSet &iConfig)
 ~PFRecoTauDecayModeIndexProducer ()

Private Attributes

edm::Handle
< PFTauDecayModeAssociation
decayModes_
edm::InputTag PFTauDecayModeProducer_

Detailed Description

Definition at line 19 of file PFRecoTauDecayModeIndexProducer.cc.


Constructor & Destructor Documentation

PFRecoTauDecayModeIndexProducer::PFRecoTauDecayModeIndexProducer ( const edm::ParameterSet iConfig) [inline, explicit]

Definition at line 21 of file PFRecoTauDecayModeIndexProducer.cc.

References edm::ParameterSet::getParameter().

                                                                              :PFTauDiscriminationProducerBase(iConfig) {   
         PFTauDecayModeProducer_     = iConfig.getParameter<edm::InputTag>("PFTauDecayModeProducer");
      }
PFRecoTauDecayModeIndexProducer::~PFRecoTauDecayModeIndexProducer ( ) [inline]

Definition at line 24 of file PFRecoTauDecayModeIndexProducer.cc.

{} 

Member Function Documentation

void PFRecoTauDecayModeIndexProducer::beginEvent ( const edm::Event evt,
const edm::EventSetup evtSetup 
) [virtual]

Reimplemented from TauDiscriminationProducerBase< TauType, TauDiscriminator >.

Definition at line 33 of file PFRecoTauDecayModeIndexProducer.cc.

{
   // Get the PFTau Decay Modes
   event.getByLabel(PFTauDecayModeProducer_, decayModes_);
}
double PFRecoTauDecayModeIndexProducer::discriminate ( const PFTauRef thePFTauRef)

Definition at line 39 of file PFRecoTauDecayModeIndexProducer.cc.

References reco::PFTauDecayMode::getDecayMode().

{
   int theDecayModeIndex = -1;

   const PFTauDecayMode& theDecayMode = (*decayModes_)[thePFTauRef];

   // retrieve decay mode
   theDecayModeIndex = static_cast<int>(theDecayMode.getDecayMode()); 

   if (theDecayModeIndex < 0) theDecayModeIndex = -1;

   return theDecayModeIndex;
}

Member Data Documentation

Definition at line 29 of file PFRecoTauDecayModeIndexProducer.cc.

Definition at line 28 of file PFRecoTauDecayModeIndexProducer.cc.