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_ |
Definition at line 19 of file PFRecoTauDecayModeIndexProducer.cc.
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.
{}
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; }
Definition at line 29 of file PFRecoTauDecayModeIndexProducer.cc.
Definition at line 28 of file PFRecoTauDecayModeIndexProducer.cc.