LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
SimTrackerHitImpl.h
1 #ifndef IMPL_SIMTRACKERHITIMPL_H
2 #define IMPL_SIMTRACKERHITIMPL_H 1
3 
4 
5 #include "EVENT/SimTrackerHit.h"
6 #include "EVENT/MCParticle.h"
7 #include "AccessChecked.h"
8 
9 
10 namespace IMPL {
11 
12 
21 
22  public:
23 
27 
29  virtual ~SimTrackerHitImpl() ;
30 
31  virtual int id() const { return simpleUID() ; }
32 
35  virtual int getCellID() const ;
36 
39  virtual int getCellID0() const ;
40 
45  virtual int getCellID1() const ;
46 
50  virtual const double * getPosition() const ;
51 
56  virtual float getdEdx() const ;
57 
60  virtual float getEDep() const ;
61 
62 
65  virtual float getTime() const ;
66 
67 
71  virtual EVENT::MCParticle * getMCParticle() const ;
72 
73 
77  virtual const float* getMomentum() const ;
78 
82  virtual float getPathLength() const ;
83 
84  // ---------- setters ------------------------
87  void setCellID( int id) ;
88 
91  void setCellID0(int id0) ;
92 
97  void setCellID1(int id1) ;
98 
101  void setPosition( const double pos[3]) ;
102 
107  void setdEdx( float dEdX ) ;
108 
111  void setEDep( float e ) ;
112 
115  void setTime( float t ) ;
116 
119  void setMCParticle( EVENT::MCParticle* particle) ;
120 
123  void setMomentum( const float p[3] ) ;
124 
127  void setMomentum( float px, float py, float pz ) ;
128 
129  /* Set the path length.
130  */
131  void setPathLength(float pathLength);
132 
133  protected:
134  int _cellID0 ;
135  int _cellID1 ;
136  double _pos[3] ;
137  float _EDep ;
138  float _time ;
139  EVENT::MCParticle* _particle ;
140  float _p[3] ;
141  float _pathLength ;
142 
143 }; // class
144 } // namespace IMPL
145 #endif /* ifndef IMPL_SIMTRACKERHITIMLP_H */
virtual int getCellID() const
DEPRECATED: use ()
Definition: SimTrackerHitImpl.cc:29
float _p[3]
<– fixme: ROOT cannot handle this pointer !!????
Definition: SimTrackerHitImpl.h:140
virtual ~SimTrackerHitImpl()
Destructor.
Definition: SimTrackerHitImpl.cc:25
A generic simulated tracker hit.
Definition: SimTrackerHit.h:23
void setCellID1(int id1)
Sets the second cell id; Only store if the flag word (bit THBIT_ID1) of the collection is set...
Definition: SimTrackerHitImpl.cc:69
virtual float getPathLength() const
The path length of the particle in the sensitive material that resulted in this hit.
Definition: SimTrackerHitImpl.cc:53
void setdEdx(float dEdX)
Sets dE/dx.
Definition: SimTrackerHitImpl.cc:82
virtual const float * getMomentum() const
Returns the 3-momentum of the particle at the hits position in [GeV] - optional, only if bit LCIO::TH...
Definition: SimTrackerHitImpl.cc:55
void setEDep(float e)
Sets EDep.
Definition: SimTrackerHitImpl.cc:91
Implementation of SimTrackerHit.
Definition: SimTrackerHitImpl.h:20
virtual int getCellID0() const
Same name as in CalorimeterHit, even though there are no 'cells' in this case.
Definition: SimTrackerHitImpl.cc:33
virtual const double * getPosition() const
Returns the hit position.
Definition: SimTrackerHitImpl.cc:36
virtual int id() const
Returns an object id for internal (debugging) use in LCIO.
Definition: SimTrackerHitImpl.h:31
virtual int getCellID1() const
Same name as in CalorimeterHit, even though there are no 'cells' in this case 0 if information is not...
Definition: SimTrackerHitImpl.cc:34
SimTrackerHitImpl()
Default constructor, initializes values to 0.
Definition: SimTrackerHitImpl.cc:9
virtual float getdEdx() const
Returns the dE/dx of the hit.
Definition: SimTrackerHitImpl.cc:39
void setMomentum(const float p[3])
Sets the momentum of the particle at the hit's position.
Definition: SimTrackerHitImpl.cc:106
void setCellID0(int id0)
Sets the first cell id;.
Definition: SimTrackerHitImpl.cc:64
The LCIO Monte Carlo particle.
Definition: MCParticle.h:27
virtual EVENT::MCParticle * getMCParticle() const
Returns the MC particle that caused the hit.
Definition: SimTrackerHitImpl.cc:51
virtual float getTime() const
Returns the time of the hit.
Definition: SimTrackerHitImpl.cc:49
void setTime(float t)
Sets the time.
Definition: SimTrackerHitImpl.cc:96
void setCellID(int id)
DEPRECATED: use .
Definition: SimTrackerHitImpl.cc:57
Controls access to objects.
Definition: AccessChecked.h:17
void setPosition(const double pos[3])
Sets the position.
Definition: SimTrackerHitImpl.cc:74
void setMCParticle(EVENT::MCParticle *particle)
Sets the MCParticle that caused the hit.
Definition: SimTrackerHitImpl.cc:101
virtual float getEDep() const
Returns the deposited energy of the hit [GeV].
Definition: SimTrackerHitImpl.cc:47