CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GlobalHitsAnalyzer.h
Go to the documentation of this file.
1 #ifndef GlobalHitsAnalyzer_h
2 #define GlobalHitsAnalyzer_h
3 
13 // framework & common header files
26 
27 //DQM services
30 
31 // tracker info
36 
37 // muon info
45 
46 // calorimeter info
52 
53 // data in edm::event
59 
60 // helper files
61 //#include <CLHEP/Vector/LorentzVector.h>
63 #include "CLHEP/Units/GlobalSystemOfUnits.h"
64 
65 #include <iostream>
66 #include <stdlib.h>
67 #include <string>
68 #include <memory>
69 #include <vector>
70 
71 #include "TString.h"
73 
75 {
76 
77  public:
78 
79  //typedef std::vector<float> FloatVector;
80 
81  explicit GlobalHitsAnalyzer(const edm::ParameterSet&);
82  virtual ~GlobalHitsAnalyzer();
83  virtual void beginJob( void );
84  virtual void endJob();
85  virtual void analyze(const edm::Event&, const edm::EventSetup&);
86 
87  private:
88 
89  // production related methods
90  void fillG4MC(const edm::Event&);
91  void fillTrk(const edm::Event&, const edm::EventSetup&);
92  void fillMuon(const edm::Event&, const edm::EventSetup&);
93  void fillECal(const edm::Event&, const edm::EventSetup&);
94  void fillHCal(const edm::Event&, const edm::EventSetup&);
95 
96 
97  private:
98 
99  // parameter information
100  std::string fName;
103  int vtxunit;
104  std::string label;
107 
126  bool validEB;
127  bool validEE;
129  bool validHcal;
130 
132 
133  // G4MC info
147 
148  // Electromagnetic info
149  // ECal info
157 
158  // Preshower info
165 
166  // Hadronic info
167  // HCal info
174 
175  // Tracker info
176  // Pixel info
177  int nPxlHits;
189 
190  // Strip info
191  int nSiHits;
207 
208  // Muon info
213 
214  // DT info
218  // CSC info
222  // RPC info
228 
229  // private statistics information
230  unsigned int count;
231 
232 }; // end class declaration
233 
234 #endif
235 
236 #ifndef GlobalHitMap
237 #define GlobalHitMap
238 // geometry mapping
239 static const int dTrk = 1;
240 static const int sdPxlBrl = 1;
241 static const int sdPxlFwd = 2;
242 static const int sdSiTIB = 3;
243 static const int sdSiTID = 4;
244 static const int sdSiTOB = 5;
245 static const int sdSiTEC = 6;
246 
247 static const int dMuon = 2;
248 static const int sdMuonDT = 1;
249 static const int sdMuonCSC = 2;
250 static const int sdMuonRPC = 3;
251 static const int sdMuonRPCRgnBrl = 0;
252 static const int sdMuonRPCRgnFwdp = 1;
253 static const int sdMuonRPCRgnFwdn = -1;
254 
255 static const int dEcal = 3;
256 static const int sdEcalBrl = 1;
257 static const int sdEcalFwd = 2;
258 static const int sdEcalPS = 3;
259 static const int sdEcalTT = 4;
260 static const int sdEcalLPnD = 5;
261 
262 static const int dHcal = 4;
263 static const int sdHcalEmpty = 0;
264 static const int sdHcalBrl = 1;
265 static const int sdHcalEC = 2;
266 static const int sdHcalOut = 3;
267 static const int sdHcalFwd = 4;
268 static const int sdHcalTT = 5;
269 static const int sdHcalCalib = 6;
270 static const int sdHcalCompst = 7;
271 
272 #endif
MonitorElement * meTrackerSiPhi
void fillG4MC(const edm::Event &)
static const int sdEcalPS
edm::InputTag SiTECLowSrc_
static const int sdHcalFwd
static const int sdHcalCompst
edm::InputTag PxlBrlLowSrc_
edm::InputTag MuonDtSrc_
static const int sdHcalOut
static const int dEcal
static const int sdHcalCalib
static const int sdEcalTT
MonitorElement * meMuonDtToF[2]
MonitorElement * meGeantVtxRad[2]
MonitorElement * meCaloHcal[2]
static const int sdPxlBrl
MonitorElement * meMCG4Trk[2]
MonitorElement * meTrackerPxPhi
MonitorElement * meCaloHcalToF[2]
MonitorElement * meCaloPreSh[2]
MonitorElement * meTrackerSiEta
static const int sdMuonRPC
static const int sdMuonCSC
void fillHCal(const edm::Event &, const edm::EventSetup &)
MonitorElement * meTrackerSiBToF
MonitorElement * meTrackerSi[2]
static const int sdMuonRPCRgnFwdp
static const int sdSiTIB
MonitorElement * meMCG4Vtx[2]
static const int dMuon
edm::InputTag SiTIBHighSrc_
MonitorElement * meGeantVtxY[2]
MonitorElement * meGeantVtxMulti
static const int sdEcalBrl
MonitorElement * meTrackerPxFZ
edm::InputTag MuonCscSrc_
edm::InputTag PxlBrlHighSrc_
static const int sdMuonDT
static const int sdHcalBrl
static const int sdEcalLPnD
MonitorElement * meMuonCscToF[2]
MonitorElement * meCaloPreShPhi
MonitorElement * meGeantTrkE
MonitorElement * meCaloEcalEta
static const int sdMuonRPCRgnBrl
MonitorElement * meTrackerPxBR
static const int sdSiTID
MonitorElement * meCaloPreShE[2]
edm::InputTag PxlFwdLowSrc_
MonitorElement * meTrackerPxBToF
MonitorElement * meGeantVtxPhi
edm::InputTag SiTIDLowSrc_
edm::InputTag ECalESSrc_
MonitorElement * meCaloEcalPhi
MonitorElement * meTrackerPx[2]
MonitorElement * meGeantTrkPt
MonitorElement * meGeantVtxEta
edm::InputTag PxlFwdHighSrc_
MonitorElement * meMuonRpcFZ
edm::InputTag SiTECHighSrc_
void fillTrk(const edm::Event &, const edm::EventSetup &)
MonitorElement * meMCRGP[2]
MonitorElement * meMuonRpcBToF[2]
static const int dHcal
static const int sdHcalTT
MonitorElement * meCaloHcalE[2]
MonitorElement * meMuonCscZ
MonitorElement * meGeantVtxX[2]
void fillMuon(const edm::Event &, const edm::EventSetup &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
MonitorElement * meCaloEcal[2]
static const int sdMuonRPCRgnFwdn
MonitorElement * meTrackerSiFZ
MonitorElement * meGeantVtxZ[2]
MonitorElement * meCaloEcalToF[2]
static const int sdSiTOB
static const int sdSiTEC
void fillECal(const edm::Event &, const edm::EventSetup &)
edm::InputTag SiTIDHighSrc_
MonitorElement * meMuon[2]
MonitorElement * meMuonRpcFToF[2]
MonitorElement * meCaloPreShToF[2]
MonitorElement * meCaloPreShEta
MonitorElement * meTrackerSiFToF
MonitorElement * meTrackerPxFToF
edm::InputTag MuonRpcSrc_
MonitorElement * meMuonEta
edm::InputTag SiTOBLowSrc_
edm::InputTag SiTOBHighSrc_
MonitorElement * meMuonDtR
static const int dTrk
edm::InputTag ECalEBSrc_
static const int sdPxlFwd
edm::InputTag SiTIBLowSrc_
MonitorElement * meCaloHcalPhi
static const int sdEcalFwd
static const int sdHcalEC
MonitorElement * meMuonRpcBR
edm::InputTag ECalEESrc_
MonitorElement * meTrackerPxEta
static const int sdHcalEmpty
MonitorElement * meCaloHcalEta
virtual void beginJob(void)
MonitorElement * meMuonPhi
GlobalHitsAnalyzer(const edm::ParameterSet &)
MonitorElement * meTrackerSiBR
MonitorElement * meCaloEcalE[2]