27 inputTag_ (iConfig.
template getParameter<edm::InputTag>(
"inputTag")),
28 inputToken_ (consumes<std::vector<
T> >(inputTag_)),
29 triggerType_ (iConfig.
template getParameter<int>(
"triggerType")),
31 min_N_ (iConfig.
template getParameter<int> (
"MinN" )),
34 LogDebug(
"") <<
"Input/tyre/cut/ncut : "
50 makeHLTFilterDescription(desc);
52 desc.
add<
int>(
"triggerType",0);
54 desc.
add<
int>(
"MinN",1);
70 using namespace trigger;
72 typedef vector<T> TCollection;
91 typename TCollection::const_iterator
i ( objects->begin() );
92 for (;
i!=objects->end();
i++) {
95 ref=TRef(objects,distance(objects->begin(),
i));
96 filterproduct.
addObject(triggerType_,ref);
HLTSmartSinglet(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
void addObject(int id, const reco::RecoEcalCandidateRef &ref)
setters for L3 collections: (id=physics type, and Ref<C>)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void addCollectionTag(const edm::InputTag &collectionTag)
collectionTags
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)