1 #ifndef RecoTauTag_TauTagTools_PFTauSelectorDefinition 2 #define RecoTauTag_TauTagTools_PFTauSelectorDefinition 14 #include <boost/foreach.hpp> 22 typedef std::vector< const reco::PFTau *>
container;
34 cfg.
getParameter<std::vector<edm::ParameterSet> >(
"discriminators");
59 <<
"an invalid PFTau handle with ProductID" 60 << hc.
id() <<
" passed to PFTauSelector.";
68 const size_t nTaus = hc->size();
69 for (
size_t iTau = 0; iTau < nTaus; ++iTau) {
81 if (passed &&
cut_.get()) {
82 passed = (*cut_)(*tau);
95 std::auto_ptr<StringCutObjectSelector<reco::PFTau> >
cut_;
PFTauSelectorDefinition(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
T getParameter(std::string const &) const
reco::PFTauCollection collection
std::vector< const reco::PFTau * > container
const_iterator begin() const
std::vector< PFTau > PFTauCollection
collection of PFTau objects
DiscCutPairVec discriminators_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void select(const HandleToCollection &hc, const edm::Event &e, const edm::EventSetup &s)
edm::Handle< collection > HandleToCollection
container::const_iterator const_iterator
const_iterator end() const
edm::Handle< reco::PFTauDiscriminator > handle
T const * get() const
Returns C++ pointer to the item.
edm::EDGetTokenT< reco::PFTauDiscriminator > inputToken
std::vector< DiscCutPair > DiscCutPairVec
std::auto_ptr< StringCutObjectSelector< reco::PFTau > > cut_