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 <map>
97 #include <memory>
98 #include <string>
99 #include <vector>
100 
102 #include "TString.h"
103 
104 class PGlobalDigi;
105 class TrackerTopology;
106 class TrackerTopologyRcd;
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 
163 
164  std::map<int, double, std::less<int>> ECalgainConv_;
167 
168  // HCal info
169 
175 
178 
179  // Tracker info
180  // SiStrip
181 
185 
187 
188  // SiPxl
189 
194 
196 
197  // Muon info
198  // DT
199 
204 
206 
207  // CSC
208 
213 
217 
219 
220  // RPC
223 
225 
226  // fix for consumes
244 
245  // private statistics information
246  unsigned int count;
247 
248 }; // end class declaration
249 
250 #endif
251 
252 #ifndef GlobalHitMap
253 #define GlobalHitMap
254 
255 // geometry mapping
256 static const int dTrk = 1;
257 static const int sdPxlBrl = 1;
258 static const int sdPxlFwd = 2;
259 static const int sdSiTIB = 3;
260 static const int sdSiTID = 4;
261 static const int sdSiTOB = 5;
262 static const int sdSiTEC = 6;
263 
264 static const int dMuon = 2;
265 static const int sdMuonDT = 1;
266 static const int sdMuonCSC = 2;
267 static const int sdMuonRPC = 3;
268 static const int sdMuonRPCRgnBrl = 0;
269 static const int sdMuonRPCRgnFwdp = 1;
270 static const int sdMuonRPCRgnFwdn = -1;
271 
272 static const int dEcal = 3;
273 static const int sdEcalBrl = 1;
274 static const int sdEcalFwd = 2;
275 static const int sdEcalPS = 3;
276 static const int sdEcalTT = 4;
277 static const int sdEcalLPnD = 5;
278 
279 static const int dHcal = 4;
280 static const int sdHcalEmpty = 0;
281 static const int sdHcalBrl = 1;
282 static const int sdHcalEC = 2;
283 static const int sdHcalOut = 3;
284 static const int sdHcalFwd = 4;
285 static const int sdHcalTT = 5;
286 static const int sdHcalCalib = 6;
287 static const int sdHcalCompst = 7;
288 
289 #endif // PGlobalDigisAnalyzer_h
GlobalDigisAnalyzer
Definition: GlobalDigisAnalyzer.h:107
GlobalDigisAnalyzer::MuDTSrc_Token_
edm::EDGetTokenT< DTDigiCollection > MuDTSrc_Token_
Definition: GlobalDigisAnalyzer.h:236
sdEcalTT
static const int sdEcalTT
Definition: GlobalDigisAnalyzer.h:276
GlobalDigisAnalyzer::mehEcalSHEvAEESHE
MonitorElement * mehEcalSHEvAEESHE[2]
Definition: GlobalDigisAnalyzer.h:153
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
sdSiTID
static const int sdSiTID
Definition: GlobalDigisAnalyzer.h:260
GlobalDigisAnalyzer::mehDtMuonTimevLayer
MonitorElement * mehDtMuonTimevLayer[4]
Definition: GlobalDigisAnalyzer.h:203
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:262
HcalCalibrations.h
GlobalDigisAnalyzer::mehEScaln
MonitorElement * mehEScaln
Definition: GlobalDigisAnalyzer.h:148
sdHcalEmpty
static const int sdHcalEmpty
Definition: GlobalDigisAnalyzer.h:280
PixelSubdetector.h
GlobalDigisAnalyzer::HCalDigi_
edm::InputTag HCalDigi_
Definition: GlobalDigisAnalyzer.h:177
sdEcalPS
static const int sdEcalPS
Definition: GlobalDigisAnalyzer.h:275
MessageLogger.h
GlobalDigisAnalyzer::fillTrk
void fillTrk(const edm::Event &, const edm::EventSetup &)
Definition: GlobalDigisAnalyzer.cc:1077
GlobalDigisAnalyzer::mehSiPixelADC
MonitorElement * mehSiPixelADC[7]
Definition: GlobalDigisAnalyzer.h:191
GlobalDigisAnalyzer::mehSiPixelRow
MonitorElement * mehSiPixelRow[7]
Definition: GlobalDigisAnalyzer.h:192
GlobalDigisAnalyzer::MuCSCWireSrc_Token_
edm::EDGetTokenT< CSCWireDigiCollection > MuCSCWireSrc_Token_
Definition: GlobalDigisAnalyzer.h:238
sdHcalEC
static const int sdHcalEC
Definition: GlobalDigisAnalyzer.h:282
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:200
GlobalDigisAnalyzer::mehHcalSHE
MonitorElement * mehHcalSHE[4]
Definition: GlobalDigisAnalyzer.h:172
edm::Run
Definition: Run.h:45
DTLayerId.h
edm::EDGetTokenT< EBDigiCollection >
CSCStripDigi.h
CSCWireDigi.h
TrackerTopology
Definition: TrackerTopology.h:16
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:129
GlobalDigisAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: GlobalDigisAnalyzer.cc:427
EBDetId.h
EEDetId.h
GlobalDigisAnalyzer::mehCSCStripADC
MonitorElement * mehCSCStripADC
Definition: GlobalDigisAnalyzer.h:210
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:240
HODataFrame.h
DQMStore.h
GlobalDigisAnalyzer::HCalSrc_Token_
edm::EDGetTokenT< edm::PCaloHitContainer > HCalSrc_Token_
Definition: GlobalDigisAnalyzer.h:230
GlobalDigisAnalyzer::rpcGeomToken_
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcGeomToken_
Definition: GlobalDigisAnalyzer.h:160
GlobalDigisAnalyzer::fillECal
void fillECal(const edm::Event &, const edm::EventSetup &)
Definition: GlobalDigisAnalyzer.cc:506
EDAnalyzer.h
GlobalDigisAnalyzer::mehSiStripStrip
MonitorElement * mehSiStripStrip[19]
Definition: GlobalDigisAnalyzer.h:184
PixelDigi.h
ESDetId.h
GlobalDigisAnalyzer::HODigi_Token_
edm::EDGetTokenT< edm::SortedCollection< HODataFrame > > HODigi_Token_
Definition: GlobalDigisAnalyzer.h:232
GlobalDigisAnalyzer::tTopoToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
Definition: GlobalDigisAnalyzer.h:161
sdHcalOut
static const int sdHcalOut
Definition: GlobalDigisAnalyzer.h:283
GlobalDigisAnalyzer::mehSiPixelCol
MonitorElement * mehSiPixelCol[7]
Definition: GlobalDigisAnalyzer.h:193
GlobalDigisAnalyzer::getAllProvenances
bool getAllProvenances
Definition: GlobalDigisAnalyzer.h:140
GlobalDigisAnalyzer::mehHcalAEESHE
MonitorElement * mehHcalAEESHE[4]
Definition: GlobalDigisAnalyzer.h:173
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:228
GlobalDigisAnalyzer::mehEcaln
MonitorElement * mehEcaln[2]
Definition: GlobalDigisAnalyzer.h:147
EcalTrivialConditionRetriever.h
GlobalDigisAnalyzer::SiStripSrc_
edm::InputTag SiStripSrc_
Definition: GlobalDigisAnalyzer.h:186
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:243
GlobalDigisAnalyzer::mehEcalAEE
MonitorElement * mehEcalAEE[2]
Definition: GlobalDigisAnalyzer.h:149
GlobalDigisAnalyzer::MuRPCSrc_Token_
edm::EDGetTokenT< RPCDigiCollection > MuRPCSrc_Token_
Definition: GlobalDigisAnalyzer.h:239
GlobalDigisAnalyzer::printProvenanceInfo
bool printProvenanceInfo
Definition: GlobalDigisAnalyzer.h:141
MakerMacros.h
GlobalDigisAnalyzer::mehCSCStripn
MonitorElement * mehCSCStripn
Definition: GlobalDigisAnalyzer.h:209
sdMuonRPCRgnFwdn
static const int sdMuonRPCRgnFwdn
Definition: GlobalDigisAnalyzer.h:270
sdHcalCompst
static const int sdHcalCompst
Definition: GlobalDigisAnalyzer.h:287
GlobalDigisAnalyzer::hcaldbToken_
edm::ESGetToken< HcalDbService, HcalDbRecord > hcaldbToken_
Definition: GlobalDigisAnalyzer.h:162
GlobalDigisAnalyzer::mehRPCRes
MonitorElement * mehRPCRes[5]
Definition: GlobalDigisAnalyzer.h:222
GlobalDigisAnalyzer::mehCSCWiren
MonitorElement * mehCSCWiren
Definition: GlobalDigisAnalyzer.h:211
GlobalDigisAnalyzer::MuCSCStripSrc_Token_
edm::EDGetTokenT< CSCStripDigiCollection > MuCSCStripSrc_Token_
Definition: GlobalDigisAnalyzer.h:237
MixCollection.h
GlobalDigisAnalyzer::ECalendcapADCtoGeV_
double ECalendcapADCtoGeV_
Definition: GlobalDigisAnalyzer.h:166
sdHcalCalib
static const int sdHcalCalib
Definition: GlobalDigisAnalyzer.h:286
Service.h
GlobalDigisAnalyzer::mehSiStripADC
MonitorElement * mehSiStripADC[19]
Definition: GlobalDigisAnalyzer.h:183
HcalDigiCollections.h
SiStripDigi.h
GlobalDigisAnalyzer::mehDtMuonLayer
MonitorElement * mehDtMuonLayer[4]
Definition: GlobalDigisAnalyzer.h:201
GlobalDigisAnalyzer::HFDigi_Token_
edm::EDGetTokenT< edm::SortedCollection< HFDataFrame > > HFDigi_Token_
Definition: GlobalDigisAnalyzer.h:233
Provenance.h
EcalDigiCollections.h
sdMuonRPCRgnBrl
static const int sdMuonRPCRgnBrl
Definition: GlobalDigisAnalyzer.h:268
GlobalDigisAnalyzer::mehHcalAEE
MonitorElement * mehHcalAEE[4]
Definition: GlobalDigisAnalyzer.h:171
GlobalDigisAnalyzer::~GlobalDigisAnalyzer
~GlobalDigisAnalyzer() override
Definition: GlobalDigisAnalyzer.cc:127
HcalDbRecord.h
RPCDigi.h
GlobalDigisAnalyzer::mehRPCMuonn
MonitorElement * mehRPCMuonn
Definition: GlobalDigisAnalyzer.h:221
GlobalDigisAnalyzer::ECalEBSrc_
edm::InputTag ECalEBSrc_
Definition: GlobalDigisAnalyzer.h:156
DQMEDAnalyzer.h
sdEcalLPnD
static const int sdEcalLPnD
Definition: GlobalDigisAnalyzer.h:277
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:227
sdMuonRPC
static const int sdMuonRPC
Definition: GlobalDigisAnalyzer.h:267
GlobalDigisAnalyzer::mehSiStripn
MonitorElement * mehSiStripn[19]
Definition: GlobalDigisAnalyzer.h:182
GlobalDigisAnalyzer::mehDtMuonTime
MonitorElement * mehDtMuonTime[4]
Definition: GlobalDigisAnalyzer.h:202
edm::ParameterSet
Definition: ParameterSet.h:47
GlobalDigisAnalyzer::mehSiPixeln
MonitorElement * mehSiPixeln[7]
Definition: GlobalDigisAnalyzer.h:190
Event.h
sdHcalFwd
static const int sdHcalFwd
Definition: GlobalDigisAnalyzer.h:284
GlobalDigisAnalyzer::SiPxlSrc_
edm::InputTag SiPxlSrc_
Definition: GlobalDigisAnalyzer.h:195
GlobalDigisAnalyzer::HCalSrc_
edm::InputTag HCalSrc_
Definition: GlobalDigisAnalyzer.h:176
HcalQIESample.h
HcalDetId.h
GlobalDigisAnalyzer::MuCSCWireSrc_
edm::InputTag MuCSCWireSrc_
Definition: GlobalDigisAnalyzer.h:218
PGlobalDigi
Definition: PValidationFormats.h:208
PCaloHit.h
sdPxlBrl
static const int sdPxlBrl
Definition: GlobalDigisAnalyzer.h:257
sdHcalTT
static const int sdHcalTT
Definition: GlobalDigisAnalyzer.h:285
sdPxlFwd
static const int sdPxlFwd
Definition: GlobalDigisAnalyzer.h:258
sdMuonCSC
static const int sdMuonCSC
Definition: GlobalDigisAnalyzer.h:266
GlobalDigisAnalyzer::HBHEDigi_Token_
edm::EDGetTokenT< edm::SortedCollection< HBHEDataFrame > > HBHEDigi_Token_
Definition: GlobalDigisAnalyzer.h:231
sdEcalFwd
static const int sdEcalFwd
Definition: GlobalDigisAnalyzer.h:274
GlobalDigisAnalyzer::ECalESSrc_Token_
edm::EDGetTokenT< ESDigiCollection > ECalESSrc_Token_
Definition: GlobalDigisAnalyzer.h:229
GlobalDigisAnalyzer::mehCSCWireTime
MonitorElement * mehCSCWireTime
Definition: GlobalDigisAnalyzer.h:212
CSCStripDigiCollection.h
GlobalDigisAnalyzer::count
unsigned int count
Definition: GlobalDigisAnalyzer.h:246
EBDataFrame.h
edm::EventSetup
Definition: EventSetup.h:58
HcalSubdetector.h
DetSetVector.h
GlobalDigisAnalyzer::ecalADCtoGevToken_
edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd > ecalADCtoGevToken_
Definition: GlobalDigisAnalyzer.h:159
GlobalDigisAnalyzer::mehEcalSHE
MonitorElement * mehEcalSHE[2]
Definition: GlobalDigisAnalyzer.h:150
HcalElectronicsId.h
edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
sdSiTIB
static const int sdSiTIB
Definition: GlobalDigisAnalyzer.h:259
sdMuonRPCRgnFwdp
static const int sdMuonRPCRgnFwdp
Definition: GlobalDigisAnalyzer.h:269
GlobalDigisAnalyzer::mehHcaln
MonitorElement * mehHcaln[4]
Definition: GlobalDigisAnalyzer.h:170
GlobalDigisAnalyzer::MuCSCStripSrc_
edm::InputTag MuCSCStripSrc_
Definition: GlobalDigisAnalyzer.h:214
EEDataFrame.h
GlobalDigisAnalyzer::fName
std::string fName
Definition: GlobalDigisAnalyzer.h:136
sdEcalBrl
static const int sdEcalBrl
Definition: GlobalDigisAnalyzer.h:273
GlobalDigisAnalyzer::FloatVector
std::vector< float > FloatVector
Definition: GlobalDigisAnalyzer.h:109
TrapezoidalStripTopology.h
GlobalDigisAnalyzer::ECalbarrelADCtoGeV_
double ECalbarrelADCtoGeV_
Definition: GlobalDigisAnalyzer.h:165
GlobalDigisAnalyzer::EEHits_Token_
edm::EDGetTokenT< CrossingFrame< PCaloHit > > EEHits_Token_
Definition: GlobalDigisAnalyzer.h:241
DTWireId.h
GlobalDigisAnalyzer::theCSCStripPedestalCount
int theCSCStripPedestalCount
Definition: GlobalDigisAnalyzer.h:216
Frameworkfwd.h
LocalPoint.h
sdSiTOB
static const int sdSiTOB
Definition: GlobalDigisAnalyzer.h:261
EventSetup.h
RPCDigiCollection.h
PCaloHitContainer.h
GlobalDigisAnalyzer::fillHCal
void fillHCal(const edm::Event &, const edm::EventSetup &)
Definition: GlobalDigisAnalyzer.cc:823
dqm::implementation::IBooker
Definition: DQMStore.h:43
HcalDbService.h
GlobalDigisAnalyzer::ESHits_Token_
edm::EDGetTokenT< CrossingFrame< PCaloHit > > ESHits_Token_
Definition: GlobalDigisAnalyzer.h:242
CSCWireDigiCollection.h
GlobalDigisAnalyzer::MuDTSrc_
edm::InputTag MuDTSrc_
Definition: GlobalDigisAnalyzer.h:205
GlobalDigisAnalyzer::theCSCStripPedestalSum
float theCSCStripPedestalSum
Definition: GlobalDigisAnalyzer.h:215
DTDigi.h
DTDigiCollection.h
TrackerTopologyRcd
Definition: TrackerTopologyRcd.h:10
dEcal
static const int dEcal
Definition: GlobalDigisAnalyzer.h:272
ParameterSet.h
dHcal
static const int dHcal
Definition: GlobalDigisAnalyzer.h:279
GlobalDigisAnalyzer::fillMuon
void fillMuon(const edm::Event &, const edm::EventSetup &)
Definition: GlobalDigisAnalyzer.cc:1322
GlobalDigisAnalyzer::mehEcalMaxPos
MonitorElement * mehEcalMaxPos[2]
Definition: GlobalDigisAnalyzer.h:151
GlobalDigisAnalyzer::ECalgainConv_
std::map< int, double, std::less< int > > ECalgainConv_
Definition: GlobalDigisAnalyzer.h:164
MuonGeometryRecord.h
dTrk
static const int dTrk
Definition: GlobalDigisAnalyzer.h:256
sdHcalBrl
static const int sdHcalBrl
Definition: GlobalDigisAnalyzer.h:281
edm::Event
Definition: Event.h:73
GlobalDigisAnalyzer::mehHcalSHEvAEE
MonitorElement * mehHcalSHEvAEE[4]
Definition: GlobalDigisAnalyzer.h:174
dMuon
static const int dMuon
Definition: GlobalDigisAnalyzer.h:264
GlobalPoint.h
StripSubdetector.h
RPCGeometry.h
GlobalDigisAnalyzer::SiPxlSrc_Token_
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > SiPxlSrc_Token_
Definition: GlobalDigisAnalyzer.h:235
GlobalDigisAnalyzer::SiStripSrc_Token_
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > SiStripSrc_Token_
Definition: GlobalDigisAnalyzer.h:234
edm::InputTag
Definition: InputTag.h:15
HBHEDataFrame.h
GlobalDigisAnalyzer::MuRPCSrc_
edm::InputTag MuRPCSrc_
Definition: GlobalDigisAnalyzer.h:224
sdMuonDT
static const int sdMuonDT
Definition: GlobalDigisAnalyzer.h:265