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  * $Date: 2010/01/13 13:04:58 $
8  * $Revision: 1.10 $
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 
35 
36 #include <iostream>
37 #include <fstream>
38 #include <vector>
39 
40 //
41 // class decleration
42 //
43 
44 class L1TGMT : public edm::EDAnalyzer {
45 
46 public:
47 
48 // Constructor
49 L1TGMT(const edm::ParameterSet& ps);
50 
51 // Destructor
52 virtual ~L1TGMT();
53 
54 protected:
55 // Analyze
56 void analyze(const edm::Event& e, const edm::EventSetup& c);
57 
58 // BeginJob
59 void beginJob(void);
60 
61 // BeginRun
62 void beginRun(const edm::Run& r, const edm::EventSetup& c);
63 
64 // EndJob
65 void endJob(void);
66 
67 private:
68  // ----------member data ---------------------------
70 
71  enum ensubs { DTTF=0, RPCb, CSCTF, RPCf, GMT };
72 
81 
83 
104 
108 
110 
111  int nev_; // Number of events processed
112  std::string outputFile_; //file name for ROOT ouput
113  bool verbose_;
115  ofstream logFile_;
117 
118  int evnum_old_; // event number of previous event
119  int bxnum_old_; // bx of previous event
120  int obnum_old_; // orbit of previous event
121  int trsrc_old_; // code of trigger source ( bits: 0 DT, 1 bRPC, 2 CSC, 3 fRPC )
122 
123  static const double piconv_;
124  double phiconv_(float phi);
125  void book_(const edm::EventSetup& c);
126 };
127 
128 #endif
Definition: L1TGMT.h:44
L1TGMT(const edm::ParameterSet &ps)
Definition: L1TGMT.cc:25
std::string outputFile_
Definition: L1TGMT.h:112
MonitorElement * bx_number
Definition: L1TGMT.h:84
void beginJob(void)
Definition: L1TGMT.cc:63
void beginRun(const edm::Run &r, const edm::EventSetup &c)
Definition: L1TGMT.cc:72
MonitorElement * phi_rpc_only
Definition: L1TGMT.h:91
MonitorElement * subs_eta[5]
Definition: L1TGMT.h:74
int nev_
Definition: L1TGMT.h:111
bool monitorDaemon_
Definition: L1TGMT.h:114
int obnum_old_
Definition: L1TGMT.h:120
MonitorElement * subs_nbx[5]
Definition: L1TGMT.h:73
void endJob(void)
Definition: L1TGMT.cc:82
double phiconv_(float phi)
Definition: L1TGMT.cc:284
void analyze(const edm::Event &e, const edm::EventSetup &c)
Definition: L1TGMT.cc:92
int bxnum_old_
Definition: L1TGMT.h:119
ensubs
Definition: L1TGMT.h:71
MonitorElement * dist_eta_dt_rpc
Definition: L1TGMT.h:98
MonitorElement * subs_bits[5]
Definition: L1TGMT.h:80
MonitorElement * subs_dbx[4]
Definition: L1TGMT.h:109
MonitorElement * n_csctf_vs_dttf
Definition: L1TGMT.h:107
int evnum_old_
Definition: L1TGMT.h:118
MonitorElement * eta_dtcsc_and_rpc
Definition: L1TGMT.h:86
edm::InputTag gmtSource_
Definition: L1TGMT.h:116
MonitorElement * dist_eta_csc_rpc
Definition: L1TGMT.h:99
MonitorElement * subs_etaphi[5]
Definition: L1TGMT.h:78
int trsrc_old_
Definition: L1TGMT.h:121
MonitorElement * regional_triggers
Definition: L1TGMT.h:82
static const double piconv_
Definition: L1TGMT.h:123
MonitorElement * etaphi_dtcsc_and_rpc
Definition: L1TGMT.h:92
MonitorElement * etaphi_rpc_only
Definition: L1TGMT.h:94
MonitorElement * eta_dtcsc_only
Definition: L1TGMT.h:87
MonitorElement * eta_rpc_only
Definition: L1TGMT.h:88
MonitorElement * n_rpcb_vs_dttf
Definition: L1TGMT.h:105
MonitorElement * phi_dtcsc_only
Definition: L1TGMT.h:90
ofstream logFile_
Definition: L1TGMT.h:115
MonitorElement * bx_dt_csc
Definition: L1TGMT.h:103
MonitorElement * subs_phi[5]
Definition: L1TGMT.h:75
MonitorElement * dbx_chip
Definition: L1TGMT.h:85
void book_(const edm::EventSetup &c)
Definition: L1TGMT.cc:291
MonitorElement * dist_phi_dt_rpc
Definition: L1TGMT.h:95
MonitorElement * dist_phi_dt_csc
Definition: L1TGMT.h:97
bool verbose_
Definition: L1TGMT.h:113
virtual ~L1TGMT()
Definition: L1TGMT.cc:59
MonitorElement * phi_dtcsc_and_rpc
Definition: L1TGMT.h:89
MonitorElement * subs_pt[5]
Definition: L1TGMT.h:76
MonitorElement * subs_qty[5]
Definition: L1TGMT.h:77
MonitorElement * bx_csc_rpc
Definition: L1TGMT.h:102
MonitorElement * bx_dt_rpc
Definition: L1TGMT.h:101
MonitorElement * dist_phi_csc_rpc
Definition: L1TGMT.h:96
MonitorElement * etaphi_dtcsc_only
Definition: L1TGMT.h:93
MonitorElement * subs_etaqty[5]
Definition: L1TGMT.h:79
MonitorElement * dist_eta_dt_csc
Definition: L1TGMT.h:100
DQMStore * dbe
Definition: L1TGMT.h:69
Definition: Run.h:31
MonitorElement * n_rpcf_vs_csctf
Definition: L1TGMT.h:106
Definition: DDAxes.h:10