1 #ifndef RecoTauTag_TauTagTools_CaloTauSelectorDefinition
2 #define RecoTauTag_TauTagTools_CaloTauSelectorDefinition
50 std::vector< edm::EDGetTokenT<reco::CaloTauDiscriminator> >::iterator itToken =
discriminatorTokens_.begin();
59 disc.
m_cut = it->getParameter<
double>(
"selectionCut");
68 for( collection::const_iterator calotau = hc->begin();
80 if ( (*(discIt->m_discHandle))[calotauRef] <= discIt->m_cut)
81 passedAllCuts =
false;
84 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_
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 >
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
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
reco::CaloTauCollection collection
void select(const HandleToCollection &hc, const edm::Event &e, const edm::EventSetup &s)
const_iterator begin() const
const_iterator end() const
std::vector< edm::ParameterSet > discriminatorsPSets_
edm::Handle< reco::CaloTauDiscriminator > m_discHandle