92 : isoEmSource_(iConfig.getParameter<
edm::InputTag>(
"isolatedEmSource")),
94 iConfig.getParameter<
edm::InputTag>(
"nonIsolatedEmSource")),
95 cenJetSource_(iConfig.getParameter<
edm::InputTag>(
"centralJetSource")),
96 forJetSource_(iConfig.getParameter<
edm::InputTag>(
"forwardJetSource")),
97 tauJetSource_(iConfig.getParameter<
edm::InputTag>(
"tauJetSource")),
98 muonSource_(iConfig.getParameter<
edm::InputTag>(
"muonSource")),
99 etMissSource_(iConfig.getParameter<
edm::InputTag>(
"etMissSource")),
100 htMissSource_(iConfig.getParameter<
edm::InputTag>(
"htMissSource")),
101 hfRingsSource_(iConfig.getParameter<
edm::InputTag>(
"hfRingsSource")),
102 gtReadoutSource_(iConfig.getParameter<
edm::InputTag>(
"gtReadoutSource")),
104 iConfig.getParameter<
edm::InputTag>(
"particleMapSource")),
105 file_(
"l1extra.root",
"RECREATE"),
106 hist_(
"triggers",
"Triggers",
131 cout <<
"EVENT " << ++iev << endl;
133 cout <<
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << endl;
138 cout <<
"Number of isolated EM " << isoEmColl->size() << endl;
140 for (L1EmParticleCollection::const_iterator emItr = isoEmColl->begin();
141 emItr != isoEmColl->end(); ++emItr) {
142 cout <<
" p4 (" << emItr->px() <<
", " << emItr->py() <<
", " 143 << emItr->pz() <<
", " << emItr->energy() <<
") et " << emItr->et()
144 <<
" eta " << emItr->eta() <<
" phi " << emItr->phi() << endl;
150 cout <<
"Number of non-isolated EM " << nonIsoEmColl->size() << endl;
152 for (L1EmParticleCollection::const_iterator emItr = nonIsoEmColl->begin();
153 emItr != nonIsoEmColl->end(); ++emItr) {
154 cout <<
" p4 (" << emItr->px() <<
", " << emItr->py() <<
", " 155 << emItr->pz() <<
", " << emItr->energy() <<
") et " << emItr->et()
156 <<
" eta " << emItr->eta() <<
" phi " << emItr->phi() << endl;
162 cout <<
"Number of central jets " << cenJetColl->size() << endl;
164 for (L1JetParticleCollection::const_iterator jetItr = cenJetColl->begin();
165 jetItr != cenJetColl->end(); ++jetItr) {
166 cout <<
" p4 (" << jetItr->px() <<
", " << jetItr->py() <<
", " 167 << jetItr->pz() <<
", " << jetItr->energy() <<
") et " << jetItr->et()
168 <<
" eta " << jetItr->eta() <<
" phi " << jetItr->phi() << endl;
173 cout <<
"Number of forward jets " << forJetColl->size() << endl;
175 for (L1JetParticleCollection::const_iterator jetItr = forJetColl->begin();
176 jetItr != forJetColl->end(); ++jetItr) {
177 cout <<
" p4 (" << jetItr->px() <<
", " << jetItr->py() <<
", " 178 << jetItr->pz() <<
", " << jetItr->energy() <<
") et " << jetItr->et()
179 <<
" eta " << jetItr->eta() <<
" phi " << jetItr->phi() << endl;
184 cout <<
"Number of tau jets " << tauColl->size() << endl;
186 for (L1JetParticleCollection::const_iterator tauItr = tauColl->begin();
187 tauItr != tauColl->end(); ++tauItr) {
188 cout <<
" p4 (" << tauItr->px() <<
", " << tauItr->py() <<
", " 189 << tauItr->pz() <<
", " << tauItr->energy() <<
") et " << tauItr->et()
190 <<
" eta " << tauItr->eta() <<
" phi " << tauItr->phi() << endl;
196 cout <<
"Number of muons " << muColl->size() << endl;
198 for (L1MuonParticleCollection::const_iterator muItr = muColl->begin();
199 muItr != muColl->end(); ++muItr) {
200 cout <<
" q " << muItr->charge() <<
" p4 (" << muItr->px() <<
", " 201 << muItr->py() <<
", " << muItr->pz() <<
", " << muItr->energy()
202 <<
") et " << muItr->et() <<
" eta " << muItr->eta() << endl
203 <<
" phi " << muItr->phi() <<
" iso " << muItr->isIsolated()
204 <<
" mip " << muItr->isMip() <<
" fwd " << muItr->isForward()
205 <<
" rpc " << muItr->isRPC() << endl;
211 cout <<
"MET Coll (" << etMissColl->begin()->px() <<
", " 212 << etMissColl->begin()->py() <<
", " << etMissColl->begin()->pz() <<
", " 213 << etMissColl->begin()->energy() <<
") phi " 214 << etMissColl->begin()->phi() <<
" EtTot " 215 << etMissColl->begin()->etTotal() << endl;
220 cout <<
"MHT Coll (" << htMissColl->begin()->px() <<
", " 221 << htMissColl->begin()->py() <<
", " << htMissColl->begin()->pz() <<
", " 222 << htMissColl->begin()->energy() <<
") phi " 223 << htMissColl->begin()->phi() <<
" HtTot " 224 << htMissColl->begin()->etTotal() << endl;
229 cout <<
"HF Rings:" << endl;
230 for (
int i = 0;
i < L1HFRings::kNumRings; ++
i) {
231 cout <<
" " <<
i <<
": et sum = " 232 << hfRingsColl->begin()->hfEtSum((L1HFRings::HFRingLabels)
i)
234 << hfRingsColl->begin()->hfBitCount((L1HFRings::HFRingLabels)i)
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const