27 template<
typename T,
int T
id>
29 inputTag_ (iConfig.
template getParameter<edm::InputTag>(
"inputTag")),
30 saveTag_ (iConfig.
template getUntrackedParameter<bool> (
"saveTag",
false)),
31 observable_ (iConfig.
template getParameter<std::string>(
"observable")),
32 min_ (iConfig.
template getParameter<double>(
"Min")),
33 max_ (iConfig.
template getParameter<double>(
"Max")),
34 min_N_ (iConfig.
template getParameter<int>(
"MinN")),
37 LogDebug(
"") <<
"InputTags and cuts : "
39 <<
" Range [" <<
min_ <<
" " <<
max_ <<
"]"
66 produces<trigger::TriggerFilterObjectWithRefs>();
69 template<
typename T,
int T
id>
79 template<
typename T,
int T
id>
86 using namespace trigger;
88 typedef vector<T> TCollection;
96 auto_ptr<TriggerFilterObjectWithRefs>
98 if (saveTag_) filterobject->addCollectionTag(inputTag_);
106 if (!objects.isValid()) {
107 LogDebug(
"") << inputTag_ <<
" collection not found!";
108 iEvent.
put(filterobject);
112 LogDebug(
"") <<
"Size of MET collection: " << objects->size();
113 if (objects->size()==0) {
114 LogDebug(
"") <<
"MET collection does not contain a MET object!";
115 }
else if (objects->size()>1) {
116 LogDebug(
"") <<
"MET collection contains more than one MET object!";
121 typename TCollection::const_iterator ibegin(objects->begin());
122 typename TCollection::const_iterator iend(objects->end());
123 typename TCollection::const_iterator iter;
124 for (iter=ibegin; iter!=iend; iter++) {
130 value=iter->mEtSig();
132 value=iter->e_longitudinal();
139 if ( ( (min_<0.0) || (min_<=value) ) &&
140 ( (max_<0.0) || (value<=max_) ) ) {
142 ref=TRef(objects,distance(ibegin,iter));
143 filterobject->addObject(tid_,ref);
149 const bool accept(n>=min_N_);
152 iEvent.
put(filterobject);
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.
HLTGlobalSums(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual bool filter(edm::Event &, const edm::EventSetup &)