CMS 3D CMS Logo

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