29 inputTag_ (iConfig.
template getParameter<edm::InputTag>(
"inputTag")),
30 triggerType_(iConfig.
template getParameter<int>(
"triggerType")),
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 : "
41 <<
" Range [" <<
min_ <<
" " <<
max_ <<
"]"
76 makeHLTFilterDescription(desc);
78 desc.
add<
int>(
"triggerType",0);
80 desc.
add<
double>(
"Min",-1e125);
81 desc.
add<
double>(
"Max",+1e125);
82 desc.
add<
int>(
"MinN",1);
98 using namespace trigger;
100 typedef vector<T> TCollection;
116 if (!objects.isValid()) {
117 LogDebug(
"") << inputTag_ <<
" collection not found!";
121 LogDebug(
"") <<
"Size of MET collection: " << objects->size();
122 if (objects->size()==0) {
123 LogDebug(
"") <<
"MET collection does not contain a MET object!";
124 }
else if (objects->size()>1) {
125 LogDebug(
"") <<
"MET collection contains more than one MET object!";
130 typename TCollection::const_iterator ibegin(objects->begin());
131 typename TCollection::const_iterator iend(objects->end());
132 typename TCollection::const_iterator iter;
133 for (iter=ibegin; iter!=iend; iter++) {
139 value=iter->mEtSig();
141 value=iter->e_longitudinal();
148 if ( ( (min_<0.0) || (min_<=value) ) &&
149 ( (max_<0.0) || (value<=max_) ) ) {
151 ref=TRef(objects,distance(ibegin,iter));
158 const bool accept(n>=min_N_);
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>)
virtual bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
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 &)