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