CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GlobalHitsProdHist.h
Go to the documentation of this file.
1 #ifndef GlobalHitsProdHist_h
2 #define GlobalHitsProdHist_h
3 
13 // framework & common header files
27 
28 //DQM services
29 //#include "DQMServices/Core/interface/DQMStore.h"
30 //#include "FWCore/ServiceRegistry/interface/Service.h"
31 
32 // tracker info
37 
38 // muon info
46 
47 // calorimeter info
53 
54 // data in edm::event
60 
61 // helper files
62 //#include <CLHEP/Vector/LorentzVector.h>
64 #include "CLHEP/Units/GlobalSystemOfUnits.h"
65 
66 #include <iostream>
67 #include <stdlib.h>
68 #include <string>
69 #include <memory>
70 #include <vector>
71 
72 #include "TString.h"
73 #include "TH1F.h"
74 
76 {
77 
78  public:
79 
80  //typedef std::vector<float> FloatVector;
81 
82  explicit GlobalHitsProdHist(const edm::ParameterSet&);
83  virtual ~GlobalHitsProdHist();
84  virtual void beginJob( void );
85  virtual void endJob();
86  virtual void produce(edm::Event&, const edm::EventSetup&);
87  virtual void endRun(edm::Run&, const edm::EventSetup&);
88 
89  private:
90 
91  // production related methods
92  void fillG4MC(edm::Event&);
93  void fillTrk(edm::Event&, const edm::EventSetup&);
94  void fillMuon(edm::Event&, const edm::EventSetup&);
95  void fillECal(edm::Event&, const edm::EventSetup&);
96  void fillHCal(edm::Event&, const edm::EventSetup&);
97 
98  private:
99 
100  // parameter information
101  std::string fName;
104  int vtxunit;
107 
108  //DQMStore *dbe;
109  //std::string outputfile;
110 
111  std::vector<std::string> histName_;
112  std::map<std::string, TH1F*> histMap_;
113 
114  // G4MC info
115  TH1F *hMCRGP[2];
116  TH1F *hMCG4Vtx[2];
117  TH1F *hGeantVtxX[2];
118  TH1F *hGeantVtxY[2];
119  TH1F *hGeantVtxZ[2];
120  TH1F *hMCG4Trk[2];
121  TH1F *hGeantTrkPt;
122  TH1F *hGeantTrkE;
124 
125  // Electromagnetic info
126  // ECal info
127  TH1F *hCaloEcal[2];
128  TH1F *hCaloEcalE[2];
129  TH1F *hCaloEcalToF[2];
131  TH1F *hCaloEcalEta;
134 
135  // Preshower info
136  TH1F *hCaloPreSh[2];
137  TH1F *hCaloPreShE[2];
138  TH1F *hCaloPreShToF[2];
142 
143  // Hadronic info
144  // HCal info
145  TH1F *hCaloHcal[2];
146  TH1F *hCaloHcalE[2];
147  TH1F *hCaloHcalToF[2];
149  TH1F *hCaloHcalEta;
151 
152  // Tracker info
153  // Pixel info
154  int nPxlHits;
155  TH1F *hTrackerPx[2];
166 
167  // Strip info
168  int nSiHits;
169  TH1F *hTrackerSi[2];
184 
185  // Muon info
186  TH1F *hMuon[2];
187  TH1F *hMuonPhi;
188  TH1F *hMuonEta;
190 
191  // DT info
192  TH1F *hMuonDtToF[2];
193  TH1F *hMuonDtR;
195  // CSC info
196  TH1F *hMuonCscToF[2];
197  TH1F *hMuonCscZ;
199  // RPC info
200  TH1F *hMuonRpcFToF[2];
201  TH1F *hMuonRpcFZ;
202  TH1F *hMuonRpcBToF[2];
203  TH1F *hMuonRpcBR;
205 
206  // private statistics information
207  unsigned int count;
208 
209 }; // end class declaration
210 
211 #endif
212 
213 #ifndef GlobalHitMap
214 #define GlobalHitMap
215 // geometry mapping
216 static const int dTrk = 1;
217 static const int sdPxlBrl = 1;
218 static const int sdPxlFwd = 2;
219 static const int sdSiTIB = 3;
220 static const int sdSiTID = 4;
221 static const int sdSiTOB = 5;
222 static const int sdSiTEC = 6;
223 
224 static const int dMuon = 2;
225 static const int sdMuonDT = 1;
226 static const int sdMuonCSC = 2;
227 static const int sdMuonRPC = 3;
228 static const int sdMuonRPCRgnBrl = 0;
229 static const int sdMuonRPCRgnFwdp = 1;
230 static const int sdMuonRPCRgnFwdn = -1;
231 
232 static const int dEcal = 3;
233 static const int sdEcalBrl = 1;
234 static const int sdEcalFwd = 2;
235 static const int sdEcalPS = 3;
236 static const int sdEcalTT = 4;
237 static const int sdEcalLPnD = 5;
238 
239 static const int dHcal = 4;
240 static const int sdHcalEmpty = 0;
241 static const int sdHcalBrl = 1;
242 static const int sdHcalEC = 2;
243 static const int sdHcalOut = 3;
244 static const int sdHcalFwd = 4;
245 static const int sdHcalTT = 5;
246 static const int sdHcalCalib = 6;
247 static const int sdHcalCompst = 7;
248 
249 #endif
edm::InputTag SiTECHighSrc_
edm::InputTag SiTIDLowSrc_
std::map< std::string, TH1F * > histMap_
virtual void produce(edm::Event &, const edm::EventSetup &)
static const int sdEcalFwd
static const int sdEcalPS
static const int sdMuonCSC
edm::InputTag SiTECLowSrc_
virtual void endRun(edm::Run &, const edm::EventSetup &)
static const int sdSiTIB
virtual void beginJob(void)
edm::InputTag MuonRpcSrc_
static const int sdHcalCompst
static const int sdHcalOut
edm::InputTag MuonCscSrc_
static const int sdMuonRPC
static const int dTrk
void fillHCal(edm::Event &, const edm::EventSetup &)
static const int sdEcalBrl
edm::InputTag SiTIBLowSrc_
std::vector< std::string > histName_
static const int sdEcalTT
void fillG4MC(edm::Event &)
edm::InputTag PxlFwdHighSrc_
edm::InputTag MuonDtSrc_
static const int sdSiTOB
static const int sdSiTID
static const int sdPxlBrl
edm::InputTag ECalEESrc_
static const int sdHcalEmpty
edm::InputTag SiTOBHighSrc_
static const int sdMuonDT
static const int sdHcalTT
void fillTrk(edm::Event &, const edm::EventSetup &)
edm::InputTag ECalESSrc_
edm::InputTag SiTIBHighSrc_
static const int dMuon
edm::InputTag PxlFwdLowSrc_
static const int sdHcalFwd
static const int sdMuonRPCRgnBrl
void fillECal(edm::Event &, const edm::EventSetup &)
static const int sdSiTEC
edm::InputTag PxlBrlHighSrc_
static const int sdHcalBrl
void fillMuon(edm::Event &, const edm::EventSetup &)
edm::InputTag PxlBrlLowSrc_
static const int sdHcalEC
static const int sdEcalLPnD
static const int dEcal
static const int sdMuonRPCRgnFwdn
edm::InputTag SiTOBLowSrc_
static const int sdPxlFwd
GlobalHitsProdHist(const edm::ParameterSet &)
edm::InputTag ECalEBSrc_
static const int dHcal
edm::InputTag SiTIDHighSrc_
Definition: Run.h:33
static const int sdHcalCalib
static const int sdMuonRPCRgnFwdp