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) override;
56 
57 // BeginJob
58 
59  virtual void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
60  virtual void beginLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&) override;
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  const bool verbose_;
107  std::ofstream logFile_;
109 
110  int bxnum_old_; // bx of previous event
111  int obnum_old_; // orbit of previous event
112  int trsrc_old_; // code of trigger source ( bits: 0 DT, 1 bRPC, 2 CSC, 3 fRPC )
113 
114  static const double piconv_;
115  double phiconv_(float phi);
116  void book_(const edm::EventSetup& c);
117 };
118 
119 #endif
Definition: L1TGMT.h:43
L1TGMT(const edm::ParameterSet &ps)
Definition: L1TGMT.cc:23
virtual void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Definition: L1TGMT.cc:38
MonitorElement * bx_number
Definition: L1TGMT.h:79
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: L1TGMT.cc:48
MonitorElement * phi_rpc_only
Definition: L1TGMT.h:86
const bool verbose_
Definition: L1TGMT.h:106
MonitorElement * subs_eta[5]
Definition: L1TGMT.h:69
int obnum_old_
Definition: L1TGMT.h:111
MonitorElement * subs_nbx[5]
Definition: L1TGMT.h:68
double phiconv_(float phi)
Definition: L1TGMT.cc:236
int bxnum_old_
Definition: L1TGMT.h:110
ensubs
Definition: L1TGMT.h:66
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
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:112
const edm::EDGetTokenT< L1MuGMTReadoutCollection > gmtSource_
Definition: L1TGMT.h:108
MonitorElement * regional_triggers
Definition: L1TGMT.h:77
static const double piconv_
Definition: L1TGMT.h:114
MonitorElement * etaphi_dtcsc_and_rpc
Definition: L1TGMT.h:87
MonitorElement * etaphi_rpc_only
Definition: L1TGMT.h:89
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Definition: L1TGMT.cc:42
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
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:243
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
virtual ~L1TGMT()
Definition: L1TGMT.cc:33
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:107
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:43
MonitorElement * n_rpcf_vs_csctf
Definition: L1TGMT.h:101