CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 <iostream>
96 #include <stdlib.h>
97 #include <string>
98 #include <memory>
99 #include <vector>
100 #include <map>
101 
102 #include "TString.h"
105 
106 class PGlobalDigi;
107 
109 {
110 
111  public:
112  typedef std::vector<float> FloatVector;
113  typedef std::vector<double> DoubleVector;
114  typedef std::vector<int> IntVector;
115  typedef std::map<uint32_t,float,std::less<uint32_t> > MapType;
116 
117  explicit GlobalDigisAnalyzer(const edm::ParameterSet&);
118  virtual ~GlobalDigisAnalyzer();
119  virtual void analyze(const edm::Event&, const edm::EventSetup&);
120 
121  protected:
122  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
123 
124  private:
125 
126  // production related methods
127  void fillECal(const edm::Event&, const edm::EventSetup&);
128  //void storeECal(PGlobalDigi&);
129  void fillHCal(const edm::Event&, const edm::EventSetup&);
130  //void storeHCal(PGlobalDigi&);
131  void fillTrk(const edm::Event&, const edm::EventSetup&);
132  //void storeTrk(PGlobalDigi&);
133  void fillMuon(const edm::Event&, const edm::EventSetup&);
134  //void storeMuon(PGlobalDigi&);
135 
136  //void clear();
137 
138  private:
139 
140  // parameter information
148 
149  // Electromagnetic info
150  // ECal info
151 
160 
164 
165  std::map<int, double, std::less<int> > ECalgainConv_;
168 
169  // HCal info
170 
176 
179 
180  // Tracker info
181  // SiStrip
182 
186 
188 
189  // SiPxl
190 
195 
197 
198  // Muon info
199  // DT
200 
205 
207 
208  // CSC
209 
214 
218 
220 
221  // RPC
224 
226 
227  // fix for consumes
245 
246  // private statistics information
247  unsigned int count;
248 
249 }; // end class declaration
250 
251 #endif
252 
253 #ifndef GlobalHitMap
254 #define GlobalHitMap
255 
256 // geometry mapping
257 static const int dTrk = 1;
258 static const int sdPxlBrl = 1;
259 static const int sdPxlFwd = 2;
260 static const int sdSiTIB = 3;
261 static const int sdSiTID = 4;
262 static const int sdSiTOB = 5;
263 static const int sdSiTEC = 6;
264 
265 static const int dMuon = 2;
266 static const int sdMuonDT = 1;
267 static const int sdMuonCSC = 2;
268 static const int sdMuonRPC = 3;
269 static const int sdMuonRPCRgnBrl = 0;
270 static const int sdMuonRPCRgnFwdp = 1;
271 static const int sdMuonRPCRgnFwdn = -1;
272 
273 static const int dEcal = 3;
274 static const int sdEcalBrl = 1;
275 static const int sdEcalFwd = 2;
276 static const int sdEcalPS = 3;
277 static const int sdEcalTT = 4;
278 static const int sdEcalLPnD = 5;
279 
280 static const int dHcal = 4;
281 static const int sdHcalEmpty = 0;
282 static const int sdHcalBrl = 1;
283 static const int sdHcalEC = 2;
284 static const int sdHcalOut = 3;
285 static const int sdHcalFwd = 4;
286 static const int sdHcalTT = 5;
287 static const int sdHcalCalib = 6;
288 static const int sdHcalCompst = 7;
289 
290 #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
std::map< uint32_t, float, std::less< uint32_t > > MapType
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_
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]
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:43
MonitorElement * mehDtMuonn[4]
virtual void analyze(const edm::Event &, const edm::EventSetup &)