25 template<
typename T,
int T
id>
27 inputTag_ (iConfig.
template getParameter<edm::InputTag>(
"inputTag")),
28 saveTag_ (iConfig.
template getUntrackedParameter<bool>(
"saveTag",
false)),
29 min_Pt_ (iConfig.
template getParameter<double> (
"MinPt" )),
30 max_Eta_ (iConfig.
template getParameter<double> (
"MaxEta" )),
31 min_N_ (iConfig.
template getParameter<int> (
"MinN" ))
33 LogDebug(
"") <<
"Input/ptcut/etacut/ncut : "
38 produces<trigger::TriggerFilterObjectWithRefs>();
41 template<
typename T,
int T
id>
51 template<
typename T,
int T
id>
58 using namespace trigger;
60 typedef vector<T> TCollection;
68 auto_ptr<TriggerFilterObjectWithRefs>
70 if (saveTag_) filterobject->addCollectionTag(inputTag_);
81 typename TCollection::const_iterator
i ( objects->begin() );
82 for (;
i!=objects->end();
i++) {
83 if ( (
i->pt() >= min_Pt_) &&
84 ( (max_Eta_ < 0.0) || (
std::abs(
i->eta()) <= max_Eta_) ) ) {
86 ref=TRef(objects,distance(objects->begin(),
i));
87 filterobject->addObject(Tid,ref);
95 iEvent.
put(filterobject);
HLTSinglet(const edm::ParameterSet &)
virtual bool filter(edm::Event &, const edm::EventSetup &)
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const