2 #include <boost/assign.hpp>
12 static std::map<std::string, reco::PFTau::hadronicDecayMode> dmTranslator =
13 boost::assign::map_list_of
26 int modeAsInt =
static_cast<int>(
mode);
31 int modeAsInt =
static_cast<int>(
mode);
36 unsigned int nCharged,
unsigned int nPiZeros) {
42 unsigned int trackIndex = (nCharged-1)*(maxPiZeros+1);
46 nPiZeros = (nPiZeros <= maxPiZeros) ? nPiZeros : maxPiZeros;
51 const std::string&
name) {
52 std::map<std::string, reco::PFTau::hadronicDecayMode>::const_iterator
53 found = dmTranslator.find(name);
54 if (found != dmTranslator.end()) {
std::string genTauDecayMode(const reco::CompositePtrCandidate &c)
PFTau::hadronicDecayMode translateGenDecayModeToReco(const std::string &genName)
Convert a genTau decay mode string ('oneProng0Pi0') to the RECO enum.
PFTau::hadronicDecayMode translateDecayMode(unsigned int nCharged, unsigned int nPiZero)
PFTau::hadronicDecayMode getDecayMode(const reco::GenJet *genJet)
Jets made from MC generator particles.
unsigned int nCharged(const GenJet &jet)
unsigned int piZerosInDecayMode(PFTau::hadronicDecayMode mode)
unsigned int chargedHadronsInDecayMode(PFTau::hadronicDecayMode mode)
Reverse mapping of decay modes into multiplicities.