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
28 
29 // tracker info
34 
35 // muon info
43 
44 // calorimeter info
50 
51 // data in edm::event
58 //#include "SimDataFormats/CrossingFrame/interface/CrossingFrame.h"
59 //#include "SimDataFormats/CrossingFrame/interface/MixCollection.h"
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 
74 class PGlobalSimHit;
75 
77 {
78 
79  public:
80 
81  typedef std::vector<float> FloatVector;
82 
83  explicit GlobalHitsProducer(const edm::ParameterSet&);
84  virtual ~GlobalHitsProducer();
85  virtual void beginJob( void );
86  virtual void endJob();
87  virtual void produce(edm::Event&, const edm::EventSetup&);
88 
89  private:
90 
91  //GlobalValidation(const GlobalValidation&);
92  //const GlobalValidation& operator=(const GlobalValidation&);
93 
94  // production related methods
95  void fillG4MC(edm::Event&);
96  void storeG4MC(PGlobalSimHit&);
97  void fillTrk(edm::Event&, const edm::EventSetup&);
98  void storeTrk(PGlobalSimHit&);
99  void fillMuon(edm::Event&, const edm::EventSetup&);
100  void storeMuon(PGlobalSimHit&);
101  void fillECal(edm::Event&, const edm::EventSetup&);
102  void storeECal(PGlobalSimHit&);
103  void fillHCal(edm::Event&, const edm::EventSetup&);
104  void storeHCal(PGlobalSimHit&);
105 
106  void clear();
107 
108  private:
109 
110  // parameter information
111  std::string fName;
114  int vtxunit;
115  std::string label;
118 
119  // G4MC info
126 
127  // Electromagnetic info
128  // ECal info
135 
136  // Preshower info
142 
143  // Hadronic info
144  // HCal info
150 
151  // Tracker info
152  // Pixel info
165 
166  // Strip info
183 
184  // Muon info
185  // DT info
191  // CSC info
197  // RPC info
207 
208  // private statistics information
209  unsigned int count;
210 
211 }; // end class declaration
212 
213 #endif
214 
215 #ifndef GlobalHitMap
216 #define GlobalHitMap
217 // geometry mapping
218 static const int dTrk = 1;
219 static const int sdPxlBrl = 1;
220 static const int sdPxlFwd = 2;
221 static const int sdSiTIB = 3;
222 static const int sdSiTID = 4;
223 static const int sdSiTOB = 5;
224 static const int sdSiTEC = 6;
225 
226 static const int dMuon = 2;
227 static const int sdMuonDT = 1;
228 static const int sdMuonCSC = 2;
229 static const int sdMuonRPC = 3;
230 static const int sdMuonRPCRgnBrl = 0;
231 static const int sdMuonRPCRgnFwdp = 1;
232 static const int sdMuonRPCRgnFwdn = -1;
233 
234 static const int dEcal = 3;
235 static const int sdEcalBrl = 1;
236 static const int sdEcalFwd = 2;
237 static const int sdEcalPS = 3;
238 static const int sdEcalTT = 4;
239 static const int sdEcalLPnD = 5;
240 
241 static const int dHcal = 4;
242 static const int sdHcalEmpty = 0;
243 static const int sdHcalBrl = 1;
244 static const int sdHcalEC = 2;
245 static const int sdHcalOut = 3;
246 static const int sdHcalFwd = 4;
247 static const int sdHcalTT = 5;
248 static const int sdHcalCalib = 6;
249 static const int sdHcalCompst = 7;
250 
251 #endif
edm::InputTag ECalESSrc_
void storeECal(PGlobalSimHit &)
static const int sdEcalBrl
static const int sdSiTEC
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 &)
virtual void produce(edm::Event &, const edm::EventSetup &)
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