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