33 switch (candidate.
type()) {
46 switch (candidate.
type()) {
59 switch (candidate.
type()) {
78 inputToken_ (consumes<std::vector<
T> >(inputTag_)),
79 triggerType_ (iConfig.
template getParameter<int>(
"triggerType")),
80 min_N_ (iConfig.
template getParameter<int> (
"MinN" )),
81 min_E_ (iConfig.
template getParameter<double> (
"MinE" )),
82 min_Pt_ (iConfig.
template getParameter<double> (
"MinPt" )),
83 min_Mass_ (iConfig.
template getParameter<double> (
"MinMass" )),
84 max_Eta_ (iConfig.
template getParameter<double> (
"MaxEta" ))
86 LogDebug(
"") <<
"Input/ptcut/etacut/ncut : "
101 makeHLTFilterDescription(desc);
103 desc.
add<
int>(
"triggerType",0);
104 desc.
add<
double>(
"MinE",-1.0);
105 desc.
add<
double>(
"MinPt",-1.0);
106 desc.
add<
double>(
"MinMass",-1.0);
107 desc.
add<
double>(
"MaxEta",-1.0);
108 desc.
add<
int>(
"MinN",1);
123 using namespace reco;
124 using namespace trigger;
126 typedef vector<T> TCollection;
146 typename TCollection::const_iterator
i ( objects->begin() );
147 for (;
i!=objects->end();
i++) {
148 if ( (
i->energy() >= min_E_) &&
149 (
i->pt() >= min_Pt_) &&
150 (
i->mass() >= min_Mass_) &&
151 ( (max_Eta_ < 0.0) || (
std::abs(
i->eta()) <= max_Eta_) ) ) {
153 ref=TRef(objects,
distance(objects->begin(),
i));
154 int tid = getObjectType<T>(*i);
std::string defaultModuleLabel()
int getObjectType(const T &)
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
virtual bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::InputTag inputTag_
HLTSinglet(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)