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
23 
24 // DQM services
27 
28 // ecal calorimeter info
37 
38 // hcal calorimeter info
51 
52 // silicon strip info
56 
57 // silicon pixel info
60 
61 // muon DT info
66 
67 // muon CSC Strip info
70 
71 // muon CSC Wire info
74 
75 // muon RPC info
82 
87 
88 // event info
93 
94 #include <cstdlib>
95 #include <map>
96 #include <memory>
97 #include <string>
98 #include <vector>
99 
101 #include "TString.h"
102 
103 class PGlobalDigi;
104 class TrackerTopology;
105 class TrackerTopologyRcd;
107 public:
108  typedef std::vector<float> FloatVector;
109  typedef std::vector<double> DoubleVector;
110  typedef std::vector<int> IntVector;
111  typedef std::map<uint32_t, float, std::less<uint32_t>> MapType;
112 
113  explicit GlobalDigisAnalyzer(const edm::ParameterSet &);
114  ~GlobalDigisAnalyzer() override;
115  void analyze(const edm::Event &, const edm::EventSetup &) override;
116 
117 protected:
118  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
119 
120 private:
121  // production related methods
122  void fillECal(const edm::Event &, const edm::EventSetup &);
123  // void storeECal(PGlobalDigi&);
124  void fillHCal(const edm::Event &, const edm::EventSetup &);
125  // void storeHCal(PGlobalDigi&);
126  void fillTrk(const edm::Event &, const edm::EventSetup &);
127  // void storeTrk(PGlobalDigi&);
128  void fillMuon(const edm::Event &, const edm::EventSetup &);
129  // void storeMuon(PGlobalDigi&);
130 
131  // void clear();
132 
133 private:
134  // parameter information
142 
143  // Electromagnetic info
144  // ECal info
145 
154 
162 
163  std::map<int, double, std::less<int>> ECalgainConv_;
166 
167  // HCal info
168 
174 
177 
178  // Tracker info
179  // SiStrip
180 
184 
186 
187  // SiPxl
188 
193 
195 
196  // Muon info
197  // DT
198 
203 
205 
206  // CSC
207 
212 
216 
218 
219  // RPC
222 
224 
225  // fix for consumes
243 
244  // private statistics information
245  unsigned int count;
246 
247 }; // end class declaration
248 
249 #endif
250 
251 #ifndef GlobalHitMap
252 #define GlobalHitMap
253 
254 // geometry mapping
255 static const int dTrk = 1;
256 static const int sdPxlBrl = 1;
257 static const int sdPxlFwd = 2;
258 static const int sdSiTIB = 3;
259 static const int sdSiTID = 4;
260 static const int sdSiTOB = 5;
261 static const int sdSiTEC = 6;
262 
263 static const int dMuon = 2;
264 static const int sdMuonDT = 1;
265 static const int sdMuonCSC = 2;
266 static const int sdMuonRPC = 3;
267 static const int sdMuonRPCRgnBrl = 0;
268 static const int sdMuonRPCRgnFwdp = 1;
269 static const int sdMuonRPCRgnFwdn = -1;
270 
271 static const int dEcal = 3;
272 static const int sdEcalBrl = 1;
273 static const int sdEcalFwd = 2;
274 static const int sdEcalPS = 3;
275 static const int sdEcalTT = 4;
276 static const int sdEcalLPnD = 5;
277 
278 static const int dHcal = 4;
279 static const int sdHcalEmpty = 0;
280 static const int sdHcalBrl = 1;
281 static const int sdHcalEC = 2;
282 static const int sdHcalOut = 3;
283 static const int sdHcalFwd = 4;
284 static const int sdHcalTT = 5;
285 static const int sdHcalCalib = 6;
286 static const int sdHcalCompst = 7;
287 
288 #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_