Go to the documentation of this file.
30 constexpr
bool same(
char const *x,
char const *y) {
return !*
x && !*
y ?
true : (*
x == *
y && same(x + 1, y + 1)); }
34 : same(entries->label,
label) ? entries->mode
35 : decayModeStringToId(
label, entries + 1);
39 return !entries->label ?
"unknown"
40 : (entries->mode ==
mode ? entries->label : decayModeIdToString(
mode, entries + 1));
45 int modeAsInt = static_cast<int>(
mode);
50 int modeAsInt = static_cast<int>(
mode);
67 return static_cast<PFTau::hadronicDecayMode>(trackIndex +
nPiZeros);
71 return decayModeStringToId(
name.c_str(), dmTranslatorMap);
75 return decayModeIdToString(
decayMode, dmTranslatorMap);
PFTau::hadronicDecayMode getDecayMode(const reco::GenJet *genJet)
Jets made from MC generator particles.
PFTau::hadronicDecayMode translateGenDecayModeToReco(const std::string &genName)
Convert a genTau decay mode string ('oneProng0Pi0') to the RECO enum.
std::string translateRecoDecayModeToGen(PFTau::hadronicDecayMode decayMode)
Convert a RECO enum decay mode to a string ('oneProng0Pi0')
PFTau::hadronicDecayMode translateDecayMode(unsigned int nCharged, unsigned int nPiZero)
unsigned int piZerosInDecayMode(PFTau::hadronicDecayMode mode)
unsigned int chargedHadronsInDecayMode(PFTau::hadronicDecayMode mode)
Reverse mapping of decay modes into multiplicities.
std::string genTauDecayMode(const reco::CompositePtrCandidate &c)