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 
104 #include "TString.h"
105 
106 class PGlobalDigi;
107 
109 public:
110  typedef std::vector<float> FloatVector;
111  typedef std::vector<double> DoubleVector;
112  typedef std::vector<int> IntVector;
113  typedef std::map<uint32_t, float, std::less<uint32_t>> MapType;
114 
115  explicit GlobalDigisAnalyzer(const edm::ParameterSet &);
116  ~GlobalDigisAnalyzer() override;
117  void analyze(const edm::Event &, const edm::EventSetup &) override;
118 
119 protected:
120  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
121 
122 private:
123  // production related methods
124  void fillECal(const edm::Event &, const edm::EventSetup &);
125  // void storeECal(PGlobalDigi&);
126  void fillHCal(const edm::Event &, const edm::EventSetup &);
127  // void storeHCal(PGlobalDigi&);
128  void fillTrk(const edm::Event &, const edm::EventSetup &);
129  // void storeTrk(PGlobalDigi&);
130  void fillMuon(const edm::Event &, const edm::EventSetup &);
131  // void storeMuon(PGlobalDigi&);
132 
133  // void clear();
134 
135 private:
136  // parameter information
144 
145  // Electromagnetic info
146  // ECal info
147 
156 
160 
161  std::map<int, double, std::less<int>> ECalgainConv_;
164 
165  // HCal info
166 
172 
175 
176  // Tracker info
177  // SiStrip
178 
182 
184 
185  // SiPxl
186 
191 
193 
194  // Muon info
195  // DT
196 
201 
203 
204  // CSC
205 
210 
214 
216 
217  // RPC
220 
222 
223  // fix for consumes
241 
242  // private statistics information
243  unsigned int count;
244 
245 }; // end class declaration
246 
247 #endif
248 
249 #ifndef GlobalHitMap
250 #define GlobalHitMap
251 
252 // geometry mapping
253 static const int dTrk = 1;
254 static const int sdPxlBrl = 1;
255 static const int sdPxlFwd = 2;
256 static const int sdSiTIB = 3;
257 static const int sdSiTID = 4;
258 static const int sdSiTOB = 5;
259 static const int sdSiTEC = 6;
260 
261 static const int dMuon = 2;
262 static const int sdMuonDT = 1;
263 static const int sdMuonCSC = 2;
264 static const int sdMuonRPC = 3;
265 static const int sdMuonRPCRgnBrl = 0;
266 static const int sdMuonRPCRgnFwdp = 1;
267 static const int sdMuonRPCRgnFwdn = -1;
268 
269 static const int dEcal = 3;
270 static const int sdEcalBrl = 1;
271 static const int sdEcalFwd = 2;
272 static const int sdEcalPS = 3;
273 static const int sdEcalTT = 4;
274 static const int sdEcalLPnD = 5;
275 
276 static const int dHcal = 4;
277 static const int sdHcalEmpty = 0;
278 static const int sdHcalBrl = 1;
279 static const int sdHcalEC = 2;
280 static const int sdHcalOut = 3;
281 static const int sdHcalFwd = 4;
282 static const int sdHcalTT = 5;
283 static const int sdHcalCalib = 6;
284 static const int sdHcalCompst = 7;
285 
286 #endif // PGlobalDigisAnalyzer_h
GlobalDigisAnalyzer(const edm::ParameterSet &)
static const int dEcal
static const int dTrk
edm::EDGetTokenT< CrossingFrame< PCaloHit > > EBHits_Token_
MonitorElement * mehEScalADC[3]
MonitorElement * mehDtMuonLayer[4]
static const int sdMuonRPCRgnFwdn
static const int sdHcalOut
static const int sdMuonDT
static const int sdEcalTT
MonitorElement * mehEcaln[2]
edm::EDGetTokenT< edm::PCaloHitContainer > HCalSrc_Token_
void fillECal(const edm::Event &, const edm::EventSetup &)
static const int sdSiTID
MonitorElement * mehEScaln
MonitorElement * mehSiPixelRow[7]
MonitorElement * mehRPCRes[5]
static const int sdEcalPS
edm::EDGetTokenT< CSCStripDigiCollection > MuCSCStripSrc_Token_
static const int sdHcalCalib
static const int sdMuonRPC
MonitorElement * mehSiStripADC[19]
MonitorElement * mehDtMuonTimevLayer[4]
MonitorElement * mehSiStripn[19]
MonitorElement * mehCSCWireTime
static const int sdHcalTT
edm::EDGetTokenT< EEDigiCollection > ECalEESrc_Token_
MonitorElement * mehEcalMaxPos[2]
edm::EDGetTokenT< CrossingFrame< PCaloHit > > ESHits_Token_
edm::EDGetTokenT< edm::PSimHitContainer > RPCSimHit_Token_
MonitorElement * mehDtMuonTime[4]
static const int sdSiTIB
static const int sdPxlBrl
edm::InputTag MuCSCStripSrc_
static const int sdMuonCSC
static const int sdEcalFwd
edm::EDGetTokenT< edm::SortedCollection< HFDataFrame > > HFDigi_Token_
static const int sdHcalCompst
MonitorElement * mehHcalAEE[4]
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
static const int sdSiTOB
static const int sdEcalBrl
static const int sdMuonRPCRgnFwdp
edm::EDGetTokenT< CSCWireDigiCollection > MuCSCWireSrc_Token_
std::vector< double > DoubleVector
static const int sdMuonRPCRgnBrl
std::map< int, double, std::less< int > > ECalgainConv_
edm::EDGetTokenT< edm::SortedCollection< HODataFrame > > HODigi_Token_
void fillHCal(const edm::Event &, const edm::EventSetup &)
MonitorElement * mehRPCMuonn
MonitorElement * mehEcalSHE[2]
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > SiStripSrc_Token_
std::map< uint32_t, float, std::less< uint32_t > > MapType
static const int sdEcalLPnD
void fillMuon(const edm::Event &, const edm::EventSetup &)
static const int dHcal
MonitorElement * mehEcalAEE[2]
edm::EDGetTokenT< EBDigiCollection > ECalEBSrc_Token_
MonitorElement * mehHcalSHEvAEE[4]
MonitorElement * mehCSCStripn
edm::EDGetTokenT< ESDigiCollection > ECalESSrc_Token_
MonitorElement * mehCSCStripADC
edm::EDGetTokenT< CrossingFrame< PCaloHit > > EEHits_Token_
static const int sdHcalFwd
static const int sdHcalBrl
MonitorElement * mehSiPixelCol[7]
MonitorElement * mehHcaln[4]
edm::EDGetTokenT< edm::SortedCollection< HBHEDataFrame > > HBHEDigi_Token_
MonitorElement * mehHcalAEESHE[4]
std::vector< int > IntVector
MonitorElement * mehEcalSHEvAEESHE[2]
static const int sdSiTEC
static const int dMuon
MonitorElement * mehHcalSHE[4]
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * mehCSCWiren
edm::EDGetTokenT< RPCDigiCollection > MuRPCSrc_Token_
static const int sdPxlFwd
static const int sdHcalEmpty
MonitorElement * mehEcalMultvAEE[2]
std::vector< float > FloatVector
MonitorElement * mehSiPixeln[7]
MonitorElement * mehSiStripStrip[19]
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > SiPxlSrc_Token_
void fillTrk(const edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< DTDigiCollection > MuDTSrc_Token_
static const int sdHcalEC
MonitorElement * mehSiPixelADC[7]
Definition: Run.h:45
MonitorElement * mehDtMuonn[4]