31 inputToken_(consumes<std::
vector<
T>>(inputTag_)),
32 triggerType_(iConfig.
template getParameter<int>(
"triggerType")),
33 observable_(iConfig.
template getParameter<std::
string>(
"observable")),
34 min_(iConfig.
template getParameter<double>(
"Min")),
35 max_(iConfig.
template getParameter<double>(
"Max")),
36 min_N_(iConfig.
template getParameter<int>(
"MinN")),
39 <<
" Range [" <<
min_ <<
" " <<
max_ <<
"]"
71 makeHLTFilterDescription(desc);
73 desc.
add<
int>(
"triggerType", 0);
75 desc.
add<
double>(
"Min", -1e125);
76 desc.
add<
double>(
"Max", +1e125);
77 desc.
add<
int>(
"MinN", 1);
93 using namespace trigger;
95 typedef vector<T> TCollection;
112 LogDebug(
"") << inputTag_ <<
" collection not found!";
118 LogDebug(
"") <<
"MET collection does not contain a MET object!";
119 }
else if (
objects->size() > 1) {
120 LogDebug(
"") <<
"MET collection contains more than one MET object!";
125 typename TCollection::const_iterator ibegin(
objects->begin());
126 typename TCollection::const_iterator iend(
objects->end());
127 typename TCollection::const_iterator iter;
128 for (iter = ibegin; iter != iend; iter++) {
131 value = iter->sumEt();
133 value = iter->mEtSig();
135 value = iter->e_longitudinal();
142 if (((min_ < 0.0) || (min_ <= value)) && ((max_ < 0.0) || (value <= max_))) {
150 const bool accept(n >= min_N_);
bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::string defaultModuleLabel()
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)
~HLTGlobalSums() override
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 &)