29 ~PFRecoTauDecayModeIndexProducer()
override{}
30 double discriminate(
const PFTauRef& thePFTauRef)
const override ;
42 event.getByLabel(PFTauDecayModeProducer_, decayModes_);
45 double PFRecoTauDecayModeIndexProducer::discriminate(
const PFTauRef& thePFTauRef)
const 47 int theDecayModeIndex = -1;
52 theDecayModeIndex =
static_cast<int>(theDecayMode.
getDecayMode());
54 if (theDecayModeIndex < 0) theDecayModeIndex = -1;
56 return theDecayModeIndex;
72 descriptions.
add(
"pfTauDecayModeIndexProducer", desc);
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
hadronicTauDecayModes getDecayMode() const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)