CMS 3D CMS Logo

RCTMonitor.h
Go to the documentation of this file.
1 #ifndef RCTMonitor_RCTMonitor_H
2 #define RCTMonitor_RCTMonitor_H
3 
4 // -*- C++ -*-
5 //
6 // Package: RCTMonitor
7 // Class: RCTMonitor
8 //
14 //
15 // Original Author: S.Dasu. H.Patel, A.Savin
16 // version 0 is based on the GCTMonitor package created by A.Tapper
17 //
18 //
19 
20 // Framework files
21 
23 
27 #include <iostream>
28 
30 
34 
37 
38 #include <TH1F.h>
39 #include <TH1I.h>
40 
41 //#include <SimDataFormats/Track/interface/SimTrackContainer.h>
42 
49 
50 // DQM files
54 
55 // GCT and RCT data formats
59 //#include <SimDataFormats/Track/interface/SimTrackContainer.h>
60 
61 // TPs
64 
65 // L1Extra
69 
70 struct rct_location {
71  unsigned crate, card, region;
72 };
73 
74 class RCTMonitor : public DQMEDAnalyzer {
75 public:
76  explicit RCTMonitor(const edm::ParameterSet &);
77  ~RCTMonitor() override;
78  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
79  void analyze(const edm::Event &, const edm::EventSetup &) override;
80  void FillRCT(const edm::Event &, const edm::EventSetup &);
81 
82 private:
83  // RCT stuff
88 
107 
108  // Bins etc.
109  // GCT and RCT
110  static const unsigned int ETABINS;
111  static const float ETAMIN;
112  static const float ETAMAX;
113  static const unsigned int PHIBINS;
114  static const float PHIMIN;
115  static const float PHIMAX;
116  static const unsigned int METPHIBINS;
117  static const float METPHIMIN;
118  static const float METPHIMAX;
119  static const unsigned int R6BINS;
120  static const float R6MIN;
121  static const float R6MAX;
122  static const unsigned int R10BINS;
123  static const float R10MIN;
124  static const float R10MAX;
125  static const unsigned int R12BINS;
126  static const float R12MIN;
127  static const float R12MAX;
128 
129  // HCAL and ECAL TPs
130  static const unsigned int TPETABINS;
131  static const float TPETAMIN;
132  static const float TPETAMAX;
133  static const unsigned int TPPHIBINS;
134  static const float TPPHIMIN;
135  static const float TPPHIMAX;
136  static const unsigned int RTPBINS;
137  static const float RTPMIN;
138  static const float RTPMAX;
139 
140  // Physical bins 1 GeV to 1 TeV in steps of 1 GeV
141  static const unsigned int TEVBINS;
142  static const float TEVMIN;
143  static const float TEVMAX;
144  static const unsigned int L1EETABINS;
145  static const float L1EETAMIN;
146  static const float L1EETAMAX;
147  static const unsigned int L1EPHIBINS;
148  static const float L1EPHIMIN;
149  static const float L1EPHIMAX;
150 
151  // define Token(-s)
153 };
154 
155 #endif // RCTMonitor_RCTMonitor_H
static const unsigned int L1EPHIBINS
Definition: RCTMonitor.h:147
static const float ETAMIN
Definition: RCTMonitor.h:111
edm::EDGetTokenT< L1CaloEmCollection > m_rctSourceToken_
Definition: RCTMonitor.h:152
MonitorElement * m_rctIsoEmRankEtaPhi10
Definition: RCTMonitor.h:90
static const float TPPHIMIN
Definition: RCTMonitor.h:134
MonitorElement * m_rctNonIsoEmOccEtaPhi1
Definition: RCTMonitor.h:97
static const float METPHIMIN
Definition: RCTMonitor.h:117
static const unsigned int TPETABINS
Definition: RCTMonitor.h:130
static const float L1EPHIMIN
Definition: RCTMonitor.h:148
static const float R6MIN
Definition: RCTMonitor.h:120
static const float TEVMIN
Definition: RCTMonitor.h:142
MonitorElement * m_rctNonIsoEmOccEtaPhi10
Definition: RCTMonitor.h:98
static const float R6MAX
Definition: RCTMonitor.h:121
unsigned crate
Definition: RCTMonitor.h:71
static const float R10MAX
Definition: RCTMonitor.h:124
static const unsigned int R12BINS
Definition: RCTMonitor.h:125
unsigned card
Definition: RCTMonitor.h:71
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * m_rctRelaxedEmRank1
Definition: RCTMonitor.h:103
static const float R12MAX
Definition: RCTMonitor.h:127
MonitorElement * m_rctRelaxedEmRankEtaPhi1
Definition: RCTMonitor.h:95
MonitorElement * m_rctNonIsoEmRank10
Definition: RCTMonitor.h:106
static const float R12MIN
Definition: RCTMonitor.h:126
MonitorElement * m_rctNonIsoEmRankEtaPhi10
Definition: RCTMonitor.h:94
MonitorElement * m_rctIsoEmRankEtaPhi1
Definition: RCTMonitor.h:89
static const float RTPMAX
Definition: RCTMonitor.h:138
MonitorElement * m_rctNonIsoEmRank1
Definition: RCTMonitor.h:105
MonitorElement * m_rctRelaxedEmOccEtaPhi10
Definition: RCTMonitor.h:100
static const unsigned int R10BINS
Definition: RCTMonitor.h:122
static const float PHIMAX
Definition: RCTMonitor.h:115
MonitorElement * m_rctRelaxedEmRankEtaPhi10
Definition: RCTMonitor.h:96
static const float L1EETAMIN
Definition: RCTMonitor.h:145
static const unsigned int R6BINS
Definition: RCTMonitor.h:119
static const float TPETAMIN
Definition: RCTMonitor.h:131
MonitorElement * m_rctTauVetoEtaPhi
Definition: RCTMonitor.h:86
static const float R10MIN
Definition: RCTMonitor.h:123
MonitorElement * m_rctRegionsEtEtaPhi
Definition: RCTMonitor.h:84
static const float L1EETAMAX
Definition: RCTMonitor.h:146
static const unsigned int RTPBINS
Definition: RCTMonitor.h:136
MonitorElement * m_rctNonIsoEmRankEtaPhi1
Definition: RCTMonitor.h:93
static const float ETAMAX
Definition: RCTMonitor.h:112
static const unsigned int PHIBINS
Definition: RCTMonitor.h:113
static const float L1EPHIMAX
Definition: RCTMonitor.h:149
unsigned region
Definition: RCTMonitor.h:71
static const float TPETAMAX
Definition: RCTMonitor.h:132
static const unsigned int ETABINS
Definition: RCTMonitor.h:110
MonitorElement * m_rctRegionsOccEtaPhi
Definition: RCTMonitor.h:85
MonitorElement * m_rctIsoEmRank1
Definition: RCTMonitor.h:101
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
static const float METPHIMAX
Definition: RCTMonitor.h:118
MonitorElement * m_rctRegionEt
Definition: RCTMonitor.h:87
static const float PHIMIN
Definition: RCTMonitor.h:114
MonitorElement * m_rctRelaxedEmRank10
Definition: RCTMonitor.h:104
MonitorElement * m_rctIsoEmOccEtaPhi1
Definition: RCTMonitor.h:91
static const float TEVMAX
Definition: RCTMonitor.h:143
MonitorElement * m_rctIsoEmRank10
Definition: RCTMonitor.h:102
MonitorElement * m_rctIsoEmOccEtaPhi10
Definition: RCTMonitor.h:92
static const unsigned int TPPHIBINS
Definition: RCTMonitor.h:133
static const unsigned int TEVBINS
Definition: RCTMonitor.h:141
MonitorElement * m_rctRelaxedEmOccEtaPhi1
Definition: RCTMonitor.h:99
static const float TPPHIMAX
Definition: RCTMonitor.h:135
static const float RTPMIN
Definition: RCTMonitor.h:137
static const unsigned int METPHIBINS
Definition: RCTMonitor.h:116
static const unsigned int L1EETABINS
Definition: RCTMonitor.h:144
Definition: Run.h:45