1 #ifndef HLTrigger_HLTCountNumberOfObject_H 23 template <
class OColl>
29 minN_(iConfig.getParameter<
int>(
"MinN")),
30 maxN_(iConfig.getParameter<
int>(
"MaxN")) {
40 desc.add<
int>(
"MinN", 0);
41 desc.add<
int>(
"MaxN", 99999);
51 int s = oHandle->size();
54 answer = answer && (
s >=
minN_);
56 answer = answer && (
s <=
maxN_);
58 <<
" objects. Filtere answer is: " << (answer ?
"true" :
"false");
edm::EDGetTokenT< OColl > srcToken_
int module(edm::Event const &) const
std::string defaultModuleLabel()
bool hltFilter(edm::Event &iEvent, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
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