35 switch (candidate.
type()) {
48 switch (candidate.
type()) {
61 switch (candidate.
type()) {
79 inputTag_ (iConfig.
template getParameter<edm::InputTag>(
"inputTag")),
80 triggerType_ (iConfig.
template getParameter<int>(
"triggerType")),
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" )),
85 min_N_ (iConfig.
template getParameter<int> (
"MinN" )),
88 LogDebug(
"") <<
"Input/ptcut/etacut/ncut : "
103 makeHLTFilterDescription(desc);
105 desc.
add<
int>(
"triggerType",0);
106 desc.
add<
double>(
"MinE",-1.0);
107 desc.
add<
double>(
"MinPt",-1.0);
108 desc.
add<
double>(
"MinMass",-1.0);
109 desc.
add<
double>(
"MaxEta",-1.0);
110 desc.
add<
int>(
"MinN",1);
125 using namespace reco;
126 using namespace trigger;
128 typedef vector<T> TCollection;
148 typename TCollection::const_iterator
i ( objects->begin() );
149 for (;
i!=objects->end();
i++) {
150 if ( (
i->energy() >= min_E_) &&
151 (
i->pt() >= min_Pt_) &&
152 (
i->mass() >= min_Mass_) &&
153 ( (max_Eta_ < 0.0) || (
std::abs(
i->eta()) <= max_Eta_) ) ) {
155 ref=TRef(objects,distance(objects->begin(),
i));
156 tid_=getObjectType<T>(*i);
157 if (tid_==0) tid_=triggerType_;
int getObjectType(const T &)
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>)
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)
virtual bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct)
HLTSinglet(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)