1 #ifndef HLTrigger_HLTCountNumberOfObject_H 26 template <
class OColl>
30 src_(iConfig.getParameter<
edm::InputTag>(
"src")),
31 minN_(iConfig.getParameter<
int>(
"MinN")),
32 maxN_(iConfig.getParameter<
int>(
"MaxN"))
44 desc.
add<
int>(
"MinN",0);
45 desc.
add<
int>(
"MaxN",99999);
54 int s=oHandle->size();
58 LogDebug(
"HLTCountNumberOfObject")<<
module(iEvent)<<
" sees: "<<s<<
" objects. Filtere answer is: "<<(answer?
"true":
"false");
std::string defaultModuleLabel()
virtual bool hltFilter(edm::Event &iEvent, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
edm::EDGetTokenT< OColl > srcToken_
~HLTCountNumberOfObject()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
int module(edm::Event const &) const
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)