CMS 3D CMS Logo

L1TStage2CaloLayer2.cc
Go to the documentation of this file.
2 
4  monitorDir_(ps.getUntrackedParameter<std::string>("monitorDir","")),
5  stage2CaloLayer2JetToken_(consumes<l1t::JetBxCollection>(ps.getParameter<edm::InputTag>("stage2CaloLayer2JetSource"))),
6  stage2CaloLayer2EGammaToken_(consumes<l1t::EGammaBxCollection>(ps.getParameter<edm::InputTag>("stage2CaloLayer2EGammaSource"))),
7  stage2CaloLayer2TauToken_(consumes<l1t::TauBxCollection>(ps.getParameter<edm::InputTag>("stage2CaloLayer2TauSource"))),
8  stage2CaloLayer2EtSumToken_(consumes<l1t::EtSumBxCollection>(ps.getParameter<edm::InputTag>("stage2CaloLayer2EtSumSource"))),
9  verbose_(ps.getUntrackedParameter < bool > ("verbose", false))
10 {
11 }
12 
14 {}
15 
17 {
18 
19  //central jet
20  ibooker.setCurrentFolder(monitorDir_+"/Central-Jets");
21 
22  stage2CaloLayer2CenJetEtEtaPhi_ = ibooker.book2D("CenJetsEtEtaPhi", "CENTRAL JET E_{T} ETA PHI; Jet i#eta; Jet i#phi", 229, -114.5, 114.5, 144, -0.5, 143.5);
23  stage2CaloLayer2CenJetEta_ = ibooker.book1D("CenJetsEta", "CENTRAL JET ETA; Jet i#eta; Counts", 229, -114.5, 114.5);
24  stage2CaloLayer2CenJetPhi_ = ibooker.book1D("CenJetsPhi", "CENTRAL JET PHI; Jet i#phi; Counts", 144, -0.5, 143.5);
25  stage2CaloLayer2CenJetRank_ = ibooker.book1D("CenJetsRank", "CENTRAL JET E_{T}; Jet iE_{T}; Counts", 2048, -0.5, 2047.5);
26  stage2CaloLayer2CenJetOcc_ = ibooker.book2D("CenJetsOcc", "CENTRAL JET OCCUPANCY; i#eta; i#phi", 229, -114.5, 114.5, 144, -0.5, 143.5);
27  stage2CaloLayer2CenJetBxOcc_ = ibooker.book2D("CenJetsBxOcc", "CENTRAL JET BX OCCUPANCY; BX; Counts", 5,-2.5, 2.5, 512, -0.5, 2047.5);
28  stage2CaloLayer2CenJetQual_ = ibooker.book1D("CenJetsQual", "CENTRAL JET QUALITY; Quality; Counts", 32, -0.5, 31.5);
29 
30 
31  //forward jet
32  ibooker.setCurrentFolder(monitorDir_+"/Forward-Jets");
33 
34  stage2CaloLayer2ForJetEtEtaPhi_ = ibooker.book2D("ForJetsEtEtaPhi", "FORWARD JET E_{T} ETA PHI; Jet i#eta; Jet i#phi", 229, -114.5, 114.5, 144, -0.5, 143.5);
35  stage2CaloLayer2ForJetEta_ = ibooker.book1D("ForJetsEta", "FORWARD JET ETA; Jet i#eta; Counts", 229, -114.5, 114.5);
36  stage2CaloLayer2ForJetPhi_ = ibooker.book1D("ForJetsPhi", "FORWARD JET PHI; Jet i#phi; Counts", 144, -0.5, 143.5);
37  stage2CaloLayer2ForJetRank_ = ibooker.book1D("ForJetsRank", "FORWARD JET E_{T}; Jet iE_{T}; Counts", 2048, -0.5, 2047.5);
38  stage2CaloLayer2ForJetOcc_ = ibooker.book2D("ForJetsOcc", "FORWARD JET OCCUPANCY; Jet i#eta; Jet i#phi", 229, -114.5, 114.5, 144, -0.5, 143.5);
39  stage2CaloLayer2ForJetBxOcc_ = ibooker.book2D("ForJetsBxOcc", "FORWARD JET BX OCCUPANCY; BX; Counts", 5,-2.5, 2.5, 512, -0.5, 2047.5);
40  stage2CaloLayer2ForJetQual_ = ibooker.book1D("ForJetsQual", "FORWARD JET QUALITY; Quality; Counts", 32, -0.5, 31.5);
41 
42  //IsoEG
43  ibooker.setCurrentFolder(monitorDir_+"/Isolated-EG");
44 
45  stage2CaloLayer2EGIso_ = ibooker.book1D("EGIso", "EG ISO; Iso Flag; Counts", 4, -0.5, 3.5);
46  stage2CaloLayer2IsoEGEtEtaPhi_ = ibooker.book2D("IsoEGsEtEtaPhi", "ISO EG E_{T} ETA PHI; i#eta; i#phi", 229, -114.5, 114.5, 144, -0.5, 143.5);
47  stage2CaloLayer2IsoEGEta_ = ibooker.book1D("IsoEGsEta", "ISO EG ETA; EG i#eta; Counts", 229, -114.5, 114.5);
48  stage2CaloLayer2IsoEGPhi_ = ibooker.book1D("IsoEGsPhi", "ISO EG PHI; EG i#phi; Counts", 144, -0.5, 143.5);
49  stage2CaloLayer2IsoEGRank_ = ibooker.book1D("IsoEGsRank", "ISO EG E_{T}; EG iE_{T}; Counts", 512, -0.5, 511.5);
50  stage2CaloLayer2IsoEGOcc_ = ibooker.book2D("IsoEGsOcc", "ISO EG OCCUPANCY; i#eta; i#phi", 229, -114.5, 114.5, 144, -0.5, 143.5);
51  stage2CaloLayer2IsoEGBxOcc_ = ibooker.book2D("IsoEGsBxOcc", "ISO EG BX OCCUPANCY; BX; Counts", 5,-2.5, 2.5, 128, -0.5, 511.5);
52  stage2CaloLayer2IsoEGQual_ = ibooker.book1D("IsoEGsQual", "ISO EG QUALITY; Quality; Counts", 32, -0.5, 31.5);
53 
54  //NonIsoEG
55  ibooker.setCurrentFolder(monitorDir_+"/NonIsolated-EG");
56 
57  stage2CaloLayer2NonIsoEGEtEtaPhi_ = ibooker.book2D("NonIsoEGsEtEtaPhi", "NonISO EG E_{T} ETA PHI; i#eta; i#phi", 229, -114.5, 114.5, 144, -0.5, 143.5);
58  stage2CaloLayer2NonIsoEGEta_ = ibooker.book1D("NonIsoEGsEta", "NonISO EG ETA; NonISO EG i#eta; Counts", 229, -114.5, 114.5);
59  stage2CaloLayer2NonIsoEGPhi_ = ibooker.book1D("NonIsoEGsPhi", "NonISO EG PHI; NonISO EG i#phi; Counts", 144, -0.5, 143.5);
60  stage2CaloLayer2NonIsoEGRank_ = ibooker.book1D("NonIsoEGsRank", "NonISO EG E_{T}; NonISO EG iE_{T}; Counts", 512, -0.5, 511.5);
61  stage2CaloLayer2NonIsoEGOcc_ = ibooker.book2D("NonIsoEGsOcc", "NonISO EG OCCUPANCY; i#eta; i#phi", 229, -114.5, 114.5, 144, -0.5, 143.5);
62  stage2CaloLayer2NonIsoEGBxOcc_ = ibooker.book2D("NonIsoEGsBxOcc", "NonISO EG BX OCCUPANCY; BX; Counts", 5,-2.5, 2.5, 128, -0.5, 511.5);
63  stage2CaloLayer2NonIsoEGQual_ = ibooker.book1D("NonIsoEGsQual", "NonISO EG QUALITY; Quality; Counts", 32, -0.5, 31.5);
64 
65  //IsoTau
66  ibooker.setCurrentFolder(monitorDir_+"/Isolated-Tau");
67 
68  stage2CaloLayer2TauIso_ = ibooker.book1D("TauIso", "Tau ISO; Iso Flag; Counts", 4, -0.5, 3.5);
69  stage2CaloLayer2IsoTauEtEtaPhi_ = ibooker.book2D("IsoTausEtEtaPhi", "ISO Tau E_{T} ETA PHI; i#eta; i#phi", 229, -114.5, 114.5, 144, -0.5, 143.5);
70  stage2CaloLayer2IsoTauEta_ = ibooker.book1D("IsoTausEta", "ISO Tau ETA; ISO Tau i#eta; Counts", 229, -114.5, 114.5);
71  stage2CaloLayer2IsoTauPhi_ = ibooker.book1D("IsoTausPhi", "ISO Tau PHI; ISO Tau i#phi; Counts", 144, -0.5, 143.5);
72  stage2CaloLayer2IsoTauRank_ = ibooker.book1D("IsoTausRank", "ISO Tau E_{T}; ISO Tau iE_{T}; Counts", 512, -0.5, 511.5);
73  stage2CaloLayer2IsoTauOcc_ = ibooker.book2D("IsoTausOcc", "ISO Tau OCCUPANCY; i#eta; i#phi", 229, -114.5, 114.5, 144, -0.5, 143.5);
74  stage2CaloLayer2IsoTauBxOcc_ = ibooker.book2D("IsoTausBxOcc", "ISO Tau BX OCCUPANCY; BX; Counts", 5,-2.5, 2.5, 128, -0.5, 511.5);
75  stage2CaloLayer2IsoTauQual_ = ibooker.book1D("IsoTausQual", "ISO Tau QUALITY; Quality; Counts", 32, -0.5, 31.5);
76 
77  //NonIsoTau
78  ibooker.setCurrentFolder(monitorDir_+"/NonIsolated-Tau");
79 
80  stage2CaloLayer2TauEtEtaPhi_ = ibooker.book2D("TausEtEtaPhi", "Tau E_{T} ETA PHI; i#eta; i#phi", 229, -114.5, 114.5, 144, -0.5, 143.5);
81  stage2CaloLayer2TauEta_ = ibooker.book1D("TausEta", "NonISO Tau ETA; Tau i#eta; Counts", 229, -114.5, 114.5);
82  stage2CaloLayer2TauPhi_ = ibooker.book1D("TausPhi", "NonISO Tau PHI; Tau i#phi; Counts", 144, -0.5, 143.5);
83  stage2CaloLayer2TauRank_ = ibooker.book1D("TausRank", "NonISO Tau E_{T}; Tau iE_{T}; Counts", 512, -0.5, 511.5);
84  stage2CaloLayer2TauOcc_ = ibooker.book2D("TausOcc", "NonISO Tau OCCUPANCY; i#eta; i#phi", 229, -114.5, 114.5, 144, -0.5, 143.5);
85  stage2CaloLayer2TauBxOcc_ = ibooker.book2D("TausBxOcc", "NonISO Tau BX OCCUPANCY; BX; Counts", 5,-2.5, 2.5, 128, -0.5, 511.5);
86  stage2CaloLayer2TauQual_ = ibooker.book1D("TausQual", "NonISO Tau QUALITY; Quality; Counts", 32, -0.5, 31.5);
87 
88  //EtSums
89  ibooker.setCurrentFolder(monitorDir_+"/Energy-Sums");
90 
91  stage2CaloLayer2EtSumBxOcc_ = ibooker.book2D("EtSumBxOcc", "EtSum BX OCCUPANCY; BX; Counts", 5,-2.5, 2.5, 1024, -0.5, 4095.5);
92  stage2CaloLayer2METRank_ = ibooker.book1D("METRank", "MET E_{T}; iE_{T}; Counts", 4096, -0.5, 4095.5);
93  stage2CaloLayer2METPhi_ = ibooker.book1D("METPhi", "MET Phi; MET i#Phi; Counts", 144, -0.5, 143.5);
94  stage2CaloLayer2ETTRank_ = ibooker.book1D("ETTRank", "ETT E_{T}; ETT iE_{T}; Counts", 4096, -0.5, 4095.5);
95  stage2CaloLayer2MHTRank_ = ibooker.book1D("MHTRank", "MHT E_{T}; MHT iE_{T}; Counts", 4096, -0.5, 4095.5);
96  stage2CaloLayer2MHTPhi_ = ibooker.book1D("MHTPhi", "MHT Phi; MHT i#phi; Counts", 144, -0.5, 143.5);
97  stage2CaloLayer2HTTRank_ = ibooker.book1D("HTTRank", "HTT E_{T}; HTT iE_{T}; Counts", 4096, -0.5, 4095.5);
98  stage2CaloLayer2METHFRank_ = ibooker.book1D("METHFRank", "METHF E_{T}; METHF iE_{T}; Counts", 4096, -0.5, 4095.5);
99  stage2CaloLayer2METHFPhi_ = ibooker.book1D("METHFPhi", "METHF Phi; METHF i#phi; Counts", 144, -0.5, 143.5);
100  // stage2CaloLayer2ETTHFRank_ = ibooker.book1D("ETTHFRank", "ETTHF E_{T}", 4096, -0.5, 4095.5);
101  stage2CaloLayer2MHTHFRank_ = ibooker.book1D("MHTHFRank", "MHTHF E_{T}; MHTHF iE_{T}; Counts", 4096, -0.5, 4095.5);
102  stage2CaloLayer2MHTHFPhi_ = ibooker.book1D("MHTHFPhi", "MHTHF Phi; MHTHF i#phi; Counts", 144, -0.5, 143.5);
103  // stage2CaloLayer2HTTHFRank_ = ibooker.book1D("HTTHFRank", "HTTHF E_{T}", 4096, -0.5, 4095.5);
104  stage2CaloLayer2ETTEMRank_ = ibooker.book1D("ETTEMRank", "ETTEM E_{T}; ETTEM iE_{T}; Counts", 4096, -0.5, 4095.5);
105 
106  stage2CaloLayer2Asymmetry_ = ibooker.book1D("Asymmetry", "Asymmetry; Assymmetry; Counts", 256, -0.5, 255.5);
107  stage2CaloLayer2Centrality_ = ibooker.book1D("Centrality", "Centrality; Centrality; Counts", 9, -1.5, 7.5);
108 
109  stage2CaloLayer2MinBiasHFP0_ = ibooker.book1D("MinBiasHFP0", "HF Min Bias Sum Threshold 0, Positive #eta; N_{towers}; Events", 16, -0.5, 15.5);
110  stage2CaloLayer2MinBiasHFM0_ = ibooker.book1D("MinBiasHFM0", "HF Min Bias Sum Threshold 1, Nevagive #eta; N_{towers}; Events", 16, -0.5, 15.5);
111  stage2CaloLayer2MinBiasHFP1_ = ibooker.book1D("MinBiasHFP1", "HF Min Bias Sum Threshold 1, Positive #eta; N_{towers}; Events", 16, -0.5, 15.5);
112  stage2CaloLayer2MinBiasHFM1_ = ibooker.book1D("MinBiasHFM1", "HF Min Bias Sum Threshold 1, Negative #eta; N_{towers}; Events", 16, -0.5, 15.5);
113 
114  stage2CaloLayer2TowCount_ = ibooker.book1D("TowCount", "Count of Trigger towers above threshold; N_{towers}; Events", 5904, -0.5, 5903.5);
115 
116  ibooker.setCurrentFolder(monitorDir_+"/Timing");
124 
125  //Shifter
126  ibooker.setCurrentFolder(monitorDir_+"/shifter");
127  stage2CaloLayer2CenJetEtEtaPhi_shift_ = ibooker.book2D("CenJetsEtEtaPhi_shift", "CENTRAL JET E_{T} ETA PHI; Jet i#eta; Jet i#phi", 68, -68, 68, 72, -0.5, 143.5);
128  stage2CaloLayer2ForJetEtEtaPhi_shift_ = ibooker.book2D("ForJetsEtEtaPhi_shift", "FORWARD JET E_{T} ETA PHI; Jet i#eta; Jet i#phi", 58, -116, 116, 36, -0.5, 143.5);
129  stage2CaloLayer2IsoEGEtEtaPhi_shift_ = ibooker.book2D("IsoEGsEtEtaPhi_shift", "ISO EG E_{T} ETA PHI; i#eta; i#phi", 70, -70, 70, 72, -0.5, 143.5);
130  stage2CaloLayer2NonIsoEGEtEtaPhi_shift_ = ibooker.book2D("NonIsoEGsEtEtaPhi_shift", "NonISO EG E_{T} ETA PHI; i#eta; i#phi", 70, -70, 70, 72, -0.5, 143.5);
131  stage2CaloLayer2IsoTauEtEtaPhi_shift_ = ibooker.book2D("IsoTausEtEtaPhi_shift", "ISO Tau E_{T} ETA PHI; i#eta; i#phi", 60, -60, 60, 72, -0.5, 143.5);
132  stage2CaloLayer2TauEtEtaPhi_shift_ = ibooker.book2D("TausEtEtaPhi_shift", "Tau E_{T} ETA PHI; i#eta; i#phi", 60, -60, 60, 72, -0.5, 143.5);
133 
134 }
135 
137 {
138  if (verbose_) {
139  edm::LogInfo("L1TStage2CaloLayer2") << "L1TStage2CaloLayer2: analyze...." << std::endl;
140  }
141 
142  // analyze Jet
145 
146  for(int itBX=Jet->getFirstBX(); itBX<=Jet->getLastBX(); ++itBX){
147  for(l1t::JetBxCollection::const_iterator itJet = Jet->begin(itBX); itJet != Jet->end(itBX); ++itJet){
148  const bool forward = (itJet->hwEta()>68 || itJet->hwEta()<(-68));
149  if(forward){
150  stage2CaloLayer2ForJetBxOcc_->Fill(itBX, itJet->hwPt());
151  if(itBX == 0 ){
152  stage2CaloLayer2ForJetRank_->Fill(itJet->hwPt());
153  if (itJet->hwPt() !=0 ){
154  stage2CaloLayer2ForJetEtEtaPhi_->Fill(itJet->hwEta(), itJet->hwPhi(), itJet->hwPt());
155  stage2CaloLayer2ForJetEtEtaPhi_shift_->Fill(itJet->hwEta(), itJet->hwPhi(), itJet->hwPt());
156  stage2CaloLayer2ForJetOcc_->Fill(itJet->hwEta(), itJet->hwPhi());
157  stage2CaloLayer2ForJetPhi_->Fill(itJet->hwPhi());
158  stage2CaloLayer2ForJetEta_->Fill(itJet->hwEta());
159  stage2CaloLayer2ForJetQual_->Fill(itJet->hwQual());
160  }
161  }
162  }
163  else{
164  stage2CaloLayer2CenJetBxOcc_->Fill(itBX, itJet->hwPt());
165  if(itBX == 0 ){
166  stage2CaloLayer2CenJetRank_->Fill(itJet->hwPt());
167  if (itJet->hwPt() !=0 ){
168  stage2CaloLayer2CenJetEtEtaPhi_->Fill(itJet->hwEta(), itJet->hwPhi(), itJet->hwPt());
169  stage2CaloLayer2CenJetEtEtaPhi_shift_->Fill(itJet->hwEta(), itJet->hwPhi(), itJet->hwPt());
170  stage2CaloLayer2CenJetOcc_->Fill(itJet->hwEta(), itJet->hwPhi());
171  stage2CaloLayer2CenJetPhi_->Fill(itJet->hwPhi());
172  stage2CaloLayer2CenJetEta_->Fill(itJet->hwEta());
173  stage2CaloLayer2CenJetQual_->Fill(itJet->hwQual());
174  }
175  }
176  }
177  }
178  }
179 
180  //analyze EGamma
183 
184  for(int itBX=EGamma->getFirstBX(); itBX<=EGamma->getLastBX(); ++itBX){
185  for(l1t::EGammaBxCollection::const_iterator itEG = EGamma->begin(itBX); itEG != EGamma->end(itBX); ++itEG){
186  bool iso = itEG->hwIso();
187  if(iso){
188  stage2CaloLayer2IsoEGBxOcc_->Fill(itBX, itEG->hwPt());
189  if(itBX == 0 ){
190  stage2CaloLayer2IsoEGRank_->Fill(itEG->hwPt());
191  if(itEG->hwPt() !=0 ){
192  stage2CaloLayer2IsoEGEtEtaPhi_->Fill(itEG->hwEta(), itEG->hwPhi(), itEG->hwPt());
193  stage2CaloLayer2IsoEGEtEtaPhi_shift_->Fill(itEG->hwEta(), itEG->hwPhi(), itEG->hwPt());
194  stage2CaloLayer2IsoEGOcc_->Fill(itEG->hwEta(), itEG->hwPhi());
195  stage2CaloLayer2IsoEGPhi_->Fill(itEG->hwPhi());
196  stage2CaloLayer2IsoEGEta_->Fill(itEG->hwEta());
197  stage2CaloLayer2IsoEGQual_->Fill(itEG->hwQual());
198  stage2CaloLayer2EGIso_->Fill(itEG->hwIso());
199  }
200  }
201  }
202  else{
203  stage2CaloLayer2NonIsoEGBxOcc_->Fill(itBX, itEG->hwPt());
204  if(itBX == 0 ){
205  stage2CaloLayer2NonIsoEGRank_->Fill(itEG->hwPt());
206  if(itEG->hwPt() !=0 ){
207  stage2CaloLayer2NonIsoEGEtEtaPhi_->Fill(itEG->hwEta(), itEG->hwPhi(), itEG->hwPt());
208  stage2CaloLayer2NonIsoEGEtEtaPhi_shift_->Fill(itEG->hwEta(), itEG->hwPhi(), itEG->hwPt());
209  stage2CaloLayer2NonIsoEGOcc_->Fill(itEG->hwEta(), itEG->hwPhi());
210  stage2CaloLayer2NonIsoEGPhi_->Fill(itEG->hwPhi());
211  stage2CaloLayer2NonIsoEGEta_->Fill(itEG->hwEta());
212  stage2CaloLayer2NonIsoEGQual_->Fill(itEG->hwQual());
213  stage2CaloLayer2EGIso_->Fill(itEG->hwIso());
214  }
215  }
216  }
217  }
218  }
219 
220  //analyze Tau
223  for(int itBX=Tau->getFirstBX(); itBX<=Tau->getLastBX(); ++itBX){
224  for(l1t::TauBxCollection::const_iterator itTau = Tau->begin(itBX); itTau != Tau->end(itBX); ++itTau){
225  bool iso = itTau->hwIso();
226  if(iso){
227  stage2CaloLayer2IsoTauBxOcc_->Fill(itBX, itTau->hwPt());
228  if(itBX == 0 ){
229  stage2CaloLayer2IsoTauRank_->Fill(itTau->hwPt());
230  if(itTau->hwPt() !=0 ){
231  stage2CaloLayer2IsoTauEtEtaPhi_->Fill(itTau->hwEta(), itTau->hwPhi(), itTau->hwPt());
232  stage2CaloLayer2IsoTauEtEtaPhi_shift_->Fill(itTau->hwEta(), itTau->hwPhi(), itTau->hwPt());
233  stage2CaloLayer2IsoTauOcc_->Fill(itTau->hwEta(), itTau->hwPhi());
234  stage2CaloLayer2IsoTauPhi_->Fill(itTau->hwPhi());
235  stage2CaloLayer2IsoTauEta_->Fill(itTau->hwEta());
236  stage2CaloLayer2IsoTauQual_->Fill(itTau->hwQual());
237  stage2CaloLayer2TauIso_->Fill(itTau->hwIso());
238  }
239  }
240  }
241  else{
242  stage2CaloLayer2TauBxOcc_->Fill(itBX, itTau->hwPt());
243  if(itBX == 0 ){
244  stage2CaloLayer2TauRank_->Fill(itTau->hwPt());
245  if(itTau->hwPt() !=0 ){
246  stage2CaloLayer2TauEtEtaPhi_->Fill(itTau->hwEta(), itTau->hwPhi(), itTau->hwPt());
247  stage2CaloLayer2TauEtEtaPhi_shift_->Fill(itTau->hwEta(), itTau->hwPhi(), itTau->hwPt());
248  stage2CaloLayer2TauOcc_->Fill(itTau->hwEta(), itTau->hwPhi());
249  stage2CaloLayer2TauPhi_->Fill(itTau->hwPhi());
250  stage2CaloLayer2TauEta_->Fill(itTau->hwEta());
251  stage2CaloLayer2TauQual_->Fill(itTau->hwQual());
252  stage2CaloLayer2TauIso_->Fill(itTau->hwIso());
253  }
254  }
255  }
256  }
257  }
258 
259  //energy sum
262  for(int itBX=EtSum->getFirstBX(); itBX<=EtSum->getLastBX(); ++itBX){
263  for(l1t::EtSumBxCollection::const_iterator itEtSum = EtSum->begin(itBX); itEtSum != EtSum->end(itBX); ++itEtSum){
264  stage2CaloLayer2EtSumBxOcc_->Fill(itBX, itEtSum->hwPt());
265 
266  if (itBX==0){
267  if(l1t::EtSum::EtSumType::kMissingEt == itEtSum->getType()){; // MET
268  stage2CaloLayer2METRank_->Fill(itEtSum->hwPt());
269  stage2CaloLayer2METPhi_->Fill(itEtSum->hwPhi());
270  } else if(l1t::EtSum::EtSumType::kMissingEtHF == itEtSum->getType()){ // METHF
271  stage2CaloLayer2METHFRank_->Fill(itEtSum->hwPt());
272  stage2CaloLayer2METHFPhi_->Fill(itEtSum->hwPhi());
273  } else if(l1t::EtSum::EtSumType::kTotalEt == itEtSum->getType()){ // ETT
274  stage2CaloLayer2ETTRank_->Fill(itEtSum->hwPt());
275  //} else if(l1t::EtSum::EtSumType::kTotalEtHF == itEtSum->getType()){ // ETTHF
276  // stage2CaloLayer2ETTHFRank_->Fill(itEtSum->hwPt());
277  } else if(l1t::EtSum::EtSumType::kMissingHt == itEtSum->getType()){ // MHT
278  stage2CaloLayer2MHTRank_->Fill(itEtSum->hwPt());
279  if (itEtSum->hwPt()>0)
280  stage2CaloLayer2MHTPhi_->Fill(itEtSum->hwPhi());
281  } else if(l1t::EtSum::EtSumType::kMissingHtHF == itEtSum->getType()){ // MHTHF
282  stage2CaloLayer2MHTHFRank_->Fill(itEtSum->hwPt());
283  if (itEtSum->hwPt()>0)
284  stage2CaloLayer2MHTHFPhi_->Fill(itEtSum->hwPhi());
285  } else if(l1t::EtSum::EtSumType::kMinBiasHFP0 == itEtSum->getType()){ // MBHFP0
286  stage2CaloLayer2MinBiasHFP0_->Fill(itEtSum->hwPt());
287  } else if(l1t::EtSum::EtSumType::kMinBiasHFM0 == itEtSum->getType()){ // MBHFM0
288  stage2CaloLayer2MinBiasHFM0_->Fill(itEtSum->hwPt());
289  } else if(l1t::EtSum::EtSumType::kMinBiasHFP1 == itEtSum->getType()){ // MBHFP1
290  stage2CaloLayer2MinBiasHFP1_->Fill(itEtSum->hwPt());
291  } else if(l1t::EtSum::EtSumType::kMinBiasHFM1 == itEtSum->getType()){ // MBHFM1
292  stage2CaloLayer2MinBiasHFM1_->Fill(itEtSum->hwPt());
293  //} else if(l1t::EtSum::EtSumType::kTotalHtHF == itEtSum->getType()){ // HTTHF
294  //stage2CaloLayer2HTTHFRank_->Fill(itEtSum->hwPt());
295  } else if(l1t::EtSum::EtSumType::kTotalEtEm == itEtSum->getType()){ // ETTEM
296  stage2CaloLayer2ETTEMRank_->Fill(itEtSum->hwPt());
297  } else if (l1t::EtSum::EtSumType::kTowerCount == itEtSum->getType()) {
298  stage2CaloLayer2TowCount_->Fill(itEtSum->hwPt());
299  } else if (l1t::EtSum::EtSumType::kTotalHt == itEtSum->getType()){
300  stage2CaloLayer2HTTRank_->Fill(itEtSum->hwPt());
301  } else if (l1t::EtSum::EtSumType::kAsymEt == itEtSum->getType()){ //Asym ET
302  stage2CaloLayer2Asymmetry_->Fill(itEtSum->hwPt());
303  } else if (l1t::EtSum::EtSumType::kCentrality == itEtSum->getType()){ //Centrality
304  if (itEtSum->hwPt()==0) stage2CaloLayer2Centrality_->Fill(-1);
305  else {
306  for (int i=0; i<8; i++)
307  if (((itEtSum->hwPt()>>i)&1)==1) stage2CaloLayer2Centrality_->Fill(i);
308  }
309  }
310  }
311  }
312  }
313 }
314 
316 {}
317 
MonitorElement * timingStage2CaloLayer2CenJetBxOcc_
BXVector< EGamma > EGammaBxCollection
Definition: EGamma.h:11
const_iterator end(int bx) const
MonitorElement * stage2CaloLayer2IsoTauOcc_
MonitorElement * stage2CaloLayer2IsoEGEta_
MonitorElement * stage2CaloLayer2TauEtEtaPhi_shift_
MonitorElement * stage2CaloLayer2CenJetRank_
MonitorElement * stage2CaloLayer2IsoEGPhi_
MonitorElement * stage2CaloLayer2TauEtEtaPhi_
MonitorElement * stage2CaloLayer2ForJetQual_
MonitorElement * timingStage2CaloLayer2IsoTauBxOcc_
MonitorElement * stage2CaloLayer2NonIsoEGQual_
MonitorElement * stage2CaloLayer2MinBiasHFP1_
MonitorElement * stage2CaloLayer2TauEta_
L1TStage2CaloLayer2(const edm::ParameterSet &ps)
void bookHistograms(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:517
MonitorElement * stage2CaloLayer2METRank_
MonitorElement * timingStage2CaloLayer2TauBxOcc_
MonitorElement * timingStage2CaloLayer2NonIsoEGBxOcc_
MonitorElement * stage2CaloLayer2CenJetEtEtaPhi_
MonitorElement * stage2CaloLayer2IsoEGRank_
MonitorElement * stage2CaloLayer2IsoEGQual_
MonitorElement * stage2CaloLayer2IsoTauEtEtaPhi_shift_
MonitorElement * stage2CaloLayer2METHFRank_
MonitorElement * stage2CaloLayer2IsoEGOcc_
MonitorElement * stage2CaloLayer2NonIsoEGEtEtaPhi_shift_
MonitorElement * stage2CaloLayer2IsoTauQual_
MonitorElement * stage2CaloLayer2IsoEGBxOcc_
delete x;
Definition: CaloConfig.h:22
MonitorElement * stage2CaloLayer2TauPhi_
MonitorElement * stage2CaloLayer2MHTHFPhi_
void analyze(const edm::Event &e, const edm::EventSetup &c) override
MonitorElement * stage2CaloLayer2EtSumBxOcc_
MonitorElement * stage2CaloLayer2MinBiasHFM0_
MonitorElement * stage2CaloLayer2NonIsoEGEtEtaPhi_
MonitorElement * stage2CaloLayer2CenJetPhi_
BXVector< Tau > TauBxCollection
Definition: Tau.h:11
MonitorElement * stage2CaloLayer2CenJetEta_
MonitorElement * stage2CaloLayer2MHTRank_
MonitorElement * stage2CaloLayer2IsoTauEtEtaPhi_
MonitorElement * stage2CaloLayer2ForJetBxOcc_
MonitorElement * stage2CaloLayer2METHFPhi_
void Fill(long long x)
MonitorElement * stage2CaloLayer2Centrality_
MonitorElement * stage2CaloLayer2IsoTauBxOcc_
BXVector< EtSum > EtSumBxCollection
Definition: EtSum.h:11
MonitorElement * stage2CaloLayer2NonIsoEGOcc_
MonitorElement * stage2CaloLayer2ForJetEta_
MonitorElement * stage2CaloLayer2IsoTauPhi_
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
MonitorElement * stage2CaloLayer2ForJetOcc_
MonitorElement * timingStage2CaloLayer2EtSumBxOcc_
MonitorElement * stage2CaloLayer2IsoEGEtEtaPhi_
MonitorElement * stage2CaloLayer2CenJetQual_
MonitorElement * stage2CaloLayer2IsoTauEta_
edm::EDGetTokenT< l1t::EGammaBxCollection > stage2CaloLayer2EGammaToken_
MonitorElement * stage2CaloLayer2MinBiasHFP0_
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:106
MonitorElement * stage2CaloLayer2Asymmetry_
MonitorElement * stage2CaloLayer2TowCount_
MonitorElement * stage2CaloLayer2EGIso_
MonitorElement * stage2CaloLayer2ForJetRank_
edm::EDGetTokenT< l1t::JetBxCollection > stage2CaloLayer2JetToken_
MonitorElement * stage2CaloLayer2ForJetEtEtaPhi_
MonitorElement * stage2CaloLayer2ForJetEtEtaPhi_shift_
MonitorElement * stage2CaloLayer2CenJetOcc_
MonitorElement * stage2CaloLayer2CenJetBxOcc_
int getFirstBX() const
edm::EDGetTokenT< l1t::EtSumBxCollection > stage2CaloLayer2EtSumToken_
BXVector< Jet > JetBxCollection
Definition: Jet.h:11
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:109
MonitorElement * stage2CaloLayer2MHTPhi_
MonitorElement * stage2CaloLayer2IsoTauRank_
MonitorElement * stage2CaloLayer2CenJetEtEtaPhi_shift_
MonitorElement * stage2CaloLayer2TauBxOcc_
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
MonitorElement * stage2CaloLayer2HTTRank_
MonitorElement * stage2CaloLayer2TauRank_
MonitorElement * stage2CaloLayer2ForJetPhi_
MonitorElement * stage2CaloLayer2NonIsoEGRank_
MonitorElement * stage2CaloLayer2IsoEGEtEtaPhi_shift_
HLT enums.
MonitorElement * stage2CaloLayer2TauIso_
MonitorElement * stage2CaloLayer2METPhi_
MonitorElement * timingStage2CaloLayer2ForJetBxOcc_
int getLastBX() const
edm::EDGetTokenT< l1t::TauBxCollection > stage2CaloLayer2TauToken_
MonitorElement * stage2CaloLayer2MinBiasHFM1_
MonitorElement * stage2CaloLayer2TauQual_
MonitorElement * stage2CaloLayer2ETTRank_
MonitorElement * timingStage2CaloLayer2IsoEGBxOcc_
MonitorElement * stage2CaloLayer2TauOcc_
const_iterator begin(int bx) const
MonitorElement * stage2CaloLayer2ETTEMRank_
MonitorElement * stage2CaloLayer2MHTHFRank_
MonitorElement * stage2CaloLayer2NonIsoEGEta_
MonitorElement * stage2CaloLayer2NonIsoEGBxOcc_
Definition: Run.h:45
std::vector< T >::const_iterator const_iterator
Definition: BXVector.h:20
MonitorElement * stage2CaloLayer2NonIsoEGPhi_