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 
15 // framework & common header files
26 
27 //DQM services
30 
31 // ecal calorimeter info
40 
41 // hcal calorimeter info
54 
55 // silicon strip info
63 
64 // silicon pixel info
69 
70 // muon DT info
75 
76 // muon CSC Strip info
79 
80 // muon CSC Wire info
83 
84 // muon RPC info
91 
96 
97 // event info
102 
103 #include <iostream>
104 #include <stdlib.h>
105 #include <string>
106 #include <memory>
107 #include <vector>
108 #include <map>
109 
110 #include "TString.h"
112 
113 class PGlobalDigi;
114 
116 {
117 
118  public:
119  typedef std::vector<float> FloatVector;
120  typedef std::vector<double> DoubleVector;
121  typedef std::vector<int> IntVector;
122  typedef std::map<uint32_t,float,std::less<uint32_t> > MapType;
123 
124  explicit GlobalDigisAnalyzer(const edm::ParameterSet&);
125  virtual ~GlobalDigisAnalyzer();
126  virtual void beginJob( void );
127  virtual void endJob();
128  virtual void analyze(const edm::Event&, const edm::EventSetup&);
129 
130  private:
131 
132  // production related methods
133  void fillECal(const edm::Event&, const edm::EventSetup&);
134  //void storeECal(PGlobalDigi&);
135  void fillHCal(const edm::Event&, const edm::EventSetup&);
136  //void storeHCal(PGlobalDigi&);
137  void fillTrk(const edm::Event&, const edm::EventSetup&);
138  //void storeTrk(PGlobalDigi&);
139  void fillMuon(const edm::Event&, const edm::EventSetup&);
140  //void storeMuon(PGlobalDigi&);
141 
142  //void clear();
143 
144  private:
145 
146  // parameter information
147  std::string fName;
150  std::string label;
153  std::string hitsProducer;
154 
156 
157  // Electromagnetic info
158  // ECal info
159 
168 
172 
173  std::map<int, double, std::less<int> > ECalgainConv_;
176 
177  // HCal info
178 
184 
187 
188  // Tracker info
189  // SiStrip
190 
194 
196 
197  // SiPxl
198 
203 
205 
206  // Muon info
207  // DT
208 
213 
215 
216  // CSC
217 
222 
226 
228 
229  // RPC
232 
234 
235  // private statistics information
236  unsigned int count;
237 
238 }; // end class declaration
239 
240 #endif
241 
242 #ifndef GlobalHitMap
243 #define GlobalHitMap
244 
245 // geometry mapping
246 static const int dTrk = 1;
247 static const int sdPxlBrl = 1;
248 static const int sdPxlFwd = 2;
249 static const int sdSiTIB = 3;
250 static const int sdSiTID = 4;
251 static const int sdSiTOB = 5;
252 static const int sdSiTEC = 6;
253 
254 static const int dMuon = 2;
255 static const int sdMuonDT = 1;
256 static const int sdMuonCSC = 2;
257 static const int sdMuonRPC = 3;
258 static const int sdMuonRPCRgnBrl = 0;
259 static const int sdMuonRPCRgnFwdp = 1;
260 static const int sdMuonRPCRgnFwdn = -1;
261 
262 static const int dEcal = 3;
263 static const int sdEcalBrl = 1;
264 static const int sdEcalFwd = 2;
265 static const int sdEcalPS = 3;
266 static const int sdEcalTT = 4;
267 static const int sdEcalLPnD = 5;
268 
269 static const int dHcal = 4;
270 static const int sdHcalEmpty = 0;
271 static const int sdHcalBrl = 1;
272 static const int sdHcalEC = 2;
273 static const int sdHcalOut = 3;
274 static const int sdHcalFwd = 4;
275 static const int sdHcalTT = 5;
276 static const int sdHcalCalib = 6;
277 static const int sdHcalCompst = 7;
278 
279 #endif //PGlobalDigisAnalyzer_h
GlobalDigisAnalyzer(const edm::ParameterSet &)
static const int dEcal
static const int dTrk
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]
void fillECal(const edm::Event &, const edm::EventSetup &)
static const int sdSiTID
MonitorElement * mehEScaln
MonitorElement * mehSiPixelRow[7]
MonitorElement * mehRPCRes[5]
static const int sdEcalPS
static const int sdHcalCalib
static const int sdMuonRPC
MonitorElement * mehSiStripADC[19]
MonitorElement * mehDtMuonTimevLayer[4]
MonitorElement * mehSiStripn[19]
MonitorElement * mehCSCWireTime
static const int sdHcalTT
virtual void beginJob(void)
MonitorElement * mehEcalMaxPos[2]
MonitorElement * mehDtMuonTime[4]
static const int sdSiTIB
static const int sdPxlBrl
edm::InputTag MuCSCStripSrc_
static const int sdMuonCSC
static const int sdEcalFwd
static const int sdHcalCompst
MonitorElement * mehHcalAEE[4]
std::map< uint32_t, float, std::less< uint32_t > > MapType
static const int sdSiTOB
static const int sdEcalBrl
static const int sdMuonRPCRgnFwdp
std::vector< double > DoubleVector
static const int sdMuonRPCRgnBrl
std::map< int, double, std::less< int > > ECalgainConv_
void fillHCal(const edm::Event &, const edm::EventSetup &)
MonitorElement * mehRPCMuonn
MonitorElement * mehEcalSHE[2]
static const int sdEcalLPnD
void fillMuon(const edm::Event &, const edm::EventSetup &)
static const int dHcal
MonitorElement * mehEcalAEE[2]
MonitorElement * mehHcalSHEvAEE[4]
MonitorElement * mehCSCStripn
MonitorElement * mehCSCStripADC
static const int sdHcalFwd
static const int sdHcalBrl
MonitorElement * mehSiPixelCol[7]
MonitorElement * mehHcaln[4]
MonitorElement * mehHcalAEESHE[4]
std::vector< int > IntVector
MonitorElement * mehEcalSHEvAEESHE[2]
static const int sdSiTEC
static const int dMuon
MonitorElement * mehHcalSHE[4]
MonitorElement * mehCSCWiren
static const int sdPxlFwd
static const int sdHcalEmpty
MonitorElement * mehEcalMultvAEE[2]
std::vector< float > FloatVector
MonitorElement * mehSiPixeln[7]
MonitorElement * mehSiStripStrip[19]
void fillTrk(const edm::Event &, const edm::EventSetup &)
static const int sdHcalEC
MonitorElement * mehSiPixelADC[7]
MonitorElement * mehDtMuonn[4]
virtual void analyze(const edm::Event &, const edm::EventSetup &)