CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TGT.h
Go to the documentation of this file.
1 #ifndef L1TGT_H
2 #define L1TGT_H
3 
18 // system include files
19 #include <memory>
20 #include <unistd.h>
21 #include <vector>
22 #include <utility>
23 
24 // user include files
27 
30 
32 
37 
38 //
39 // class declaration
40 //
41 
42 class L1TGT: public edm::EDAnalyzer {
43 
44 public:
45 
46  // constructor
47  L1TGT(const edm::ParameterSet& ps);
48 
49  // destructor
50  virtual ~L1TGT();
51 
52 private:
53 
54  virtual void beginJob();
55  virtual void beginRun(const edm::Run&, const edm::EventSetup&);
56  virtual void beginLuminosityBlock(const edm::LuminosityBlock&,
57  const edm::EventSetup&);
58 
59  virtual void analyze(const edm::Event&, const edm::EventSetup&);
60 
62  virtual void endLuminosityBlock(const edm::LuminosityBlock&,
63  const edm::EventSetup&);
64  virtual void endRun(const edm::Run&, const edm::EventSetup&);
65 
66  virtual void endJob();
67 
68 private:
69 
71  void bookHistograms();
72 
73  bool isActive(int word, int bit);
74  // Active boards DAQ record bit number:
75  // 0 FDL
76  // 1 PSB_0 9 Techn.Triggers for FDL
77  // 2 PSB_1 13 Calo data for GTL
78  // 3 PSB_2 14 Calo data for GTL
79  // 4 PSB_3 15 Calo data for GTL
80  // 5 PSB_4 19 M/Q bits for GMT
81  // 6 PSB_5 20 M/Q bits for GMT
82  // 7 PSB_6 21 M/Q bits for GMT
83  // 8 GMT
84  enum activeDAQ {
86  };
87  // Active boards EVM record bit number:
88  // 0 TCS
89  // 1 FDL
90  enum activeEVM {
92  };
93 
94 private:
95 
97 
100 
103 
105  bool verbose_;
106 
108  std::string outputFile_;
109 
110 private:
111 
120 
128 
131 
142 
145 
148  // maximum difference in orbit number, luminosity number
149  // histogram range: -(MaxOrbitNrDiffTcsFdlEvm+1), (MaxOrbitNrDiffTcsFdlEvm+1)
150  // if value is greater than the maximum difference, fill an entry in the last but one bin
151  // if value is smaller than the negative value of maximum difference, fill an entry
152  // in the second bin
153  // if no value can be retrieved for TCS, fill an entry in the first bin
154  // if no value can be retrieved for FDL, fill an entry in the last bin
155  static const int MaxOrbitNrDiffTcsFdlEvm;
156  static const int MaxLsNrDiffTcsFdlEvm;
157 
160 
161  //MonitorElement* m_monDiffEvmDaqFdl;
162 
163 private:
164 
166 
168 
172 
174  std::string m_histFolder;
175 
178 
182 
183  std::vector<std::pair<int,int> > m_pairLsNumberPfIndex;
184  typedef std::vector<std::pair<int, int> >::const_iterator CItVecPair;
185 
186 
187 };
188 
189 #endif
MonitorElement * m_monL1PrescaleFactorSet
Definition: L1TGT.h:143
MonitorElement * gpsfreqwide
Definition: L1TGT.h:140
int m_nrEvRun
Definition: L1TGT.h:171
boost::uint64_t preGps_
Definition: L1TGT.h:176
virtual void endJob()
Definition: L1TGT.cc:494
Definition: L1TGT.h:42
DQMStore * m_dbe
internal members
Definition: L1TGT.h:167
MonitorElement * m_monLsNrDiffTcsFdlEvmLs
Definition: L1TGT.h:159
std::vector< std::pair< int, int > >::const_iterator CItVecPair
Definition: L1TGT.h:184
activeEVM
Definition: L1TGT.h:90
std::string outputFile_
file name for ROOT output
Definition: L1TGT.h:108
std::vector< std::pair< int, int > > m_pairLsNumberPfIndex
Definition: L1TGT.h:183
MonitorElement * BST_intensityBeam1
Definition: L1TGT.h:137
static const int MaxOrbitNrDiffTcsFdlEvm
Definition: L1TGT.h:155
MonitorElement * algo_bits_corr
Definition: L1TGT.h:113
MonitorElement * tt_bits
Definition: L1TGT.h:114
bool verbose_
verbosity switch
Definition: L1TGT.h:105
int m_previousPfIndex
Definition: L1TGT.h:181
MonitorElement * gtfe_bx
Definition: L1TGT.h:129
edm::InputTag gtSource_
input parameters
Definition: L1TGT.h:99
MonitorElement * BST_beamMode
Definition: L1TGT.h:135
MonitorElement * BST_MasterStatus
Definition: L1TGT.h:132
MonitorElement * BST_intensityBeam2
Definition: L1TGT.h:138
void bookHistograms()
book all histograms for the module
Definition: L1TGT.cc:505
MonitorElement * event_number
Definition: L1TGT.h:121
edm::InputTag gtEvmSource_
input tag for L1 GT EVM readout record
Definition: L1TGT.h:102
activeDAQ
Definition: L1TGT.h:84
static const int MaxLsNrDiffTcsFdlEvm
Definition: L1TGT.h:156
MonitorElement * orbit_lumi
Definition: L1TGT.h:126
std::string m_histFolder
histogram folder for L1 GT plots
Definition: L1TGT.h:174
MonitorElement * algo_bits_lumi
Definition: L1TGT.h:117
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
Definition: L1TGT.cc:93
MonitorElement * m_monLsNrDiffTcsFdlEvm
Definition: L1TGT.h:147
MonitorElement * gpsfreq
Definition: L1TGT.h:139
MonitorElement * algo_bits
Definition: L1TGT.h:112
MonitorElement * event_type
Definition: L1TGT.h:119
MonitorElement * m_monOrbitNrDiffTcsFdlEvmLs
Definition: L1TGT.h:158
MonitorElement * dbx_module
Definition: L1TGT.h:130
unsigned long long uint64_t
Definition: Time.h:15
virtual void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
end section
Definition: L1TGT.cc:456
MonitorElement * tt_bits_corr
Definition: L1TGT.h:115
virtual void endRun(const edm::Run &, const edm::EventSetup &)
Definition: L1TGT.cc:475
bool isActive(int word, int bit)
Definition: L1TGT.cc:769
MonitorElement * gpsfreqlum
Definition: L1TGT.h:141
int m_nrEvJob
number of events processed
Definition: L1TGT.h:170
MonitorElement * m_monL1PfIndicesPerLs
Definition: L1TGT.h:144
virtual void beginJob()
Definition: L1TGT.cc:56
MonitorElement * trigger_number
Definition: L1TGT.h:123
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
Definition: L1TGT.cc:65
int m_previousLS
Definition: L1TGT.h:180
MonitorElement * BST_beamMomentum
Definition: L1TGT.h:136
MonitorElement * BST_lhcFillNumber
Definition: L1TGT.h:134
MonitorElement * setupversion_lumi
Definition: L1TGT.h:127
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: L1TGT.cc:102
MonitorElement * BST_turnCountNumber
Definition: L1TGT.h:133
boost::uint64_t preOrb_
Definition: L1TGT.h:177
MonitorElement * event_lumi
Definition: L1TGT.h:122
MonitorElement * tt_bits_lumi
Definition: L1TGT.h:118
MonitorElement * trigger_lumi
Definition: L1TGT.h:124
MonitorElement * evnum_trignum_lumi
Definition: L1TGT.h:125
MonitorElement * algo_tt_bits_corr
Definition: L1TGT.h:116
Definition: Run.h:33
MonitorElement * m_monOrbitNrDiffTcsFdlEvm
Definition: L1TGT.h:146
L1TGT(const edm::ParameterSet &ps)
Definition: L1TGT.cc:22
virtual ~L1TGT()
Definition: L1TGT.cc:51