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 {
14 public:
17  float pabs, float tof, float eloss, int particleType,
18  unsigned int detId, unsigned int trackId, float theta,
19  float phi, unsigned short processType=0)
20  : PSimHit(entry, exit, pabs, tof, eloss, particleType,
21  detId, trackId, theta, phi,processType) {}
24  { theSegment=exit-theEntryPoint; }
26  { updateExitPoint(exit); }
28  {
31  }
32  void addEnergyLoss(float eloss) { theEnergyLoss += eloss; }
33  void setEnergyLoss(float eloss) { theEnergyLoss = eloss; }
34  void setTrackId(unsigned int k) { theTrackId = k; }
35 };
36 
37 #endif
38 
float tof() const
deprecated name for timeOfFlight()
Definition: PSimHit.h:72
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:63
int k[5][pyjets_maxn]
void addEnergyLoss(float eloss)
Local3DVector theSegment
Definition: PSimHit.h:127
unsigned short processType() const
Definition: PSimHit.h:118
int particleType() const
Definition: PSimHit.h:85
unsigned int trackId() const
Definition: PSimHit.h:102