CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GlobalHitsProducer.h
Go to the documentation of this file.
1 #ifndef GlobalHitsProducer_h
2 #define GlobalHitsProducer_h
3 
15 // framework & common header files
29 
30 // tracker info
35 
36 // muon info
44 
45 // calorimeter info
51 
52 // data in edm::event
59 //#include "SimDataFormats/CrossingFrame/interface/CrossingFrame.h"
60 //#include "SimDataFormats/CrossingFrame/interface/MixCollection.h"
61 
62 // helper files
63 //#include <CLHEP/Vector/LorentzVector.h>
65 #include "CLHEP/Units/GlobalSystemOfUnits.h"
66 
67 #include <iostream>
68 #include <stdlib.h>
69 #include <string>
70 #include <memory>
71 #include <vector>
72 
73 #include "TString.h"
74 
75 class PGlobalSimHit;
76 
78 {
79 
80  public:
81 
82  typedef std::vector<float> FloatVector;
83 
84  explicit GlobalHitsProducer(const edm::ParameterSet&);
85  virtual ~GlobalHitsProducer();
86  virtual void beginJob( void );
87  virtual void endJob();
88  virtual void produce(edm::Event&, const edm::EventSetup&) override;
89 
90  private:
91 
92  //GlobalValidation(const GlobalValidation&);
93  //const GlobalValidation& operator=(const GlobalValidation&);
94 
95  // production related methods
96  void fillG4MC(edm::Event&);
97  void storeG4MC(PGlobalSimHit&);
98  void fillTrk(edm::Event&, const edm::EventSetup&);
99  void storeTrk(PGlobalSimHit&);
100  void fillMuon(edm::Event&, const edm::EventSetup&);
101  void storeMuon(PGlobalSimHit&);
102  void fillECal(edm::Event&, const edm::EventSetup&);
103  void storeECal(PGlobalSimHit&);
104  void fillHCal(edm::Event&, const edm::EventSetup&);
105  void storeHCal(PGlobalSimHit&);
106 
107  void clear();
108 
109  private:
110 
111  // parameter information
115  int vtxunit;
119 
120  // G4MC info
127 
130 
131  // Electromagnetic info
132  // ECal info
139 
140  // Preshower info
146 
147  // Hadronic info
148  // HCal info
154 
155  // Tracker info
156  // Pixel info
169 
170  // Strip info
187 
188  // Muon info
189  // DT info
195  // CSC info
201  // RPC info
211 
212  // private statistics information
213  unsigned int count;
214 
215 }; // end class declaration
216 
217 #endif
218 
219 #ifndef GlobalHitMap
220 #define GlobalHitMap
221 // geometry mapping
222 static const int dTrk = 1;
223 static const int sdPxlBrl = 1;
224 static const int sdPxlFwd = 2;
225 static const int sdSiTIB = 3;
226 static const int sdSiTID = 4;
227 static const int sdSiTOB = 5;
228 static const int sdSiTEC = 6;
229 
230 static const int dMuon = 2;
231 static const int sdMuonDT = 1;
232 static const int sdMuonCSC = 2;
233 static const int sdMuonRPC = 3;
234 static const int sdMuonRPCRgnBrl = 0;
235 static const int sdMuonRPCRgnFwdp = 1;
236 static const int sdMuonRPCRgnFwdn = -1;
237 
238 static const int dEcal = 3;
239 static const int sdEcalBrl = 1;
240 static const int sdEcalFwd = 2;
241 static const int sdEcalPS = 3;
242 static const int sdEcalTT = 4;
243 static const int sdEcalLPnD = 5;
244 
245 static const int dHcal = 4;
246 static const int sdHcalEmpty = 0;
247 static const int sdHcalBrl = 1;
248 static const int sdHcalEC = 2;
249 static const int sdHcalOut = 3;
250 static const int sdHcalFwd = 4;
251 static const int sdHcalTT = 5;
252 static const int sdHcalCalib = 6;
253 static const int sdHcalCompst = 7;
254 
255 #endif
edm::InputTag ECalESSrc_
void storeECal(PGlobalSimHit &)
static const int sdEcalBrl
static const int sdSiTEC
virtual void produce(edm::Event &, const edm::EventSetup &) override
edm::InputTag ECalEESrc_
static const int sdHcalBrl
edm::InputTag MuonCscSrc_
static const int sdHcalEC
edm::InputTag MuonDtSrc_
edm::InputTag SiTOBHighSrc_
edm::InputTag PxlBrlHighSrc_
edm::InputTag PxlBrlLowSrc_
void storeMuon(PGlobalSimHit &)
edm::InputTag PxlFwdLowSrc_
static const int sdMuonCSC
void storeG4MC(PGlobalSimHit &)
static const int sdPxlBrl
edm::InputTag SiTIDLowSrc_
void storeTrk(PGlobalSimHit &)
static const int sdHcalCalib
static const int sdEcalFwd
edm::InputTag SiTECHighSrc_
edm::InputTag ECalEBSrc_
static const int sdMuonRPCRgnFwdn
void fillMuon(edm::Event &, const edm::EventSetup &)
GlobalHitsProducer(const edm::ParameterSet &)
static const int sdHcalFwd
void fillTrk(edm::Event &, const edm::EventSetup &)
static const int dEcal
static const int sdSiTIB
edm::InputTag SiTIBLowSrc_
edm::InputTag SiTECLowSrc_
static const int sdPxlFwd
static const int sdMuonRPCRgnBrl
static const int sdSiTID
edm::InputTag SiTIDHighSrc_
static const int sdHcalEmpty
static const int sdMuonRPC
edm::InputTag PxlFwdHighSrc_
static const int dHcal
std::vector< float > FloatVector
static const int sdEcalPS
static const int sdEcalLPnD
static const int sdMuonRPCRgnFwdp
static const int sdSiTOB
virtual void beginJob(void)
void fillECal(edm::Event &, const edm::EventSetup &)
void fillHCal(edm::Event &, const edm::EventSetup &)
static const int sdHcalTT
void storeHCal(PGlobalSimHit &)
edm::InputTag SiTOBLowSrc_
static const int dTrk
static const int sdMuonDT
static const int sdHcalCompst
static const int dMuon
void fillG4MC(edm::Event &)
edm::InputTag SiTIBHighSrc_
static const int sdEcalTT
edm::InputTag MuonRpcSrc_
static const int sdHcalOut