1 #ifndef RecoTauTag_TauTagTools_CaloTauSelectorDefinition 2 #define RecoTauTag_TauTagTools_CaloTauSelectorDefinition 52 std::vector< edm::EDGetTokenT<reco::CaloTauDiscriminator> >::iterator itToken =
discriminatorTokens_.begin();
61 disc.
m_cut = it->getParameter<
double>(
"selectionCut");
70 for( collection::const_iterator calotau = hc->begin();
82 if ( (*(discIt->m_discHandle))[calotauRef] <= discIt->m_cut)
83 passedAllCuts =
false;
86 if (
cut_ ) passedAllCuts &= (*cut_)(*calotau);
T getParameter(std::string const &) const
~CaloTauSelectorDefinition()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::Handle< collection > HandleToCollection
bool exists(std::string const ¶meterName) const
checks if a parameter exists
StringCutObjectSelector< reco::CaloTau > * cut_
TDiscCutPairVec discriminators_
CaloTauSelectorDefinition(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
std::vector< CaloTau > CaloTauCollection
collection of CaloTau objects
container::const_iterator const_iterator
std::vector< edm::EDGetTokenT< reco::CaloTauDiscriminator > > discriminatorTokens_
std::vector< reco::CaloTau * > container
std::vector< TDiscCutPair > TDiscCutPairVec
reco::CaloTauCollection collection
void select(const HandleToCollection &hc, const edm::Event &e, const edm::EventSetup &s)
const_iterator begin() const
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
const_iterator end() const
std::vector< edm::ParameterSet > discriminatorsPSets_
edm::Handle< reco::CaloTauDiscriminator > m_discHandle