CMS 3D CMS Logo

L1TGT.h
Go to the documentation of this file.
1 #ifndef L1TGT_H
2 #define L1TGT_H
3 
16 // system include files
17 #include <memory>
18 #include <unistd.h>
19 #include <vector>
20 #include <utility>
21 
22 // user include files
25 
28 
30 
37 
38 //L1 trigger includes
43 
45 
46 //
47 // class declaration
48 //
49 
50 class L1TGT: public one::DQMEDAnalyzer<edm::one::WatchLuminosityBlocks> {
51 
52 public:
53 
54  // constructor
55  L1TGT(const edm::ParameterSet& ps);
56 
57  // destructor
58  ~L1TGT() override;
59 
60 protected:
61 
62  //virtual void beginJob();
63  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
64  void bookHistograms(DQMStore::IBooker &ibooker, edm::Run const&, edm::EventSetup const&) override ;
65  void analyze(const edm::Event&, const edm::EventSetup&) override;
66 
69  void endLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&) override;
70 
71 
72 private:
73 
75 
76  bool isActive(int word, int bit);
77  // Active boards DAQ record bit number:
78  // 0 FDL
79  // 1 PSB_0 9 Techn.Triggers for FDL
80  // 2 PSB_1 13 Calo data for GTL
81  // 3 PSB_2 14 Calo data for GTL
82  // 4 PSB_3 15 Calo data for GTL
83  // 5 PSB_4 19 M/Q bits for GMT
84  // 6 PSB_5 20 M/Q bits for GMT
85  // 7 PSB_6 21 M/Q bits for GMT
86  // 8 GMT
87  enum activeDAQ {
89  };
90  // Active boards EVM record bit number:
91  // 0 TCS
92  // 1 FDL
93  enum activeEVM {
95  };
96 
97  // count the number of indices per Ls for prescale factor sets
98  // if no errors, it must be 1
99  void countPfsIndicesPerLs();
100 
101 
102 private:
103 
105 
109 
112 
116 
118  bool verbose_;
119 
120 private:
121 
130 
138 
141 
152 
155 
158  // maximum difference in orbit number, luminosity number
159  // histogram range: -(MaxOrbitNrDiffTcsFdlEvm+1), (MaxOrbitNrDiffTcsFdlEvm+1)
160  // if value is greater than the maximum difference, fill an entry in the last but one bin
161  // if value is smaller than the negative value of maximum difference, fill an entry
162  // in the second bin
163  // if no value can be retrieved for TCS, fill an entry in the first bin
164  // if no value can be retrieved for FDL, fill an entry in the last bin
165  static const int MaxOrbitNrDiffTcsFdlEvm;
166  static const int MaxLsNrDiffTcsFdlEvm;
167 
170 
176 
177  //MonitorElement* m_monDiffEvmDaqFdl;
178 
179 private:
180 
184 
187 
190 
193  std::map <std::string,bool> l1TriggerDecision,l1TechTriggerDecision;
194  std::map<std::string,bool>::iterator trig_iter;
195 
196  std::vector<std::pair<int,int> > m_pairLsNumberPfIndex;
197  typedef std::vector<std::pair<int, int> >::const_iterator CItVecPair;
198 
199 
200 };
201 
202 #endif
MonitorElement * m_monL1PrescaleFactorSet
Definition: L1TGT.h:153
void bookHistograms(DQMStore::IBooker &ibooker, edm::Run const &, edm::EventSetup const &) override
Definition: L1TGT.cc:40
std::map< std::string, bool > l1TechTriggerDecision
Definition: L1TGT.h:193
MonitorElement * h_L1AlgoBX1
Definition: L1TGT.h:171
MonitorElement * gpsfreqwide
Definition: L1TGT.h:150
int m_nrEvRun
Definition: L1TGT.h:183
boost::uint64_t preGps_
Definition: L1TGT.h:188
Definition: L1TGT.h:50
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Definition: L1TGT.cc:735
MonitorElement * m_monLsNrDiffTcsFdlEvmLs
Definition: L1TGT.h:169
std::vector< std::pair< int, int > >::const_iterator CItVecPair
Definition: L1TGT.h:197
activeEVM
Definition: L1TGT.h:93
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1TGT.cc:316
std::vector< std::pair< int, int > > m_pairLsNumberPfIndex
Definition: L1TGT.h:196
MonitorElement * BST_intensityBeam1
Definition: L1TGT.h:147
static const int MaxOrbitNrDiffTcsFdlEvm
Definition: L1TGT.h:165
MonitorElement * algo_bits_corr
Definition: L1TGT.h:123
MonitorElement * tt_bits
Definition: L1TGT.h:124
bool verbose_
verbosity switch
Definition: L1TGT.h:118
MonitorElement * gtfe_bx
Definition: L1TGT.h:139
MonitorElement * BST_beamMode
Definition: L1TGT.h:145
bool m_runInEventLoop
switches to choose the running of various methods
Definition: L1TGT.h:114
MonitorElement * BST_MasterStatus
Definition: L1TGT.h:142
std::map< std::string, bool >::iterator trig_iter
Definition: L1TGT.h:194
MonitorElement * BST_intensityBeam2
Definition: L1TGT.h:148
~L1TGT() override
Definition: L1TGT.cc:33
MonitorElement * h_L1TechBX
Definition: L1TGT.h:175
MonitorElement * event_number
Definition: L1TGT.h:131
MonitorElement * h_L1AlgoBX3
Definition: L1TGT.h:173
activeDAQ
Definition: L1TGT.h:87
static const int MaxLsNrDiffTcsFdlEvm
Definition: L1TGT.h:166
edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > gtEvmSource_
input tag for L1 GT EVM readout record
Definition: L1TGT.h:111
MonitorElement * orbit_lumi
Definition: L1TGT.h:136
MonitorElement * h_L1AlgoBX4
Definition: L1TGT.h:174
std::string m_histFolder
histogram folder for L1 GT plots
Definition: L1TGT.h:186
MonitorElement * algo_bits_lumi
Definition: L1TGT.h:127
std::map< std::string, bool > l1TriggerDecision
Definition: L1TGT.h:193
MonitorElement * m_monLsNrDiffTcsFdlEvm
Definition: L1TGT.h:157
MonitorElement * gpsfreq
Definition: L1TGT.h:149
std::string algoBitToName[128]
Definition: L1TGT.h:191
MonitorElement * algo_bits
Definition: L1TGT.h:122
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Definition: L1TGT.cc:308
MonitorElement * event_type
Definition: L1TGT.h:129
MonitorElement * m_monOrbitNrDiffTcsFdlEvmLs
Definition: L1TGT.h:168
MonitorElement * dbx_module
Definition: L1TGT.h:140
bool m_runInEndLumi
Definition: L1TGT.h:115
unsigned long long uint64_t
Definition: Time.h:15
MonitorElement * tt_bits_corr
Definition: L1TGT.h:125
bool isActive(int word, int bit)
book all histograms for the module
Definition: L1TGT.cc:745
MonitorElement * gpsfreqlum
Definition: L1TGT.h:151
int m_nrEvJob
number of events processed
Definition: L1TGT.h:182
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > gtSource_L1GT_
input parameters
Definition: L1TGT.h:107
MonitorElement * h_L1AlgoBX2
Definition: L1TGT.h:172
void countPfsIndicesPerLs()
Definition: L1TGT.cc:752
MonitorElement * m_monL1PfIndicesPerLs
Definition: L1TGT.h:154
MonitorElement * trigger_number
Definition: L1TGT.h:133
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) final
end section
Definition: L1TGT.h:68
MonitorElement * BST_beamMomentum
Definition: L1TGT.h:146
MonitorElement * BST_lhcFillNumber
Definition: L1TGT.h:144
MonitorElement * setupversion_lumi
Definition: L1TGT.h:137
MonitorElement * BST_turnCountNumber
Definition: L1TGT.h:143
boost::uint64_t preOrb_
Definition: L1TGT.h:189
MonitorElement * event_lumi
Definition: L1TGT.h:132
MonitorElement * tt_bits_lumi
Definition: L1TGT.h:128
MonitorElement * trigger_lumi
Definition: L1TGT.h:134
MonitorElement * evnum_trignum_lumi
Definition: L1TGT.h:135
MonitorElement * algo_tt_bits_corr
Definition: L1TGT.h:126
std::string techBitToName[64]
Definition: L1TGT.h:192
Definition: Run.h:44
MonitorElement * m_monOrbitNrDiffTcsFdlEvm
Definition: L1TGT.h:156
L1TGT(const edm::ParameterSet &ps)
Definition: L1TGT.cc:18
edm::EDGetTokenT< L1MuGMTReadoutCollection > gtSource_L1MuGMT_
Definition: L1TGT.h:108