1 #include <boost/foreach.hpp>
26 std::vector<std::string> decayModeCutNames =
28 BOOST_FOREACH(
const std::string& dmName, decayModeCutNames) {
32 unsigned int nPiZero = dmPSet.
getParameter<
unsigned int>(
"pizeros");
37 std::make_pair(minCut, maxCut);
45 typedef std::pair<unsigned int, unsigned int>
IntPair;
56 double mass = tau->mass();
58 unsigned int charged = tau->signalPFChargedHadrCands().size();
59 unsigned int pizeros = tau->signalPiZeroCandidates().size();
61 std::make_pair(charged, pizeros));
66 return (mass > specificCut->second.first &&
67 mass < specificCut->
second.second);
T getParameter(std::string const &) const
std::pair< double, double > DoublePair
std::map< IntPair, DoublePair > DecayModeCutMap
#define DEFINE_FWK_MODULE(type)
~PFRecoTauDiscriminationByInvMass()
bool exists(std::string const ¶meterName) const
checks if a parameter exists
double discriminate(const reco::PFTauRef &) const override
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
U second(std::pair< T, U > const &p)
std::pair< unsigned int, unsigned int > IntPair
PFRecoTauDiscriminationByInvMass(const edm::ParameterSet &pset)
unsigned int nCharged(const GenJet &jet)
DecayModeCutMap decayModeCuts_