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 
4 /*
5  * \file L1TGT.h
6  *
7  * $Date: 2009/11/20 23:50:35 $
8  * $Revision: 1.8 $
9  * \author J. Berryhill, I. Mikulec
10  *
11 */
12 
13 // system include files
14 #include <memory>
15 #include <unistd.h>
16 
17 // user include files
20 
23 
25 
30 
31 #include <iostream>
32 #include <fstream>
33 #include <vector>
34 
35 //
36 // class decleration
37 //
38 
39 class L1TGT : public edm::EDAnalyzer {
40 
41 public:
42 
43 // Constructor
44 L1TGT(const edm::ParameterSet& ps);
45 
46 // Destructor
47 virtual ~L1TGT();
48 
49 protected:
50 // Analyze
51 void analyze(const edm::Event& e, const edm::EventSetup& c);
52 
53 // BeginJob
54 void beginJob();
55 
56 // EndJob
57 void endJob(void);
58 
59 private:
60 
61  bool isActive(int word, int bit);
62  // Active boards DAQ record bit number:
63  // 0 FDL
64  // 1 PSB_0 9 Techn.Triggers for FDL
65  // 2 PSB_1 13 Calo data for GTL
66  // 3 PSB_2 14 Calo data for GTL
67  // 4 PSB_3 15 Calo data for GTL
68  // 5 PSB_4 19 M/Q bits for GMT
69  // 6 PSB_5 20 M/Q bits for GMT
70  // 7 PSB_6 21 M/Q bits for GMT
71  // 8 GMT
73  // Active boards EVM record bit number:
74  // 0 TCS
75  // 1 FDL
76  enum activeEVM { TCS, FDLEVM };
77 
78  // ----------member data ---------------------------
80 
89 
97 
100 
111 
113 
114 
115 
116 
117  int nev_; // Number of events processed
118  std::string outputFile_; //file name for ROOT ouput
119  bool verbose_;
121  ofstream logFile_;
124 
127 };
128 
129 #endif
MonitorElement * m_monL1PrescaleFactorSet
Definition: L1TGT.h:112
MonitorElement * gpsfreqwide
Definition: L1TGT.h:109
boost::uint64_t preGps_
Definition: L1TGT.h:125
Definition: L1TGT.h:39
activeEVM
Definition: L1TGT.h:76
std::string outputFile_
Definition: L1TGT.h:118
MonitorElement * BST_intensityBeam1
Definition: L1TGT.h:106
MonitorElement * algo_bits_corr
Definition: L1TGT.h:82
MonitorElement * tt_bits
Definition: L1TGT.h:83
bool verbose_
Definition: L1TGT.h:119
MonitorElement * gtfe_bx
Definition: L1TGT.h:98
edm::InputTag gtSource_
Definition: L1TGT.h:122
MonitorElement * BST_beamMode
Definition: L1TGT.h:104
MonitorElement * BST_MasterStatus
Definition: L1TGT.h:101
void endJob(void)
Definition: L1TGT.cc:277
MonitorElement * BST_intensityBeam2
Definition: L1TGT.h:107
MonitorElement * event_number
Definition: L1TGT.h:90
edm::InputTag gtEvmSource_
Definition: L1TGT.h:123
activeDAQ
Definition: L1TGT.h:72
MonitorElement * orbit_lumi
Definition: L1TGT.h:95
ofstream logFile_
Definition: L1TGT.h:121
DQMStore * dbe
Definition: L1TGT.h:79
MonitorElement * algo_bits_lumi
Definition: L1TGT.h:86
MonitorElement * gpsfreq
Definition: L1TGT.h:108
int nev_
Definition: L1TGT.h:117
MonitorElement * algo_bits
Definition: L1TGT.h:81
MonitorElement * event_type
Definition: L1TGT.h:88
MonitorElement * dbx_module
Definition: L1TGT.h:99
unsigned long long uint64_t
Definition: Time.h:15
MonitorElement * tt_bits_corr
Definition: L1TGT.h:84
bool isActive(int word, int bit)
Definition: L1TGT.cc:534
MonitorElement * gpsfreqlum
Definition: L1TGT.h:110
void beginJob()
Definition: L1TGT.cc:58
MonitorElement * trigger_number
Definition: L1TGT.h:92
MonitorElement * BST_beamMomentum
Definition: L1TGT.h:105
MonitorElement * BST_lhcFillNumber
Definition: L1TGT.h:103
MonitorElement * setupversion_lumi
Definition: L1TGT.h:96
MonitorElement * BST_turnCountNumber
Definition: L1TGT.h:102
boost::uint64_t preOrb_
Definition: L1TGT.h:126
MonitorElement * event_lumi
Definition: L1TGT.h:91
MonitorElement * tt_bits_lumi
Definition: L1TGT.h:87
MonitorElement * trigger_lumi
Definition: L1TGT.h:93
MonitorElement * evnum_trignum_lumi
Definition: L1TGT.h:94
MonitorElement * algo_tt_bits_corr
Definition: L1TGT.h:85
L1TGT(const edm::ParameterSet &ps)
Definition: L1TGT.cc:20
virtual ~L1TGT()
Definition: L1TGT.cc:53
void analyze(const edm::Event &e, const edm::EventSetup &c)
Definition: L1TGT.cc:291
bool monitorDaemon_
Definition: L1TGT.h:120