|
|
Go to the documentation of this file.
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")),
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")) {
97 makeHLTFilterDescription(
desc);
99 desc.add<
int>(
"triggerType", 0);
100 desc.add<
double>(
"MinE", -1.0);
101 desc.add<
double>(
"MinPt", -1.0);
102 desc.add<
double>(
"MinMass", -1.0);
103 desc.add<
double>(
"MaxMass", -1.0);
104 desc.add<
double>(
"MinEta", -1.0);
105 desc.add<
double>(
"MaxEta", -1.0);
106 desc.add<
int>(
"MinN", 1);
115 template <
typename T>
121 using namespace reco;
124 typedef vector<T> TCollection;
144 typename TCollection::const_iterator
i(
objects->begin());
146 if ((
i->energy() >= min_E_) && (
i->pt() >= min_Pt_) && (
i->mass() >= min_Mass_) &&
147 ((max_Mass_ < 0.0) || (
i->mass() <= max_Mass_)) && ((min_Eta_ < 0.0) || (
std::abs(
i->eta()) >= min_Eta_)) &&
148 ((max_Eta_ < 0.0) || (
std::abs(
i->eta()) <= max_Eta_))) {
151 int tid = getObjectType<T>(*
i);
void addObject(int id, const reco::RecoEcalCandidateRef &ref)
setters for L3 collections: (id=physics type, and Ref<C>)
int getObjectType(const T &)
void addCollectionTag(const edm::InputTag &collectionTag)
collectionTags
bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::InputTag inputTag_
std::string defaultModuleLabel()
def template(fileName, svg, replaceme="REPLACEME")
HLTSinglet(const edm::ParameterSet &)
Abs< T >::type abs(const T &t)