CMS 3D CMS Logo

GlobalDigisAnalyzer.h
Go to the documentation of this file.
1 #ifndef GlobalDigisAnalyzer_h
2 #define GlobalDigisAnalyzer_h
3 
13 // framework & common header files
24 
25 // DQM services
28 
29 // ecal calorimeter info
38 
39 // hcal calorimeter info
52 
53 // silicon strip info
57 
58 // silicon pixel info
61 
62 // muon DT info
67 
68 // muon CSC Strip info
71 
72 // muon CSC Wire info
75 
76 // muon RPC info
83 
88 
89 // event info
94 
95 #include <cstdlib>
96 #include <iostream>
97 #include <map>
98 #include <memory>
99 #include <string>
100 #include <vector>
101 
103 #include "TString.h"
104 
105 class PGlobalDigi;
106 
108 public:
109  typedef std::vector<float> FloatVector;
110  typedef std::vector<double> DoubleVector;
111  typedef std::vector<int> IntVector;
112  typedef std::map<uint32_t, float, std::less<uint32_t>> MapType;
113 
114  explicit GlobalDigisAnalyzer(const edm::ParameterSet &);
115  ~GlobalDigisAnalyzer() override;
116  void analyze(const edm::Event &, const edm::EventSetup &) override;
117 
118 protected:
119  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
120 
121 private:
122  // production related methods
123  void fillECal(const edm::Event &, const edm::EventSetup &);
124  // void storeECal(PGlobalDigi&);
125  void fillHCal(const edm::Event &, const edm::EventSetup &);
126  // void storeHCal(PGlobalDigi&);
127  void fillTrk(const edm::Event &, const edm::EventSetup &);
128  // void storeTrk(PGlobalDigi&);
129  void fillMuon(const edm::Event &, const edm::EventSetup &);
130  // void storeMuon(PGlobalDigi&);
131 
132  // void clear();
133 
134 private:
135  // parameter information
143 
144  // Electromagnetic info
145  // ECal info
146 
155 
159 
160  std::map<int, double, std::less<int>> ECalgainConv_;
163 
164  // HCal info
165 
171 
174 
175  // Tracker info
176  // SiStrip
177 
181 
183 
184  // SiPxl
185 
190 
192 
193  // Muon info
194  // DT
195 
200 
202 
203  // CSC
204 
209 
213 
215 
216  // RPC
219 
221 
222  // fix for consumes
240 
241  // private statistics information
242  unsigned int count;
243 
244 }; // end class declaration
245 
246 #endif
247 
248 #ifndef GlobalHitMap
249 #define GlobalHitMap
250 
251 // geometry mapping
252 static const int dTrk = 1;
253 static const int sdPxlBrl = 1;
254 static const int sdPxlFwd = 2;
255 static const int sdSiTIB = 3;
256 static const int sdSiTID = 4;
257 static const int sdSiTOB = 5;
258 static const int sdSiTEC = 6;
259 
260 static const int dMuon = 2;
261 static const int sdMuonDT = 1;
262 static const int sdMuonCSC = 2;
263 static const int sdMuonRPC = 3;
264 static const int sdMuonRPCRgnBrl = 0;
265 static const int sdMuonRPCRgnFwdp = 1;
266 static const int sdMuonRPCRgnFwdn = -1;
267 
268 static const int dEcal = 3;
269 static const int sdEcalBrl = 1;
270 static const int sdEcalFwd = 2;
271 static const int sdEcalPS = 3;
272 static const int sdEcalTT = 4;
273 static const int sdEcalLPnD = 5;
274 
275 static const int dHcal = 4;
276 static const int sdHcalEmpty = 0;
277 static const int sdHcalBrl = 1;
278 static const int sdHcalEC = 2;
279 static const int sdHcalOut = 3;
280 static const int sdHcalFwd = 4;
281 static const int sdHcalTT = 5;
282 static const int sdHcalCalib = 6;
283 static const int sdHcalCompst = 7;
284 
285 #endif // PGlobalDigisAnalyzer_h
GlobalDigisAnalyzer
Definition: GlobalDigisAnalyzer.h:107
GlobalDigisAnalyzer::MuDTSrc_Token_
edm::EDGetTokenT< DTDigiCollection > MuDTSrc_Token_
Definition: GlobalDigisAnalyzer.h:232
sdEcalTT
static const int sdEcalTT
Definition: GlobalDigisAnalyzer.h:272
GlobalDigisAnalyzer::mehEcalSHEvAEESHE
MonitorElement * mehEcalSHEvAEESHE[2]
Definition: GlobalDigisAnalyzer.h:153
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
sdSiTID
static const int sdSiTID
Definition: GlobalDigisAnalyzer.h:256
GlobalDigisAnalyzer::mehDtMuonTimevLayer
MonitorElement * mehDtMuonTimevLayer[4]
Definition: GlobalDigisAnalyzer.h:199
HFDataFrame.h
GlobalDigisAnalyzer::mehEcalMultvAEE
MonitorElement * mehEcalMultvAEE[2]
Definition: GlobalDigisAnalyzer.h:152
Handle.h
GlobalDigisAnalyzer::DoubleVector
std::vector< double > DoubleVector
Definition: GlobalDigisAnalyzer.h:110
sdSiTEC
static const int sdSiTEC
Definition: GlobalDigisAnalyzer.h:258
HcalCalibrations.h
GlobalDigisAnalyzer::mehEScaln
MonitorElement * mehEScaln
Definition: GlobalDigisAnalyzer.h:148
sdHcalEmpty
static const int sdHcalEmpty
Definition: GlobalDigisAnalyzer.h:276
PixelSubdetector.h
GlobalDigisAnalyzer::HCalDigi_
edm::InputTag HCalDigi_
Definition: GlobalDigisAnalyzer.h:173
sdEcalPS
static const int sdEcalPS
Definition: GlobalDigisAnalyzer.h:271
MessageLogger.h
GlobalDigisAnalyzer::fillTrk
void fillTrk(const edm::Event &, const edm::EventSetup &)
Definition: GlobalDigisAnalyzer.cc:1074
GlobalDigisAnalyzer::mehSiPixelADC
MonitorElement * mehSiPixelADC[7]
Definition: GlobalDigisAnalyzer.h:187
GlobalDigisAnalyzer::mehSiPixelRow
MonitorElement * mehSiPixelRow[7]
Definition: GlobalDigisAnalyzer.h:188
GlobalDigisAnalyzer::MuCSCWireSrc_Token_
edm::EDGetTokenT< CSCWireDigiCollection > MuCSCWireSrc_Token_
Definition: GlobalDigisAnalyzer.h:234
sdHcalEC
static const int sdHcalEC
Definition: GlobalDigisAnalyzer.h:278
ESHandle.h
GlobalDigisAnalyzer::MapType
std::map< uint32_t, float, std::less< uint32_t > > MapType
Definition: GlobalDigisAnalyzer.h:112
GlobalDigisAnalyzer::ECalESSrc_
edm::InputTag ECalESSrc_
Definition: GlobalDigisAnalyzer.h:158
GlobalDigisAnalyzer::mehDtMuonn
MonitorElement * mehDtMuonn[4]
Definition: GlobalDigisAnalyzer.h:196
GlobalDigisAnalyzer::mehHcalSHE
MonitorElement * mehHcalSHE[4]
Definition: GlobalDigisAnalyzer.h:168
edm::Run
Definition: Run.h:45
DTLayerId.h
edm::EDGetTokenT< EBDigiCollection >
CSCStripDigi.h
CSCWireDigi.h
GlobalDigisAnalyzer::GlobalDigisAnalyzer
GlobalDigisAnalyzer(const edm::ParameterSet &)
Definition: GlobalDigisAnalyzer.cc:14
CrossingFrame.h
GlobalDigisAnalyzer::label
std::string label
Definition: GlobalDigisAnalyzer.h:139
PSimHitContainer.h
GlobalDigisAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: GlobalDigisAnalyzer.cc:123
GlobalDigisAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: GlobalDigisAnalyzer.cc:421
EBDetId.h
EEDetId.h
GlobalDigisAnalyzer::mehCSCStripADC
MonitorElement * mehCSCStripADC
Definition: GlobalDigisAnalyzer.h:206
GlobalDigisAnalyzer::frequency
int frequency
Definition: GlobalDigisAnalyzer.h:138
GlobalDigisAnalyzer::ECalEESrc_
edm::InputTag ECalEESrc_
Definition: GlobalDigisAnalyzer.h:157
GlobalDigisAnalyzer::EBHits_Token_
edm::EDGetTokenT< CrossingFrame< PCaloHit > > EBHits_Token_
Definition: GlobalDigisAnalyzer.h:236
HODataFrame.h
DQMStore.h
GlobalDigisAnalyzer::HCalSrc_Token_
edm::EDGetTokenT< edm::PCaloHitContainer > HCalSrc_Token_
Definition: GlobalDigisAnalyzer.h:226
GlobalDigisAnalyzer::fillECal
void fillECal(const edm::Event &, const edm::EventSetup &)
Definition: GlobalDigisAnalyzer.cc:502
EDAnalyzer.h
GlobalDigisAnalyzer::mehSiStripStrip
MonitorElement * mehSiStripStrip[19]
Definition: GlobalDigisAnalyzer.h:180
PixelDigi.h
ESDetId.h
GlobalDigisAnalyzer::HODigi_Token_
edm::EDGetTokenT< edm::SortedCollection< HODataFrame > > HODigi_Token_
Definition: GlobalDigisAnalyzer.h:228
sdHcalOut
static const int sdHcalOut
Definition: GlobalDigisAnalyzer.h:279
GlobalDigisAnalyzer::mehSiPixelCol
MonitorElement * mehSiPixelCol[7]
Definition: GlobalDigisAnalyzer.h:189
GlobalDigisAnalyzer::getAllProvenances
bool getAllProvenances
Definition: GlobalDigisAnalyzer.h:140
GlobalDigisAnalyzer::mehHcalAEESHE
MonitorElement * mehHcalAEESHE[4]
Definition: GlobalDigisAnalyzer.h:169
RectangularStripTopology.h
HcalCoderDb.h
GlobalDigisAnalyzer::IntVector
std::vector< int > IntVector
Definition: GlobalDigisAnalyzer.h:111
GlobalDigisAnalyzer::ECalEESrc_Token_
edm::EDGetTokenT< EEDigiCollection > ECalEESrc_Token_
Definition: GlobalDigisAnalyzer.h:224
GlobalDigisAnalyzer::mehEcaln
MonitorElement * mehEcaln[2]
Definition: GlobalDigisAnalyzer.h:147
EcalTrivialConditionRetriever.h
GlobalDigisAnalyzer::SiStripSrc_
edm::InputTag SiStripSrc_
Definition: GlobalDigisAnalyzer.h:182
GlobalDigisAnalyzer::mehEScalADC
MonitorElement * mehEScalADC[3]
Definition: GlobalDigisAnalyzer.h:154
ESDataFrame.h
GlobalDigisAnalyzer::hitsProducer
std::string hitsProducer
Definition: GlobalDigisAnalyzer.h:142
GlobalDigisAnalyzer::RPCSimHit_Token_
edm::EDGetTokenT< edm::PSimHitContainer > RPCSimHit_Token_
Definition: GlobalDigisAnalyzer.h:239
GlobalDigisAnalyzer::mehEcalAEE
MonitorElement * mehEcalAEE[2]
Definition: GlobalDigisAnalyzer.h:149
GlobalDigisAnalyzer::MuRPCSrc_Token_
edm::EDGetTokenT< RPCDigiCollection > MuRPCSrc_Token_
Definition: GlobalDigisAnalyzer.h:235
GlobalDigisAnalyzer::printProvenanceInfo
bool printProvenanceInfo
Definition: GlobalDigisAnalyzer.h:141
MakerMacros.h
GlobalDigisAnalyzer::mehCSCStripn
MonitorElement * mehCSCStripn
Definition: GlobalDigisAnalyzer.h:205
sdMuonRPCRgnFwdn
static const int sdMuonRPCRgnFwdn
Definition: GlobalDigisAnalyzer.h:266
sdHcalCompst
static const int sdHcalCompst
Definition: GlobalDigisAnalyzer.h:283
GlobalDigisAnalyzer::mehRPCRes
MonitorElement * mehRPCRes[5]
Definition: GlobalDigisAnalyzer.h:218
GlobalDigisAnalyzer::mehCSCWiren
MonitorElement * mehCSCWiren
Definition: GlobalDigisAnalyzer.h:207
GlobalDigisAnalyzer::MuCSCStripSrc_Token_
edm::EDGetTokenT< CSCStripDigiCollection > MuCSCStripSrc_Token_
Definition: GlobalDigisAnalyzer.h:233
MixCollection.h
GlobalDigisAnalyzer::ECalendcapADCtoGeV_
double ECalendcapADCtoGeV_
Definition: GlobalDigisAnalyzer.h:162
sdHcalCalib
static const int sdHcalCalib
Definition: GlobalDigisAnalyzer.h:282
Service.h
GlobalDigisAnalyzer::mehSiStripADC
MonitorElement * mehSiStripADC[19]
Definition: GlobalDigisAnalyzer.h:179
HcalDigiCollections.h
SiStripDigi.h
GlobalDigisAnalyzer::mehDtMuonLayer
MonitorElement * mehDtMuonLayer[4]
Definition: GlobalDigisAnalyzer.h:197
GlobalDigisAnalyzer::HFDigi_Token_
edm::EDGetTokenT< edm::SortedCollection< HFDataFrame > > HFDigi_Token_
Definition: GlobalDigisAnalyzer.h:229
Provenance.h
EcalDigiCollections.h
sdMuonRPCRgnBrl
static const int sdMuonRPCRgnBrl
Definition: GlobalDigisAnalyzer.h:264
GlobalDigisAnalyzer::mehHcalAEE
MonitorElement * mehHcalAEE[4]
Definition: GlobalDigisAnalyzer.h:167
GlobalDigisAnalyzer::~GlobalDigisAnalyzer
~GlobalDigisAnalyzer() override
Definition: GlobalDigisAnalyzer.cc:121
HcalDbRecord.h
RPCDigi.h
GlobalDigisAnalyzer::mehRPCMuonn
MonitorElement * mehRPCMuonn
Definition: GlobalDigisAnalyzer.h:217
GlobalDigisAnalyzer::ECalEBSrc_
edm::InputTag ECalEBSrc_
Definition: GlobalDigisAnalyzer.h:156
DQMEDAnalyzer.h
sdEcalLPnD
static const int sdEcalLPnD
Definition: GlobalDigisAnalyzer.h:273
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GlobalDigisAnalyzer::verbosity
int verbosity
Definition: GlobalDigisAnalyzer.h:137
RPCDetId.h
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
GlobalDigisAnalyzer::ECalEBSrc_Token_
edm::EDGetTokenT< EBDigiCollection > ECalEBSrc_Token_
Definition: GlobalDigisAnalyzer.h:223
sdMuonRPC
static const int sdMuonRPC
Definition: GlobalDigisAnalyzer.h:263
GlobalDigisAnalyzer::mehSiStripn
MonitorElement * mehSiStripn[19]
Definition: GlobalDigisAnalyzer.h:178
GlobalDigisAnalyzer::mehDtMuonTime
MonitorElement * mehDtMuonTime[4]
Definition: GlobalDigisAnalyzer.h:198
edm::ParameterSet
Definition: ParameterSet.h:47
GlobalDigisAnalyzer::mehSiPixeln
MonitorElement * mehSiPixeln[7]
Definition: GlobalDigisAnalyzer.h:186
Event.h
sdHcalFwd
static const int sdHcalFwd
Definition: GlobalDigisAnalyzer.h:280
GlobalDigisAnalyzer::SiPxlSrc_
edm::InputTag SiPxlSrc_
Definition: GlobalDigisAnalyzer.h:191
GlobalDigisAnalyzer::HCalSrc_
edm::InputTag HCalSrc_
Definition: GlobalDigisAnalyzer.h:172
HcalQIESample.h
HcalDetId.h
GlobalDigisAnalyzer::MuCSCWireSrc_
edm::InputTag MuCSCWireSrc_
Definition: GlobalDigisAnalyzer.h:214
PGlobalDigi
Definition: PValidationFormats.h:208
PCaloHit.h
sdPxlBrl
static const int sdPxlBrl
Definition: GlobalDigisAnalyzer.h:253
sdHcalTT
static const int sdHcalTT
Definition: GlobalDigisAnalyzer.h:281
sdPxlFwd
static const int sdPxlFwd
Definition: GlobalDigisAnalyzer.h:254
sdMuonCSC
static const int sdMuonCSC
Definition: GlobalDigisAnalyzer.h:262
GlobalDigisAnalyzer::HBHEDigi_Token_
edm::EDGetTokenT< edm::SortedCollection< HBHEDataFrame > > HBHEDigi_Token_
Definition: GlobalDigisAnalyzer.h:227
sdEcalFwd
static const int sdEcalFwd
Definition: GlobalDigisAnalyzer.h:270
GlobalDigisAnalyzer::ECalESSrc_Token_
edm::EDGetTokenT< ESDigiCollection > ECalESSrc_Token_
Definition: GlobalDigisAnalyzer.h:225
GlobalDigisAnalyzer::mehCSCWireTime
MonitorElement * mehCSCWireTime
Definition: GlobalDigisAnalyzer.h:208
CSCStripDigiCollection.h
GlobalDigisAnalyzer::count
unsigned int count
Definition: GlobalDigisAnalyzer.h:242
EBDataFrame.h
edm::EventSetup
Definition: EventSetup.h:57
HcalSubdetector.h
DetSetVector.h
GlobalDigisAnalyzer::mehEcalSHE
MonitorElement * mehEcalSHE[2]
Definition: GlobalDigisAnalyzer.h:150
HcalElectronicsId.h
sdSiTIB
static const int sdSiTIB
Definition: GlobalDigisAnalyzer.h:255
sdMuonRPCRgnFwdp
static const int sdMuonRPCRgnFwdp
Definition: GlobalDigisAnalyzer.h:265
GlobalDigisAnalyzer::mehHcaln
MonitorElement * mehHcaln[4]
Definition: GlobalDigisAnalyzer.h:166
GlobalDigisAnalyzer::MuCSCStripSrc_
edm::InputTag MuCSCStripSrc_
Definition: GlobalDigisAnalyzer.h:210
EEDataFrame.h
GlobalDigisAnalyzer::fName
std::string fName
Definition: GlobalDigisAnalyzer.h:136
sdEcalBrl
static const int sdEcalBrl
Definition: GlobalDigisAnalyzer.h:269
GlobalDigisAnalyzer::FloatVector
std::vector< float > FloatVector
Definition: GlobalDigisAnalyzer.h:109
TrapezoidalStripTopology.h
GlobalDigisAnalyzer::ECalbarrelADCtoGeV_
double ECalbarrelADCtoGeV_
Definition: GlobalDigisAnalyzer.h:161
GlobalDigisAnalyzer::EEHits_Token_
edm::EDGetTokenT< CrossingFrame< PCaloHit > > EEHits_Token_
Definition: GlobalDigisAnalyzer.h:237
DTWireId.h
GlobalDigisAnalyzer::theCSCStripPedestalCount
int theCSCStripPedestalCount
Definition: GlobalDigisAnalyzer.h:212
Frameworkfwd.h
LocalPoint.h
sdSiTOB
static const int sdSiTOB
Definition: GlobalDigisAnalyzer.h:257
EventSetup.h
RPCDigiCollection.h
PCaloHitContainer.h
GlobalDigisAnalyzer::fillHCal
void fillHCal(const edm::Event &, const edm::EventSetup &)
Definition: GlobalDigisAnalyzer.cc:819
dqm::implementation::IBooker
Definition: DQMStore.h:43
HcalDbService.h
GlobalDigisAnalyzer::ESHits_Token_
edm::EDGetTokenT< CrossingFrame< PCaloHit > > ESHits_Token_
Definition: GlobalDigisAnalyzer.h:238
CSCWireDigiCollection.h
GlobalDigisAnalyzer::MuDTSrc_
edm::InputTag MuDTSrc_
Definition: GlobalDigisAnalyzer.h:201
GlobalDigisAnalyzer::theCSCStripPedestalSum
float theCSCStripPedestalSum
Definition: GlobalDigisAnalyzer.h:211
DTDigi.h
DTDigiCollection.h
dEcal
static const int dEcal
Definition: GlobalDigisAnalyzer.h:268
ParameterSet.h
dHcal
static const int dHcal
Definition: GlobalDigisAnalyzer.h:275
GlobalDigisAnalyzer::fillMuon
void fillMuon(const edm::Event &, const edm::EventSetup &)
Definition: GlobalDigisAnalyzer.cc:1323
GlobalDigisAnalyzer::mehEcalMaxPos
MonitorElement * mehEcalMaxPos[2]
Definition: GlobalDigisAnalyzer.h:151
GlobalDigisAnalyzer::ECalgainConv_
std::map< int, double, std::less< int > > ECalgainConv_
Definition: GlobalDigisAnalyzer.h:160
MuonGeometryRecord.h
dTrk
static const int dTrk
Definition: GlobalDigisAnalyzer.h:252
sdHcalBrl
static const int sdHcalBrl
Definition: GlobalDigisAnalyzer.h:277
edm::Event
Definition: Event.h:73
GlobalDigisAnalyzer::mehHcalSHEvAEE
MonitorElement * mehHcalSHEvAEE[4]
Definition: GlobalDigisAnalyzer.h:170
dMuon
static const int dMuon
Definition: GlobalDigisAnalyzer.h:260
GlobalPoint.h
StripSubdetector.h
RPCGeometry.h
GlobalDigisAnalyzer::SiPxlSrc_Token_
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > SiPxlSrc_Token_
Definition: GlobalDigisAnalyzer.h:231
GlobalDigisAnalyzer::SiStripSrc_Token_
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > SiStripSrc_Token_
Definition: GlobalDigisAnalyzer.h:230
edm::InputTag
Definition: InputTag.h:15
HBHEDataFrame.h
GlobalDigisAnalyzer::MuRPCSrc_
edm::InputTag MuRPCSrc_
Definition: GlobalDigisAnalyzer.h:220
sdMuonDT
static const int sdMuonDT
Definition: GlobalDigisAnalyzer.h:261