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
53 
54 // GCT and RCT data formats
58 //#include <SimDataFormats/Track/interface/SimTrackContainer.h>
59 
60 // TPs
63 
64 // L1Extra
68 
69 struct rct_location {
70  unsigned crate, card, region;
71 };
72 
73 class RCTMonitor : public DQMEDAnalyzer {
74 public:
75  explicit RCTMonitor(const edm::ParameterSet &);
76  ~RCTMonitor() override;
77  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
78  void analyze(const edm::Event &, const edm::EventSetup &) override;
79  void FillRCT(const edm::Event &, const edm::EventSetup &);
80 
81 private:
82  // RCT stuff
87 
106 
107  // Bins etc.
108  // GCT and RCT
109  static const unsigned int ETABINS;
110  static const float ETAMIN;
111  static const float ETAMAX;
112  static const unsigned int PHIBINS;
113  static const float PHIMIN;
114  static const float PHIMAX;
115  static const unsigned int METPHIBINS;
116  static const float METPHIMIN;
117  static const float METPHIMAX;
118  static const unsigned int R6BINS;
119  static const float R6MIN;
120  static const float R6MAX;
121  static const unsigned int R10BINS;
122  static const float R10MIN;
123  static const float R10MAX;
124  static const unsigned int R12BINS;
125  static const float R12MIN;
126  static const float R12MAX;
127 
128  // HCAL and ECAL TPs
129  static const unsigned int TPETABINS;
130  static const float TPETAMIN;
131  static const float TPETAMAX;
132  static const unsigned int TPPHIBINS;
133  static const float TPPHIMIN;
134  static const float TPPHIMAX;
135  static const unsigned int RTPBINS;
136  static const float RTPMIN;
137  static const float RTPMAX;
138 
139  // Physical bins 1 GeV to 1 TeV in steps of 1 GeV
140  static const unsigned int TEVBINS;
141  static const float TEVMIN;
142  static const float TEVMAX;
143  static const unsigned int L1EETABINS;
144  static const float L1EETAMIN;
145  static const float L1EETAMAX;
146  static const unsigned int L1EPHIBINS;
147  static const float L1EPHIMIN;
148  static const float L1EPHIMAX;
149 
150  // define Token(-s)
152 };
153 
154 #endif // RCTMonitor_RCTMonitor_H
RCTMonitor::m_rctNonIsoEmRankEtaPhi1
MonitorElement * m_rctNonIsoEmRankEtaPhi1
Definition: RCTMonitor.h:92
dqm::impl::MonitorElement
Definition: MonitorElement.h:99
Handle.h
RCTMonitor::m_rctRelaxedEmOccEtaPhi1
MonitorElement * m_rctRelaxedEmOccEtaPhi1
Definition: RCTMonitor.h:98
RCTMonitor::TPETAMAX
static const float TPETAMAX
Definition: RCTMonitor.h:131
RCTMonitor::R12BINS
static const unsigned int R12BINS
Definition: RCTMonitor.h:124
MessageLogger.h
RCTMonitor::TEVMIN
static const float TEVMIN
Definition: RCTMonitor.h:141
RCTMonitor::RTPMAX
static const float RTPMAX
Definition: RCTMonitor.h:137
RCTMonitor::m_rctRelaxedEmRank1
MonitorElement * m_rctRelaxedEmRank1
Definition: RCTMonitor.h:102
ESHandle.h
RCTMonitor::METPHIMAX
static const float METPHIMAX
Definition: RCTMonitor.h:117
L1GctCollections.h
RCTMonitor::~RCTMonitor
~RCTMonitor() override
Definition: RCTMonitor.cc:11
RCTMonitor::PHIMIN
static const float PHIMIN
Definition: RCTMonitor.h:113
rct_location::crate
unsigned crate
Definition: RCTMonitor.h:70
edm::Run
Definition: Run.h:45
RCTMonitor::R6MAX
static const float R6MAX
Definition: RCTMonitor.h:120
edm::EDGetTokenT< L1CaloEmCollection >
RCTMonitor::R10BINS
static const unsigned int R10BINS
Definition: RCTMonitor.h:121
RCTMonitor::m_rctIsoEmOccEtaPhi10
MonitorElement * m_rctIsoEmOccEtaPhi10
Definition: RCTMonitor.h:91
RCTMonitor::FillRCT
void FillRCT(const edm::Event &, const edm::EventSetup &)
Definition: RCTMonitor.cc:78
RCTMonitor::METPHIBINS
static const unsigned int METPHIBINS
Definition: RCTMonitor.h:115
DQMStore.h
RCTMonitor::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: RCTMonitor.cc:13
RCTMonitor::PHIBINS
static const unsigned int PHIBINS
Definition: RCTMonitor.h:112
RCTMonitor::PHIMAX
static const float PHIMAX
Definition: RCTMonitor.h:114
RCTMonitor::m_rctIsoEmRank10
MonitorElement * m_rctIsoEmRank10
Definition: RCTMonitor.h:101
CaloTPGTranscoder.h
RCTMonitor::L1EETAMAX
static const float L1EETAMAX
Definition: RCTMonitor.h:145
rct_location::card
unsigned card
Definition: RCTMonitor.h:70
RCTMonitor::R6BINS
static const unsigned int R6BINS
Definition: RCTMonitor.h:118
RCTMonitor::RTPBINS
static const unsigned int RTPBINS
Definition: RCTMonitor.h:135
RCTMonitor::L1EPHIBINS
static const unsigned int L1EPHIBINS
Definition: RCTMonitor.h:146
RCTMonitor::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: RCTMonitor.cc:59
RCTMonitor::TPPHIMAX
static const float TPPHIMAX
Definition: RCTMonitor.h:134
MakerMacros.h
L1RCT.h
RCTMonitor::TPETABINS
static const unsigned int TPETABINS
Definition: RCTMonitor.h:129
RCTMonitor::TPPHIMIN
static const float TPPHIMIN
Definition: RCTMonitor.h:133
Service.h
HcalDigiCollections.h
RCTMonitor::TPETAMIN
static const float TPETAMIN
Definition: RCTMonitor.h:130
RCTMonitor::R10MIN
static const float R10MIN
Definition: RCTMonitor.h:122
RCTMonitor::L1EPHIMAX
static const float L1EPHIMAX
Definition: RCTMonitor.h:148
EcalDigiCollections.h
RCTMonitor::TEVMAX
static const float TEVMAX
Definition: RCTMonitor.h:142
RCTMonitor::ETABINS
static const unsigned int ETABINS
Definition: RCTMonitor.h:109
RCTMonitor
Definition: RCTMonitor.h:73
RCTMonitor::m_rctRegionsOccEtaPhi
MonitorElement * m_rctRegionsOccEtaPhi
Definition: RCTMonitor.h:84
RCTMonitor::R6MIN
static const float R6MIN
Definition: RCTMonitor.h:119
RCTMonitor::TPPHIBINS
static const unsigned int TPPHIBINS
Definition: RCTMonitor.h:132
DQMEDAnalyzer.h
RCTMonitor::ETAMAX
static const float ETAMAX
Definition: RCTMonitor.h:111
RCTMonitor::m_rctSourceToken_
edm::EDGetTokenT< L1CaloEmCollection > m_rctSourceToken_
Definition: RCTMonitor.h:151
RCTMonitor::m_rctRelaxedEmRank10
MonitorElement * m_rctRelaxedEmRank10
Definition: RCTMonitor.h:103
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
rct_location
Definition: RCTMonitor.h:69
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
RCTMonitor::RCTMonitor
RCTMonitor(const edm::ParameterSet &)
Definition: RCTMonitor.cc:6
L1CaloGeometryRecord.h
ModuleDef.h
RCTMonitor::METPHIMIN
static const float METPHIMIN
Definition: RCTMonitor.h:116
L1CaloCollections.h
RCTMonitor::m_rctIsoEmOccEtaPhi1
MonitorElement * m_rctIsoEmOccEtaPhi1
Definition: RCTMonitor.h:90
L1GctEtSums.h
RCTMonitor::m_rctNonIsoEmRank1
MonitorElement * m_rctNonIsoEmRank1
Definition: RCTMonitor.h:104
RCTMonitor::RTPMIN
static const float RTPMIN
Definition: RCTMonitor.h:136
L1RCTLookupTables.h
edm::EventSetup
Definition: EventSetup.h:58
RCTMonitor::R12MIN
static const float R12MIN
Definition: RCTMonitor.h:125
L1EmParticle.h
RCTMonitor::m_rctNonIsoEmRankEtaPhi10
MonitorElement * m_rctNonIsoEmRankEtaPhi10
Definition: RCTMonitor.h:93
CaloTPGRecord.h
RCTMonitor::L1EETABINS
static const unsigned int L1EETABINS
Definition: RCTMonitor.h:143
rct_location::region
unsigned region
Definition: RCTMonitor.h:70
RCTMonitor::L1EETAMIN
static const float L1EETAMIN
Definition: RCTMonitor.h:144
RCTMonitor::m_rctIsoEmRankEtaPhi10
MonitorElement * m_rctIsoEmRankEtaPhi10
Definition: RCTMonitor.h:89
RCTMonitor::m_rctTauVetoEtaPhi
MonitorElement * m_rctTauVetoEtaPhi
Definition: RCTMonitor.h:85
RCTMonitor::R12MAX
static const float R12MAX
Definition: RCTMonitor.h:126
RCTMonitor::m_rctNonIsoEmRank10
MonitorElement * m_rctNonIsoEmRank10
Definition: RCTMonitor.h:105
Frameworkfwd.h
RCTMonitor::m_rctNonIsoEmOccEtaPhi1
MonitorElement * m_rctNonIsoEmOccEtaPhi1
Definition: RCTMonitor.h:96
RCTMonitor::m_rctNonIsoEmOccEtaPhi10
MonitorElement * m_rctNonIsoEmOccEtaPhi10
Definition: RCTMonitor.h:97
RCTMonitor::m_rctRelaxedEmRankEtaPhi10
MonitorElement * m_rctRelaxedEmRankEtaPhi10
Definition: RCTMonitor.h:95
RCTMonitor::m_rctRelaxedEmRankEtaPhi1
MonitorElement * m_rctRelaxedEmRankEtaPhi1
Definition: RCTMonitor.h:94
EventSetup.h
RCTMonitor::L1EPHIMIN
static const float L1EPHIMIN
Definition: RCTMonitor.h:147
dqm::implementation::IBooker
Definition: DQMStore.h:43
RCTMonitor::ETAMIN
static const float ETAMIN
Definition: RCTMonitor.h:110
RCTMonitor::m_rctRegionsEtEtaPhi
MonitorElement * m_rctRegionsEtEtaPhi
Definition: RCTMonitor.h:83
L1EtMissParticle.h
ParameterSet.h
RCTMonitor::m_rctRegionEt
MonitorElement * m_rctRegionEt
Definition: RCTMonitor.h:86
edm::Event
Definition: Event.h:73
RCTMonitor::m_rctRelaxedEmOccEtaPhi10
MonitorElement * m_rctRelaxedEmOccEtaPhi10
Definition: RCTMonitor.h:99
L1JetParticle.h
L1CaloGeometry.h
RCTMonitor::R10MAX
static const float R10MAX
Definition: RCTMonitor.h:123
RCTMonitor::m_rctIsoEmRankEtaPhi1
MonitorElement * m_rctIsoEmRankEtaPhi1
Definition: RCTMonitor.h:88
RCTMonitor::m_rctIsoEmRank1
MonitorElement * m_rctIsoEmRank1
Definition: RCTMonitor.h:100
RCTMonitor::TEVBINS
static const unsigned int TEVBINS
Definition: RCTMonitor.h:140