27 inputTag_ (iConfig.
template getParameter<edm::InputTag>(
"inputTag")),
28 inputToken_ (consumes<std::vector<
T> >(inputTag_)),
29 triggerType_(iConfig.
template getParameter<int>(
"triggerType")),
30 observable_ (iConfig.
template getParameter<std::
string>(
"observable")),
31 min_ (iConfig.
template getParameter<double>(
"Min")),
32 max_ (iConfig.
template getParameter<double>(
"Max")),
33 min_N_ (iConfig.
template getParameter<int>(
"MinN")),
36 LogDebug(
"") <<
"InputTags and cuts : "
40 <<
" Range [" <<
min_ <<
" " <<
max_ <<
"]"
75 makeHLTFilterDescription(desc);
77 desc.
add<
int>(
"triggerType",0);
79 desc.
add<
double>(
"Min",-1e125);
80 desc.
add<
double>(
"Max",+1e125);
81 desc.
add<
int>(
"MinN",1);
97 using namespace trigger;
99 typedef vector<T> TCollection;
115 if (!objects.isValid()) {
116 LogDebug(
"") << inputTag_ <<
" collection not found!";
120 LogDebug(
"") <<
"Size of MET collection: " << objects->size();
121 if (objects->size()==0) {
122 LogDebug(
"") <<
"MET collection does not contain a MET object!";
123 }
else if (objects->size()>1) {
124 LogDebug(
"") <<
"MET collection contains more than one MET object!";
129 typename TCollection::const_iterator ibegin(objects->begin());
130 typename TCollection::const_iterator iend(objects->end());
131 typename TCollection::const_iterator
iter;
138 value=
iter->mEtSig();
140 value=
iter->e_longitudinal();
147 if ( ( (min_<0.0) || (min_<=value) ) &&
148 ( (max_<0.0) || (value<=max_) ) ) {
150 ref=TRef(objects,distance(ibegin,
iter));
157 const bool accept(n>=min_N_);
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 &)