30 inputToken_ (consumes<std::vector<
T> >(inputTag_)),
31 triggerType_(iConfig.
template getParameter<int>(
"triggerType")),
32 observable_ (iConfig.
template getParameter<std::
string>(
"observable")),
33 min_ (iConfig.
template getParameter<double>(
"Min")),
34 max_ (iConfig.
template getParameter<double>(
"Max")),
35 min_N_ (iConfig.
template getParameter<int>(
"MinN")),
38 LogDebug(
"") <<
"InputTags and cuts : "
42 <<
" Range [" <<
min_ <<
" " <<
max_ <<
"]"
77 makeHLTFilterDescription(desc);
79 desc.
add<
int>(
"triggerType",0);
81 desc.
add<
double>(
"Min",-1e125);
82 desc.
add<
double>(
"Max",+1e125);
83 desc.
add<
int>(
"MinN",1);
99 using namespace trigger;
101 typedef vector<T> TCollection;
117 if (!objects.isValid()) {
118 LogDebug(
"") << inputTag_ <<
" collection not found!";
122 LogDebug(
"") <<
"Size of MET collection: " << objects->size();
123 if (objects->size()==0) {
124 LogDebug(
"") <<
"MET collection does not contain a MET object!";
125 }
else if (objects->size()>1) {
126 LogDebug(
"") <<
"MET collection contains more than one MET object!";
131 typename TCollection::const_iterator ibegin(objects->begin());
132 typename TCollection::const_iterator iend(objects->end());
133 typename TCollection::const_iterator iter;
134 for (iter=ibegin; iter!=iend; iter++) {
140 value=iter->mEtSig();
142 value=iter->e_longitudinal();
149 if ( ( (min_<0.0) || (min_<=value) ) &&
150 ( (max_<0.0) || (value<=max_) ) ) {
152 ref=TRef(objects,
distance(ibegin,iter));
159 const bool accept(n>=min_N_);
std::string defaultModuleLabel()
virtual bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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>)
Abs< T >::type abs(const T &t)
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)
HLTGlobalSums(const edm::ParameterSet &)