1 #ifndef HLTrigger_HLTCountNumberOfObject_H
24 template <
class OColl>
30 minN_(iConfig.getParameter<int>(
"MinN")),
31 maxN_(iConfig.getParameter<int>(
"MaxN")) {
41 desc.
add<
int>(
"MinN", 0);
42 desc.
add<
int>(
"MaxN", 99999);
52 int s = oHandle->size();
55 answer = answer && (s >=
minN_);
57 answer = answer && (s <=
maxN_);
58 LogDebug(
"HLTCountNumberOfObject") <<
module(iEvent) <<
" sees: " << s
59 <<
" objects. Filtere answer is: " << (answer ?
"true" :
"false");
edm::EDGetTokenT< OColl > srcToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::string defaultModuleLabel()
int module(edm::Event const &) const
bool hltFilter(edm::Event &iEvent, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
HLTCountNumberOfObject(const edm::ParameterSet &iConfig)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
~HLTCountNumberOfObject() override