CMS 3D CMS Logo

UpdatablePSimHit.h
Go to the documentation of this file.
1 #ifndef UpdatablePSimHit_H
2 #define UpdatablePSimHit_H
3 
11 
12 class UpdatablePSimHit : public PSimHit {
13 public:
16  const Local3DPoint& exit,
17  float pabs,
18  float tof,
19  float eloss,
20  int particleType,
21  unsigned int detId,
22  unsigned int trackId,
23  float theta,
24  float phi,
25  unsigned short processType = 0)
33  }
34  void addEnergyLoss(float eloss) { theEnergyLoss += eloss; }
35  void setEnergyLoss(float eloss) { theEnergyLoss = eloss; }
36  void setTrackId(unsigned int k) { theTrackId = k; }
37 };
38 
39 #endif
unsigned int theTrackId
Definition: PSimHit.h:151
void setEnergyLoss(float eloss)
Local3DPoint theEntryPoint
Definition: PSimHit.h:137
void setExitPoint(const Local3DPoint &exit)
UpdatablePSimHit(const Local3DPoint &entry, const Local3DPoint &exit, float pabs, float tof, float eloss, int particleType, unsigned int detId, unsigned int trackId, float theta, float phi, unsigned short processType=0)
float theEnergyLoss
Definition: PSimHit.h:140
void setEntryPoint(const Local3DPoint &entry)
void updateExitPoint(const Local3DPoint &exit)
unsigned short processType() const
Definition: PSimHit.h:131
unsigned int trackId() const
Definition: PSimHit.h:108
void setTrackId(unsigned int k)
void addEnergyLoss(float eloss)
Local3DVector theSegment
Definition: PSimHit.h:138
float tof() const
deprecated name for timeOfFlight()
Definition: PSimHit.h:78
float pabs() const
fast and more accurate access to momentumAtEntry().mag()
Definition: PSimHit.h:69
int particleType() const
Definition: PSimHit.h:91
Geom::Theta< T > theta() const
def exit(msg="")