45 photTag_ (iConfig.getParameter<edm::
InputTag>(
"photTag")),
46 elecTag_ (iConfig.getParameter<edm::
InputTag>(
"elecTag")),
47 muonTag_ (iConfig.getParameter<edm::
InputTag>(
"muonTag")),
48 tausTag_ (iConfig.getParameter<edm::
InputTag>(
"tausTag")),
49 jetsTag_ (iConfig.getParameter<edm::
InputTag>(
"jetsTag")),
50 metsTag_ (iConfig.getParameter<edm::
InputTag>(
"metsTag")),
51 mhtsTag_ (iConfig.getParameter<edm::
InputTag>(
"mhtsTag")),
52 trckTag_ (iConfig.getParameter<edm::
InputTag>(
"trckTag")),
53 ecalTag_ (iConfig.getParameter<edm::
InputTag>(
"ecalTag")),
63 min_Pt_ (iConfig.getParameter<double>(
"MinPt"))
99 desc.
add<
double>(
"MinPt",-1.0);
100 descriptions.
add(
"hltFiltCand", desc);
109 using namespace reco;
110 using namespace trigger;
158 RecoEcalCandidateCollection::const_iterator aphot(
photons->begin());
159 RecoEcalCandidateCollection::const_iterator ophot(
photons->end());
160 RecoEcalCandidateCollection::const_iterator iphot;
161 for (iphot=aphot; iphot!=ophot; iphot++) {
171 ElectronCollection::const_iterator aelec(
electrons->begin());
172 ElectronCollection::const_iterator oelec(
electrons->end());
173 ElectronCollection::const_iterator ielec;
174 for (ielec=aelec; ielec!=oelec; ielec++) {
184 RecoChargedCandidateCollection::const_iterator amuon(
muons->begin());
185 RecoChargedCandidateCollection::const_iterator omuon(
muons->end());
186 RecoChargedCandidateCollection::const_iterator imuon;
187 for (imuon=amuon; imuon!=omuon; imuon++) {
197 CaloJetCollection::const_iterator ataus(taus->begin());
198 CaloJetCollection::const_iterator otaus(taus->end());
199 CaloJetCollection::const_iterator itaus;
200 for (itaus=ataus; itaus!=otaus; itaus++) {
210 CaloJetCollection::const_iterator ajets(
jets->begin());
211 CaloJetCollection::const_iterator ojets(
jets->end());
212 CaloJetCollection::const_iterator ijets;
213 for (ijets=ajets; ijets!=ojets; ijets++) {
223 CaloMETCollection::const_iterator amets(mets->begin());
224 CaloMETCollection::const_iterator omets(mets->end());
225 CaloMETCollection::const_iterator imets;
226 for (imets=amets; imets!=omets; imets++) {
236 METCollection::const_iterator amhts(mhts->begin());
237 METCollection::const_iterator omhts(mhts->end());
238 METCollection::const_iterator imhts;
239 for (imhts=amhts; imhts!=omhts; imhts++) {
249 RecoChargedCandidateCollection::const_iterator atrcks(trcks->begin());
250 RecoChargedCandidateCollection::const_iterator otrcks(trcks->end());
251 RecoChargedCandidateCollection::const_iterator itrcks;
252 for (itrcks=atrcks; itrcks!=otrcks; itrcks++) {
262 RecoEcalCandidateCollection::const_iterator aecals(ecals->begin());
263 RecoEcalCandidateCollection::const_iterator oecals(ecals->end());
264 RecoEcalCandidateCollection::const_iterator iecals;
265 for (iecals=aecals; iecals!=oecals; iecals++) {
277 const bool accept ( (nphot>0) && (nelec>0) && (nmuon>0) && (ntaus>0) &&
279 (njets>0) && (nmets>0) && (ntrck>0) && (necal>0) );
281 LogDebug(
"") <<
"Number of g/e/m/t/j/M/H/TR/SC objects accepted:"
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > trckToken_
HLTFiltCand(const edm::ParameterSet &)
edm::EDGetTokenT< reco::CaloMETCollection > metsToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< reco::ElectronCollection > elecToken_
edm::Ref< RecoChargedCandidateCollection > RecoChargedCandidateRef
reference to an object in a collection of RecoChargedCandidate objects
edm::Ref< RecoEcalCandidateCollection > RecoEcalCandidateRef
reference to an object in a collection of RecoEcalCandidate objects
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > muonToken_
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
edm::Ref< ElectronCollection > ElectronRef
reference to an object in a collection of Electron objects
void addObject(int id, const reco::RecoEcalCandidateRef &ref)
setters for L3 collections: (id=physics type, and Ref<C>)
edm::EDGetTokenT< reco::RecoEcalCandidateCollection > photToken_
edm::EDGetTokenT< reco::CaloJetCollection > tausToken_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< Electron > ElectronCollection
collectin of Electron objects
edm::Ref< CaloJetCollection > CaloJetRef
edm references
edm::EDGetTokenT< reco::CaloJetCollection > jetsToken_
std::vector< RecoChargedCandidate > RecoChargedCandidateCollection
collectin of RecoChargedCandidate objects
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
edm::EDGetTokenT< reco::RecoEcalCandidateCollection > ecalToken_
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) const override
std::vector< RecoEcalCandidate > RecoEcalCandidateCollection
collectin of RecoEcalCandidate objects
edm::EDGetTokenT< reco::METCollection > mhtsToken_
edm::Ref< CaloMETCollection > CaloMETRef
edm references
edm::Ref< METCollection > METRef
edm references
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects