CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RCTMonitor.h
Go to the documentation of this file.
1 
2 #ifndef RCTMonitor_RCTMonitor_H
3 #define RCTMOnitor_RCTMonitor_H
4 
5 // -*- C++ -*-
6 //
7 // Package: RCTMonitor
8 // Class: RCTMonitor
9 //
15 //
16 // Original Author: S.Dasu. H.Patel, A.Savin
17 // version 0 is based on the GCTMonitor package created by A.Tapper
18 //
19 //
20 
21 // Framework files
22 
24 
25 #include <iostream>
29 
31 
35 
38 
39 
40 #include <TH1F.h>
41 #include <TH1I.h>
42 
43 //#include <SimDataFormats/Track/interface/SimTrackContainer.h>
44 
52 
53 // DQM files
56 
57 // GCT and RCT data formats
61 //#include <SimDataFormats/Track/interface/SimTrackContainer.h>
62 
63 // TPs
66 
67 // L1Extra
71 
72 struct rct_location { unsigned crate,card,region; };
73 
74 class RCTMonitor : public edm::EDAnalyzer {
75 
76  public:
77 
78  explicit RCTMonitor( const edm::ParameterSet& );
79  ~RCTMonitor();
80 
81  virtual void analyze( const edm::Event&, const edm::EventSetup& );
82  virtual void beginJob();
83  virtual void endJob(void);
84 
85  void BookRCT() ;
86  void FillRCT(const edm::Event&, const edm::EventSetup&) ;
87 
88 
89  private:
90 
91  // Don't use the default constructor
92  RCTMonitor();
93 
94  // RCT stuff
99 
118 
119  // Bins etc.
120 
121  // GCT and RCT
122  static const unsigned int ETABINS; static const float ETAMIN; static const float ETAMAX;
123  static const unsigned int PHIBINS; static const float PHIMIN; static const float PHIMAX;
124  static const unsigned int METPHIBINS; static const float METPHIMIN; static const float METPHIMAX;
125  static const unsigned int R6BINS; static const float R6MIN; static const float R6MAX;
126  static const unsigned int R10BINS; static const float R10MIN; static const float R10MAX;
127  static const unsigned int R12BINS; static const float R12MIN; static const float R12MAX;
128 
129  // HCAL and ECAL TPs
130  static const unsigned int TPETABINS; static const float TPETAMIN; static const float TPETAMAX;
131  static const unsigned int TPPHIBINS; static const float TPPHIMIN; static const float TPPHIMAX;
132  static const unsigned int RTPBINS; static const float RTPMIN; static const float RTPMAX;
133 
134  // Physical bins 1 GeV to 1 TeV in steps of 1 GeV
135  static const unsigned int TEVBINS; static const float TEVMIN; static const float TEVMAX;
136  static const unsigned int L1EETABINS; static const float L1EETAMIN; static const float L1EETAMAX;
137  static const unsigned int L1EPHIBINS; static const float L1EPHIMIN; static const float L1EPHIMAX;
138 
139  // event counter
140  int m_nevts;
141 
142  // back-end interface
144 
145  // Enable the daemon
147 
148  // Input digi labels
149 
151 
152  // Write events to an output file named in parameters
155 
156 
157 
158 };
159 
160 #endif
161 
static const unsigned int L1EPHIBINS
Definition: RCTMonitor.h:137
static const float ETAMIN
Definition: RCTMonitor.h:122
virtual void beginJob()
Definition: RCTMonitor.cc:22
MonitorElement * m_rctIsoEmRankEtaPhi10
Definition: RCTMonitor.h:101
std::string m_outputFileName
Definition: RCTMonitor.h:154
static const float TPPHIMIN
Definition: RCTMonitor.h:131
MonitorElement * m_rctNonIsoEmOccEtaPhi1
Definition: RCTMonitor.h:108
static const float METPHIMIN
Definition: RCTMonitor.h:124
static const unsigned int TPETABINS
Definition: RCTMonitor.h:130
static const float L1EPHIMIN
Definition: RCTMonitor.h:137
static const float R6MIN
Definition: RCTMonitor.h:125
static const float TEVMIN
Definition: RCTMonitor.h:135
MonitorElement * m_rctNonIsoEmOccEtaPhi10
Definition: RCTMonitor.h:109
static const float R6MAX
Definition: RCTMonitor.h:125
unsigned crate
Definition: RCTMonitor.h:72
static const float R10MAX
Definition: RCTMonitor.h:126
static const unsigned int R12BINS
Definition: RCTMonitor.h:127
unsigned card
Definition: RCTMonitor.h:72
MonitorElement * m_rctRelaxedEmRank1
Definition: RCTMonitor.h:114
static const float R12MAX
Definition: RCTMonitor.h:127
MonitorElement * m_rctRelaxedEmRankEtaPhi1
Definition: RCTMonitor.h:106
MonitorElement * m_rctNonIsoEmRank10
Definition: RCTMonitor.h:117
static const float R12MIN
Definition: RCTMonitor.h:127
MonitorElement * m_rctNonIsoEmRankEtaPhi10
Definition: RCTMonitor.h:105
MonitorElement * m_rctIsoEmRankEtaPhi1
Definition: RCTMonitor.h:100
virtual void endJob(void)
Definition: RCTMonitor.cc:29
static const float RTPMAX
Definition: RCTMonitor.h:132
MonitorElement * m_rctNonIsoEmRank1
Definition: RCTMonitor.h:116
MonitorElement * m_rctRelaxedEmOccEtaPhi10
Definition: RCTMonitor.h:111
static const unsigned int R10BINS
Definition: RCTMonitor.h:126
bool m_writeOutputFile
Definition: RCTMonitor.h:153
static const float PHIMAX
Definition: RCTMonitor.h:123
MonitorElement * m_rctRelaxedEmRankEtaPhi10
Definition: RCTMonitor.h:107
static const float L1EETAMIN
Definition: RCTMonitor.h:136
static const unsigned int R6BINS
Definition: RCTMonitor.h:125
static const float TPETAMIN
Definition: RCTMonitor.h:130
MonitorElement * m_rctTauVetoEtaPhi
Definition: RCTMonitor.h:97
static const float R10MIN
Definition: RCTMonitor.h:126
MonitorElement * m_rctRegionsEtEtaPhi
Definition: RCTMonitor.h:95
static const float L1EETAMAX
Definition: RCTMonitor.h:136
static const unsigned int RTPBINS
Definition: RCTMonitor.h:132
MonitorElement * m_rctNonIsoEmRankEtaPhi1
Definition: RCTMonitor.h:104
static const float ETAMAX
Definition: RCTMonitor.h:122
static const unsigned int PHIBINS
Definition: RCTMonitor.h:123
static const float L1EPHIMAX
Definition: RCTMonitor.h:137
unsigned region
Definition: RCTMonitor.h:72
static const float TPETAMAX
Definition: RCTMonitor.h:130
static const unsigned int ETABINS
Definition: RCTMonitor.h:122
MonitorElement * m_rctRegionsOccEtaPhi
Definition: RCTMonitor.h:96
MonitorElement * m_rctIsoEmRank1
Definition: RCTMonitor.h:112
static const float METPHIMAX
Definition: RCTMonitor.h:124
MonitorElement * m_rctRegionEt
Definition: RCTMonitor.h:98
static const float PHIMIN
Definition: RCTMonitor.h:123
bool m_enableMonitorDaemon
Definition: RCTMonitor.h:146
MonitorElement * m_rctRelaxedEmRank10
Definition: RCTMonitor.h:115
MonitorElement * m_rctIsoEmOccEtaPhi1
Definition: RCTMonitor.h:102
static const float TEVMAX
Definition: RCTMonitor.h:135
MonitorElement * m_rctIsoEmRank10
Definition: RCTMonitor.h:113
MonitorElement * m_rctIsoEmOccEtaPhi10
Definition: RCTMonitor.h:103
void FillRCT(const edm::Event &, const edm::EventSetup &)
Definition: RCTMonitor.cc:66
DQMStore * m_dbe
Definition: RCTMonitor.h:143
static const unsigned int TPPHIBINS
Definition: RCTMonitor.h:131
static const unsigned int TEVBINS
Definition: RCTMonitor.h:135
edm::InputTag m_rctSource
Definition: RCTMonitor.h:150
MonitorElement * m_rctRelaxedEmOccEtaPhi1
Definition: RCTMonitor.h:110
void BookRCT()
Definition: RCTMonitor.cc:126
static const float TPPHIMAX
Definition: RCTMonitor.h:131
static const float RTPMIN
Definition: RCTMonitor.h:132
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: RCTMonitor.cc:41
static const unsigned int METPHIBINS
Definition: RCTMonitor.h:124
static const unsigned int L1EETABINS
Definition: RCTMonitor.h:136