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 max_Mass_ (iConfig.
template getParameter<double> (
"MaxMass" )),
85 min_Eta_ (iConfig.
template getParameter<double> (
"MinEta" )),
86 max_Eta_ (iConfig.
template getParameter<double> (
"MaxEta" ))
88 LogDebug(
"") <<
"Input/ptcut/etacut/ncut : " 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>(
"MaxMass",-1.0);
108 desc.
add<
double>(
"MinEta",-1.0);
109 desc.
add<
double>(
"MaxEta",-1.0);
110 desc.
add<
int>(
"MinN",1);
125 using namespace reco;
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_) &&
157 ref=TRef(objects,
distance(objects->begin(),
i));
158 int tid = getObjectType<T>(*i);
int getObjectType(const T &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::string defaultModuleLabel()
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>)
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)