1 #ifndef RecoTauTag_TauTagTools_CaloTauSelectorDefinition
2 #define RecoTauTag_TauTagTools_CaloTauSelectorDefinition
45 discriminators.clear();
47 for(std::vector< edm::ParameterSet >::iterator it =
discriminators_.begin();
55 disc.
m_cut = it->getParameter<
double>(
"selectionCut");
59 discriminators.push_back(disc);
63 static bool passedAllCuts;
64 for( collection::const_iterator calotau = hc->begin();
72 for (TDiscCutPairVec::iterator discIt = discriminators.begin();
73 discIt!=discriminators.end();
76 if ( (*(discIt->m_discHandle))[calotauRef] <= discIt->m_cut)
77 passedAllCuts =
false;
80 if (
cut_ ) passedAllCuts &= (*cut_)(*calotau);
T getParameter(std::string const &) const
~CaloTauSelectorDefinition()
edm::Handle< collection > HandleToCollection
std::vector< edm::ParameterSet > discriminators_
bool exists(std::string const ¶meterName) const
checks if a parameter exists
StringCutObjectSelector< reco::CaloTau > * cut_
std::vector< CaloTau > CaloTauCollection
collection of CaloTau objects
container::const_iterator const_iterator
std::vector< reco::CaloTau * > container
std::vector< TDiscCutPair > TDiscCutPairVec
reco::CaloTauCollection collection
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void select(const HandleToCollection &hc, const edm::Event &e, const edm::EventSetup &s)
const_iterator begin() const
const_iterator end() const
edm::Handle< reco::CaloTauDiscriminator > m_discHandle
CaloTauSelectorDefinition(const edm::ParameterSet &cfg)