CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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(const edm::ParameterSet &)
edm::ESGetToken< HcalDbService, HcalDbRecord > hcaldbToken_
static const int dEcal
static const int dTrk
edm::EDGetTokenT< CrossingFrame< PCaloHit > > EBHits_Token_
MonitorElement * mehEScalADC[3]
MonitorElement * mehDtMuonLayer[4]
static const int sdMuonRPCRgnFwdn
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
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
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcGeomToken_
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]
edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd > ecalADCtoGevToken_