CMS 3D CMS Logo

L1TdeRCT.h
Go to the documentation of this file.
1 #ifndef L1TdeRCT_H
2 #define L1TdeRCT_H
3 
4 // system include files
5 #include <memory>
6 #include <unistd.h>
7 
8 #include <iostream>
9 #include <fstream>
10 #include <vector>
11 #include <bitset>
12 
13 // user include files
16 
19 
21 
24 
25 // DQM
27 
28 // GCT and RCT data formats
35 // TPGs
38 
40 
41 // Trigger Headers
42 //
43 // class declaration
44 //
45 namespace l1tderct {
46  struct Empty {};
47 } // namespace l1tderct
48 
49 class L1TdeRCT : public DQMOneEDAnalyzer<edm::LuminosityBlockCache<l1tderct::Empty>> {
50 public:
51  // Constructor
52  L1TdeRCT(const edm::ParameterSet& ps);
53 
54  // Destructor
55  ~L1TdeRCT() override;
56 
57 protected:
58  // Analyze
59  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
60 
61  //For FED vector monitoring
62  void bookHistograms(DQMStore::IBooker& ibooker, const edm::Run&, const edm::EventSetup&) override;
63  std::shared_ptr<l1tderct::Empty> globalBeginLuminosityBlock(const edm::LuminosityBlock&,
64  const edm::EventSetup&) const override;
66  void readFEDVector(MonitorElement*, const edm::EventSetup&) const;
67 
68 private:
69  // ----------member data ---------------------------
70 
71  // begin GT decision information
73 
74  // trigger type information
76 
77  // begin region information
85 
91 
97  // MonitorElement *rctRegDeltaEt2D_;
100 
106 
110 
111  // end region information
112 
113  // begin bit information
143  // QUIETBIT: To add quiet bit information, uncomment following 3 lines:
144  // MonitorElement *rctBitQuietEff2D_;
145  // MonitorElement *rctBitQuietIneff2D_;
146  // MonitorElement *rctBitQuietOvereff2D_;
155 
156  // end bit information
157 
164 
177 
190 
194 
207 
220 
224 
225  MonitorElement* rctIsoEffChannel_[396];
226  MonitorElement* rctIsoIneffChannel_[396];
227  MonitorElement* rctIsoOvereffChannel_[396];
228 
229  MonitorElement* rctNisoEffChannel_[396];
230  MonitorElement* rctNisoIneffChannel_[396];
231  MonitorElement* rctNisoOvereffChannel_[396];
232 
233  // begin region channel information
234  MonitorElement* rctRegEffChannel_[396];
235  MonitorElement* rctRegIneffChannel_[396];
236  MonitorElement* rctRegOvereffChannel_[396];
237 
238  //efficiency
242  MonitorElement* trigEff_[396];
243  MonitorElement* trigEffOcc_[396];
244  MonitorElement* trigEffTriggOcc_[396];
245 
246  // end region channel information
247 
248  //begin fed vector information
249  static const int crateFED[108];
253 
254  int nev_; // Number of events processed
255  std::string histFolder_; // base dqm folder
256  bool verbose_;
258 
268  std::string gtEGAlgoName_; // name of algo to determine EG trigger threshold
269  int doubleThreshold_; // value of ET at which to make 2-D eff plot
270 
274 
276 
277  int trigCount, notrigCount;
278 
279 protected:
282 };
283 
284 #endif
MonitorElement * rctBitUnmatchedDataTauVeto2D_
Definition: L1TdeRCT.h:126
MonitorElement * rctRegUnmatchedDataOcc1D_
Definition: L1TdeRCT.h:81
MonitorElement * rctIsoEmBitDiff_
Definition: L1TdeRCT.h:193
MonitorElement * rctRegMatchedOcc1D_
Definition: L1TdeRCT.h:80
MonitorElement * rctNisoEmEmulOcc1D_
Definition: L1TdeRCT.h:209
MonitorElement * rctNisoEmIneff2oneD_
Definition: L1TdeRCT.h:217
MonitorElement * rctNisoEmIneff1D_
Definition: L1TdeRCT.h:218
MonitorElement * rctNisoEmEff2Occ1D_
Definition: L1TdeRCT.h:211
MonitorElement * rctInputTPGHcalOcc_
Definition: L1TdeRCT.h:161
MonitorElement * rctNisoEmEff2oneD_
Definition: L1TdeRCT.h:216
MonitorElement * rctNisoEmIneff2Occ1D_
Definition: L1TdeRCT.h:212
int selectBX_
Definition: L1TdeRCT.h:273
MonitorElement * rctBitMatchedTauVeto2D_
Definition: L1TdeRCT.h:124
MonitorElement * rctBitDataMip2D_
Definition: L1TdeRCT.h:131
MonitorElement * rctBitUnmatchedDataHfPlusTau2D_
Definition: L1TdeRCT.h:151
int nev_
Definition: L1TdeRCT.h:254
edm::EDGetTokenT< L1CaloRegionCollection > gctSourceData_rgnData_
Definition: L1TdeRCT.h:263
MonitorElement * rctBitEmulTauVeto2D_
Definition: L1TdeRCT.h:122
MonitorElement * rctIsoEmIneff2Occ_
Definition: L1TdeRCT.h:169
MonitorElement * trigEffThresh_
Definition: L1TdeRCT.h:239
MonitorElement * rctBitHfPlusTauIneff2D_
Definition: L1TdeRCT.h:153
bool verbose_
Definition: L1TdeRCT.h:256
MonitorElement * rctIsoEmIneff2Occ1D_
Definition: L1TdeRCT.h:182
MonitorElement * rctIsoEmEmulOcc1D_
Definition: L1TdeRCT.h:179
MonitorElement * rctBitUnmatchedEmulTauVeto2D_
Definition: L1TdeRCT.h:125
edm::EDGetTokenT< L1CaloEmCollection > rctSourceData_emData_
Definition: L1TdeRCT.h:262
MonitorElement * rctBitUnmatchedEmulQuiet2D_
Definition: L1TdeRCT.h:141
MonitorElement * trigEffThreshOcc_
Definition: L1TdeRCT.h:240
MonitorElement * rctRegOvereff1D_
Definition: L1TdeRCT.h:88
int doubleThreshold_
Definition: L1TdeRCT.h:269
MonitorElement * rctIsoEmEff2_
Definition: L1TdeRCT.h:173
MonitorElement * rctNisoEmOvereffOcc1D_
Definition: L1TdeRCT.h:214
MonitorElement * rctRegOvereff2D_
Definition: L1TdeRCT.h:103
MonitorElement * rctIsoEmOvereffOcc1D_
Definition: L1TdeRCT.h:184
MonitorElement * triggerType_
Definition: L1TdeRCT.h:75
MonitorElement * rctBitTauVetoEff2D_
Definition: L1TdeRCT.h:127
MonitorElement * rctBitMatchedQuiet2D_
Definition: L1TdeRCT.h:140
MonitorElement * rctBitTauVetoOvereff2D_
Definition: L1TdeRCT.h:129
MonitorElement * rctRegDataOcc1D_
Definition: L1TdeRCT.h:78
MonitorElement * rctIsoEmIneffOcc_
Definition: L1TdeRCT.h:170
MonitorElement * rctBitDataQuiet2D_
Definition: L1TdeRCT.h:139
MonitorElement * rctBitMatchedHfPlusTau2D_
Definition: L1TdeRCT.h:149
MonitorElement * rctIsoEmEff2Occ_
Definition: L1TdeRCT.h:168
MonitorElement * rctRegEmulOcc2D_
Definition: L1TdeRCT.h:93
MonitorElement * rctRegUnmatchedEmulOcc2D_
Definition: L1TdeRCT.h:96
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > gtDigisLabel_
Definition: L1TdeRCT.h:267
std::string histFolder_
Definition: L1TdeRCT.h:255
MonitorElement * rctRegSpEff2D_
Definition: L1TdeRCT.h:104
MonitorElement * rctBitUnmatchedEmulOverFlow2D_
Definition: L1TdeRCT.h:117
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * rctIsoEmBitOn_
Definition: L1TdeRCT.h:191
MonitorElement * rctRegIneff2D_
Definition: L1TdeRCT.h:102
MonitorElement * rctIsoEmEff2Occ1D_
Definition: L1TdeRCT.h:181
bool singlechannelhistos_
Definition: L1TdeRCT.h:257
MonitorElement * rctBitMipIneff2D_
Definition: L1TdeRCT.h:136
MonitorElement * rctBitOverFlowOvereff2D_
Definition: L1TdeRCT.h:121
MonitorElement * rctInputTPGHcalSample_
Definition: L1TdeRCT.h:163
MonitorElement * rctIsoEmOvereff_
Definition: L1TdeRCT.h:176
MonitorElement * rctBitDataOverFlow2D_
Definition: L1TdeRCT.h:115
MonitorElement * rctIsoEmDataOcc_
Definition: L1TdeRCT.h:165
MonitorElement * fedVectorMonitorLS_
Definition: L1TdeRCT.h:251
MonitorElement * rctNisoEmEff1oneD_
Definition: L1TdeRCT.h:215
edm::EDGetTokenT< HcalTrigPrimDigiCollection > hcalTPGData_
Definition: L1TdeRCT.h:266
MonitorElement * rctNisoEmIneff2Occ_
Definition: L1TdeRCT.h:199
MonitorElement * rctNisoEmOvereffOcc_
Definition: L1TdeRCT.h:201
MonitorElement * rctRegBitOn_
Definition: L1TdeRCT.h:107
MonitorElement * rctRegBitDiff_
Definition: L1TdeRCT.h:109
MonitorElement * rctNisoEmDataOcc_
Definition: L1TdeRCT.h:195
MonitorElement * rctNisoEmIneff2_
Definition: L1TdeRCT.h:204
MonitorElement * rctBitDataHfPlusTau2D_
Definition: L1TdeRCT.h:148
std::string gtEGAlgoName_
Definition: L1TdeRCT.h:268
MonitorElement * rctInputTPGEcalOcc_
Definition: L1TdeRCT.h:158
MonitorElement * rctRegDataOcc2D_
Definition: L1TdeRCT.h:92
MonitorElement * rctInputTPGEcalRank_
Definition: L1TdeRCT.h:160
MonitorElement * rctIsoEmIneff1D_
Definition: L1TdeRCT.h:188
MonitorElement * rctBitMipOvereff2D_
Definition: L1TdeRCT.h:137
MonitorElement * rctBitMatchedOverFlow2D_
Definition: L1TdeRCT.h:116
MonitorElement * rctBitEmulOverFlow2D_
Definition: L1TdeRCT.h:114
MonitorElement * rctRegEmulOcc1D_
Definition: L1TdeRCT.h:79
edm::EDGetTokenT< EcalTrigPrimDigiCollection > ecalTPGData_
Definition: L1TdeRCT.h:265
MonitorElement * rctIsoEmBitOff_
Definition: L1TdeRCT.h:192
MonitorElement * fedVectorMonitorRUN_
Definition: L1TdeRCT.h:250
MonitorElement * rctBitEmulMip2D_
Definition: L1TdeRCT.h:130
MonitorElement * rctIsoEmIneff2_
Definition: L1TdeRCT.h:174
MonitorElement * rctBitEmulQuiet2D_
Definition: L1TdeRCT.h:138
MonitorElement * rctNisoEmEmulOcc_
Definition: L1TdeRCT.h:196
MonitorElement * rctBitEmulHfPlusTau2D_
Definition: L1TdeRCT.h:147
MonitorElement * triggerAlgoNumbers_
Definition: L1TdeRCT.h:72
MonitorElement * rctRegSpIneff2D_
Definition: L1TdeRCT.h:105
edm::EDGetTokenT< L1CaloEmCollection > gctSourceData_emData_
Definition: L1TdeRCT.h:264
MonitorElement * rctIsoEmEmulOcc_
Definition: L1TdeRCT.h:166
MonitorElement * rctIsoEmEff1Occ_
Definition: L1TdeRCT.h:167
std::string dataInputTagName_
Definition: L1TdeRCT.h:275
MonitorElement * rctNisoEmOvereff1D_
Definition: L1TdeRCT.h:219
MonitorElement * rctNisoEmEff2Occ_
Definition: L1TdeRCT.h:198
MonitorElement * rctBitUnmatchedEmulHfPlusTau2D_
Definition: L1TdeRCT.h:150
MonitorElement * rctRegEff1D_
Definition: L1TdeRCT.h:86
MonitorElement * rctBitMatchedMip2D_
Definition: L1TdeRCT.h:132
MonitorElement * rctNisoEmEff2_
Definition: L1TdeRCT.h:203
MonitorElement * rctRegSpEff1D_
Definition: L1TdeRCT.h:89
MonitorElement * rctIsoEmEff1Occ1D_
Definition: L1TdeRCT.h:180
MonitorElement * rctIsoEmEff1oneD_
Definition: L1TdeRCT.h:185
MonitorElement * rctNisoEmIneff_
Definition: L1TdeRCT.h:205
MonitorElement * rctRegSpEffOcc1D_
Definition: L1TdeRCT.h:83
MonitorElement * rctRegMatchedOcc2D_
Definition: L1TdeRCT.h:94
MonitorElement * rctNIsoEmBitDiff_
Definition: L1TdeRCT.h:223
MonitorElement * rctBitHfPlusTauOvereff2D_
Definition: L1TdeRCT.h:154
MonitorElement * rctNisoEmEff1Occ_
Definition: L1TdeRCT.h:197
MonitorElement * rctIsoEmOvereff1D_
Definition: L1TdeRCT.h:189
MonitorElement * rctIsoEmEff1_
Definition: L1TdeRCT.h:172
MonitorElement * rctBitTauVetoIneff2D_
Definition: L1TdeRCT.h:128
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
MonitorElement * rctInputTPGHcalRank_
Definition: L1TdeRCT.h:162
MonitorElement * trigEffTriggThreshOcc_
Definition: L1TdeRCT.h:241
MonitorElement * rctIsoEmIneffOcc1D_
Definition: L1TdeRCT.h:183
MonitorElement * rctBitHfPlusTauEff2D_
Definition: L1TdeRCT.h:152
MonitorElement * rctNisoEmIneffOcc1D_
Definition: L1TdeRCT.h:213
MonitorElement * rctBitOverFlowIneff2D_
Definition: L1TdeRCT.h:120
void globalEndLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) final
Definition: L1TdeRCT.h:65
MonitorElement * rctRegSpIneffOcc1D_
Definition: L1TdeRCT.h:84
MonitorElement * rctBitUnmatchedDataMip2D_
Definition: L1TdeRCT.h:134
MonitorElement * rctBitMipEff2D_
Definition: L1TdeRCT.h:135
MonitorElement * rctIsoEmIneff2oneD_
Definition: L1TdeRCT.h:187
MonitorElement * rctRegUnmatchedDataOcc2D_
Definition: L1TdeRCT.h:95
MonitorElement * rctBitUnmatchedEmulMip2D_
Definition: L1TdeRCT.h:133
MonitorElement * rctBitOverFlowEff2D_
Definition: L1TdeRCT.h:119
MonitorElement * rctNIsoEmBitOff_
Definition: L1TdeRCT.h:222
edm::EDGetTokenT< L1CaloRegionCollection > rctSourceEmul_rgnEmul_
Definition: L1TdeRCT.h:259
MonitorElement * rctRegSpEffOcc2D_
Definition: L1TdeRCT.h:98
MonitorElement * rctIsoEmOvereffOcc_
Definition: L1TdeRCT.h:171
MonitorElement * rctNisoEmDataOcc1D_
Definition: L1TdeRCT.h:208
edm::EDGetTokenT< L1CaloRegionCollection > rctSourceData_rgnData_
Definition: L1TdeRCT.h:261
MonitorElement * rctNIsoEmBitOn_
Definition: L1TdeRCT.h:221
MonitorElement * rctRegIneff1D_
Definition: L1TdeRCT.h:87
MonitorElement * rctNisoEmEff1Occ1D_
Definition: L1TdeRCT.h:210
MonitorElement * rctIsoEmDataOcc1D_
Definition: L1TdeRCT.h:178
MonitorElement * rctBitDataTauVeto2D_
Definition: L1TdeRCT.h:123
MonitorElement * rctNisoEmOvereff_
Definition: L1TdeRCT.h:206
MonitorElement * rctRegEff2D_
Definition: L1TdeRCT.h:101
int filterTriggerType_
filter TriggerType
Definition: L1TdeRCT.h:272
MonitorElement * rctInputTPGEcalOccNoCut_
Definition: L1TdeRCT.h:159
MonitorElement * rctNisoEmIneffOcc_
Definition: L1TdeRCT.h:200
MonitorElement * rctIsoEmEff2oneD_
Definition: L1TdeRCT.h:186
edm::EDGetTokenT< L1CaloEmCollection > rctSourceEmul_emEmul_
Definition: L1TdeRCT.h:260
MonitorElement * rctBitUnmatchedDataQuiet2D_
Definition: L1TdeRCT.h:142
Definition: Run.h:45
int trigCount
Definition: L1TdeRCT.h:277
MonitorElement * rctRegSpIneff1D_
Definition: L1TdeRCT.h:90
MonitorElement * rctRegSpIneffOcc2D_
Definition: L1TdeRCT.h:99
MonitorElement * rctRegBitOff_
Definition: L1TdeRCT.h:108
MonitorElement * rctIsoEmIneff_
Definition: L1TdeRCT.h:175
MonitorElement * rctRegUnmatchedEmulOcc1D_
Definition: L1TdeRCT.h:82
MonitorElement * rctBitUnmatchedDataOverFlow2D_
Definition: L1TdeRCT.h:118
MonitorElement * rctNisoEmEff1_
Definition: L1TdeRCT.h:202