PFRecoTauDiscriminationByInvMass::PFRecoTauDiscriminationByInvMass |
( |
const edm::ParameterSet & |
pset | ) |
|
|
inlineexplicit |
Definition at line 15 of file PFRecoTauDiscriminationByInvMass.cc.
References cut_, decayModeCuts_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNamesForType(), max_default_, min_default_, reco::tau::helpers::nCharged(), and benchmark_cfg::select.
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);
T getParameter(std::string const &) const
bool exists(std::string const ¶meterName) const
checks if a parameter exists
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
unsigned int nCharged(const GenJet &jet)
TauDiscriminationProducerBase< reco::PFTau, reco::PFTauDiscriminator > PFTauDiscriminationProducerBase
DecayModeCutMap decayModeCuts_
PFRecoTauDiscriminationByInvMass::~PFRecoTauDiscriminationByInvMass |
( |
| ) |
|
|
inline |
double PFRecoTauDiscriminationByInvMass::discriminate |
( |
const reco::PFTauRef & |
tau | ) |
|
Definition at line 55 of file PFRecoTauDiscriminationByInvMass.cc.
References cut_, decayModeCuts_, max_default_, min_default_, and edm::second().
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);
U second(std::pair< T, U > const &p)
DecayModeCutMap decayModeCuts_
bool PFRecoTauDiscriminationByInvMass::cut_ |
|
private |
double PFRecoTauDiscriminationByInvMass::max_default_ |
|
private |
double PFRecoTauDiscriminationByInvMass::min_default_ |
|
private |