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)
26  : PSimHit(entry, exit, pabs, tof, eloss, particleType, detId, trackId, theta, phi, processType) {}
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
float tof() const
deprecated name for timeOfFlight()
Definition: PSimHit.h:76
unsigned int theTrackId
Definition: PSimHit.h:140
void setEnergyLoss(float eloss)
Local3DPoint theEntryPoint
Definition: PSimHit.h:126
Geom::Theta< T > theta() const
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:129
void setEntryPoint(const Local3DPoint &entry)
void updateExitPoint(const Local3DPoint &exit)
void setTrackId(unsigned int k)
float pabs() const
fast and more accurate access to momentumAtEntry().mag()
Definition: PSimHit.h:67
void addEnergyLoss(float eloss)
Local3DVector theSegment
Definition: PSimHit.h:127
unsigned short processType() const
Definition: PSimHit.h:120
int particleType() const
Definition: PSimHit.h:89
unsigned int trackId() const
Definition: PSimHit.h:106
def exit(msg="")