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