33 switch (candidate.
type()) {
46 switch (candidate.
type()) {
59 switch (candidate.
type()) {
77 inputTag_ (iConfig.
template getParameter<
edm::InputTag>(
"inputTag")),
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 min_Eta_ (iConfig.
template getParameter<double> (
"MinEta" )),
85 max_Eta_ (iConfig.
template getParameter<double> (
"MaxEta" ))
87 LogDebug(
"") <<
"Input/ptcut/etacut/ncut : " 102 desc.
add<
int>(
"triggerType",0);
103 desc.
add<
double>(
"MinE",-1.0);
104 desc.
add<
double>(
"MinPt",-1.0);
105 desc.
add<
double>(
"MinMass",-1.0);
106 desc.
add<
double>(
"MinEta",-1.0);
107 desc.
add<
double>(
"MaxEta",-1.0);
108 desc.
add<
int>(
"MinN",1);
123 using namespace reco;
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_) &&
154 ref=TRef(objects,
distance(objects->begin(),
i));
155 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>)
virtual bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
Abs< T >::type abs(const T &t)
def template(fileName, svg, replaceme="REPLACEME")
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
void addCollectionTag(const edm::InputTag &collectionTag)
collectionTags
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::EDGetTokenT< std::vector< T > > inputToken_
const edm::InputTag inputTag_
HLTSinglet(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)