test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TGMT.h
Go to the documentation of this file.
1 #ifndef L1TGMT_H
2 #define L1TGMT_H
3 
4 /*
5  * \file L1TGMT.h
6  *
7  * \author J. Berryhill, I. Mikulec
8  *
9 */
10 
11 // system include files
12 #include <memory>
13 #include <unistd.h>
14 
15 // user include files
18 
21 
23 
28 
33 
34 #include <iostream>
35 #include <fstream>
36 #include <vector>
37 
38 //
39 // class decleration
40 //
41 
42 class L1TGMT : public edm::EDAnalyzer {
43 
44 public:
45 
46 // Constructor
47 L1TGMT(const edm::ParameterSet& ps);
48 
49 // Destructor
50 virtual ~L1TGMT();
51 
52 protected:
53 // Analyze
54 void analyze(const edm::Event& e, const edm::EventSetup& c);
55 
56 // BeginJob
57 void beginJob(void);
58 
59 // BeginRun
60 void beginRun(const edm::Run& r, const edm::EventSetup& c);
61 
62 // EndJob
63 void endJob(void);
64 
65 private:
66  // ----------member data ---------------------------
68 
69  enum ensubs { DTTF=0, RPCb, CSCTF, RPCf, GMT };
70 
79 
81 
102 
106 
108 
109  int nev_; // Number of events processed
110  std::string outputFile_; //file name for ROOT ouput
111  bool verbose_;
113  std::ofstream logFile_;
115 
116  int evnum_old_; // event number of previous event
117  int bxnum_old_; // bx of previous event
118  int obnum_old_; // orbit of previous event
119  int trsrc_old_; // code of trigger source ( bits: 0 DT, 1 bRPC, 2 CSC, 3 fRPC )
120 
121  static const double piconv_;
122  double phiconv_(float phi);
123  void book_(const edm::EventSetup& c);
124 };
125 
126 #endif
Definition: L1TGMT.h:42
L1TGMT(const edm::ParameterSet &ps)
Definition: L1TGMT.cc:23
std::string outputFile_
Definition: L1TGMT.h:110
MonitorElement * bx_number
Definition: L1TGMT.h:82
void beginJob(void)
Definition: L1TGMT.cc:61
void beginRun(const edm::Run &r, const edm::EventSetup &c)
Definition: L1TGMT.cc:70
MonitorElement * phi_rpc_only
Definition: L1TGMT.h:89
MonitorElement * subs_eta[5]
Definition: L1TGMT.h:72
int nev_
Definition: L1TGMT.h:109
bool monitorDaemon_
Definition: L1TGMT.h:112
int obnum_old_
Definition: L1TGMT.h:118
MonitorElement * subs_nbx[5]
Definition: L1TGMT.h:71
edm::EDGetTokenT< L1MuGMTReadoutCollection > gmtSource_
Definition: L1TGMT.h:114
void endJob(void)
Definition: L1TGMT.cc:80
double phiconv_(float phi)
Definition: L1TGMT.cc:281
void analyze(const edm::Event &e, const edm::EventSetup &c)
Definition: L1TGMT.cc:90
int bxnum_old_
Definition: L1TGMT.h:117
ensubs
Definition: L1TGMT.h:69
MonitorElement * dist_eta_dt_rpc
Definition: L1TGMT.h:96
MonitorElement * subs_bits[5]
Definition: L1TGMT.h:78
MonitorElement * subs_dbx[4]
Definition: L1TGMT.h:107
MonitorElement * n_csctf_vs_dttf
Definition: L1TGMT.h:105
int evnum_old_
Definition: L1TGMT.h:116
MonitorElement * eta_dtcsc_and_rpc
Definition: L1TGMT.h:84
MonitorElement * dist_eta_csc_rpc
Definition: L1TGMT.h:97
MonitorElement * subs_etaphi[5]
Definition: L1TGMT.h:76
int trsrc_old_
Definition: L1TGMT.h:119
MonitorElement * regional_triggers
Definition: L1TGMT.h:80
static const double piconv_
Definition: L1TGMT.h:121
MonitorElement * etaphi_dtcsc_and_rpc
Definition: L1TGMT.h:90
MonitorElement * etaphi_rpc_only
Definition: L1TGMT.h:92
MonitorElement * eta_dtcsc_only
Definition: L1TGMT.h:85
MonitorElement * eta_rpc_only
Definition: L1TGMT.h:86
MonitorElement * n_rpcb_vs_dttf
Definition: L1TGMT.h:103
MonitorElement * phi_dtcsc_only
Definition: L1TGMT.h:88
MonitorElement * bx_dt_csc
Definition: L1TGMT.h:101
MonitorElement * subs_phi[5]
Definition: L1TGMT.h:73
MonitorElement * dbx_chip
Definition: L1TGMT.h:83
void book_(const edm::EventSetup &c)
Definition: L1TGMT.cc:288
MonitorElement * dist_phi_dt_rpc
Definition: L1TGMT.h:93
MonitorElement * dist_phi_dt_csc
Definition: L1TGMT.h:95
bool verbose_
Definition: L1TGMT.h:111
virtual ~L1TGMT()
Definition: L1TGMT.cc:57
MonitorElement * phi_dtcsc_and_rpc
Definition: L1TGMT.h:87
MonitorElement * subs_pt[5]
Definition: L1TGMT.h:74
MonitorElement * subs_qty[5]
Definition: L1TGMT.h:75
std::ofstream logFile_
Definition: L1TGMT.h:113
MonitorElement * bx_csc_rpc
Definition: L1TGMT.h:100
MonitorElement * bx_dt_rpc
Definition: L1TGMT.h:99
MonitorElement * dist_phi_csc_rpc
Definition: L1TGMT.h:94
MonitorElement * etaphi_dtcsc_only
Definition: L1TGMT.h:91
MonitorElement * subs_etaqty[5]
Definition: L1TGMT.h:77
MonitorElement * dist_eta_dt_csc
Definition: L1TGMT.h:98
DQMStore * dbe
Definition: L1TGMT.h:67
Definition: Run.h:41
MonitorElement * n_rpcf_vs_csctf
Definition: L1TGMT.h:104
Definition: DDAxes.h:10