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
UpdatablePSimHit::UpdatablePSimHit
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)
Definition: UpdatablePSimHit.h:15
UpdatablePSimHit::setExitPoint
void setExitPoint(const Local3DPoint &exit)
Definition: UpdatablePSimHit.h:29
mps_splice.entry
entry
Definition: mps_splice.py:68
PSimHit::tof
float tof() const
deprecated name for timeOfFlight()
Definition: PSimHit.h:76
PSimHit::theEntryPoint
Local3DPoint theEntryPoint
Definition: PSimHit.h:126
UpdatablePSimHit::UpdatablePSimHit
UpdatablePSimHit()
Definition: UpdatablePSimHit.h:14
PSimHit::theSegment
Local3DVector theSegment
Definition: PSimHit.h:127
PSimHit::pabs
float pabs() const
fast and more accurate access to momentumAtEntry().mag()
Definition: PSimHit.h:67
PSimHit.h
PSimHit::processType
unsigned short processType() const
Definition: PSimHit.h:120
UpdatablePSimHit::setTrackId
void setTrackId(unsigned int k)
Definition: UpdatablePSimHit.h:36
theta
Geom::Theta< T > theta() const
Definition: Basic3DVectorLD.h:150
dqmdumpme.k
k
Definition: dqmdumpme.py:60
Point3DBase< float, LocalTag >
UpdatablePSimHit::updateExitPoint
void updateExitPoint(const Local3DPoint &exit)
Definition: UpdatablePSimHit.h:28
UpdatablePSimHit::setEntryPoint
void setEntryPoint(const Local3DPoint &entry)
Definition: UpdatablePSimHit.h:30
PSimHit::theTrackId
unsigned int theTrackId
Definition: PSimHit.h:140
UpdatablePSimHit
Definition: UpdatablePSimHit.h:12
UpdatablePSimHit::addEnergyLoss
void addEnergyLoss(float eloss)
Definition: UpdatablePSimHit.h:34
DDAxes::phi
PSimHit::particleType
int particleType() const
Definition: PSimHit.h:89
PSimHit::trackId
unsigned int trackId() const
Definition: PSimHit.h:106
PSimHit::theEnergyLoss
float theEnergyLoss
Definition: PSimHit.h:129
beamvalidation.exit
def exit(msg="")
Definition: beamvalidation.py:53
PSimHit
Definition: PSimHit.h:15
UpdatablePSimHit::setEnergyLoss
void setEnergyLoss(float eloss)
Definition: UpdatablePSimHit.h:35
UpdatablePSimHit::~UpdatablePSimHit
~UpdatablePSimHit()
Definition: UpdatablePSimHit.h:27