CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCWireHitSim.h
Go to the documentation of this file.
1 #ifndef MU_END_WIRE_HIT_SIM_H
2 #define MU_END_WIRE_HIT_SIM_H
3 
10 #include <vector>
15 #include "CLHEP/Random/RandomEngine.h"
16 #include "CLHEP/Random/RandFlat.h"
17 class CSCDriftSim;
18 class CSCLayer;
19 class CSCG3Hit;
20 class CSCGasCollisions;
21 class CSCLayerGeometry;
22 
23 
25 {
26 public:
27  explicit CSCWireHitSim(CSCDriftSim* driftSim);
29 
30  // makes wire hits from the given g3hits
31  std::vector<CSCDetectorHit> & simulate(const CSCLayer * layer,
33 
34  void setParticleDataTable(const ParticleDataTable * pdt);
35 
36  void setRandomEngine(CLHEP::HepRandomEngine& engine);
37 
38 private:
39  // Helper functions
40  std::vector<Local3DPoint> getIonizationClusters(const PSimHit & hit,
41  const CSCLayer *);
43 
44  // member data
45  CLHEP::RandFlat * theRandFlat;
48  std::vector<CSCDetectorHit> theNewWireHits;
49 };
50 
51 #endif
CLHEP::RandFlat * theRandFlat
Definition: CSCWireHitSim.h:45
std::vector< Local3DPoint > getIonizationClusters(const PSimHit &hit, const CSCLayer *)
HepPDT::ParticleDataTable ParticleDataTable
CSCDriftSim * theDriftSim
Definition: CSCWireHitSim.h:46
CSCDetectorHit driftElectronsToWire()
void setRandomEngine(CLHEP::HepRandomEngine &engine)
CSCWireHitSim(CSCDriftSim *driftSim)
Definition: CSCWireHitSim.cc:9
CSCGasCollisions * theGasIonizer
Definition: CSCWireHitSim.h:47
tuple simHits
Definition: trackerHits.py:16
std::vector< CSCDetectorHit > & simulate(const CSCLayer *layer, const edm::PSimHitContainer &simHits)
std::vector< PSimHit > PSimHitContainer
std::vector< CSCDetectorHit > theNewWireHits
Definition: CSCWireHitSim.h:48
void setParticleDataTable(const ParticleDataTable *pdt)