#include <UpdatablePSimHit.h>
Public Member Functions | |
void | addEnergyLoss (float eloss) |
void | setEnergyLoss (float eloss) |
void | setEntryPoint (const Local3DPoint &entry) |
void | setExitPoint (const Local3DPoint &exit) |
void | setTrackId (unsigned int k) |
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) | |
UpdatablePSimHit () | |
void | updateExitPoint (const Local3DPoint &exit) |
~UpdatablePSimHit () |
extension of PSimHit; the exit point and the energy loss can be modified; maybe not the final solution
Definition at line 12 of file UpdatablePSimHit.h.
UpdatablePSimHit::UpdatablePSimHit | ( | ) | [inline] |
Definition at line 15 of file UpdatablePSimHit.h.
: PSimHit() {}
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 |
||
) | [inline] |
Definition at line 16 of file UpdatablePSimHit.h.
: PSimHit(entry, exit, pabs, tof, eloss, particleType, detId, trackId, theta, phi,processType) {}
UpdatablePSimHit::~UpdatablePSimHit | ( | ) | [inline] |
Definition at line 22 of file UpdatablePSimHit.h.
{};
void UpdatablePSimHit::addEnergyLoss | ( | float | eloss | ) | [inline] |
Definition at line 32 of file UpdatablePSimHit.h.
References PSimHit::theEnergyLoss.
Referenced by MuonSensitiveDetector::updateHit(), PLTSensitiveDetector::updateHit(), and TkAccumulatingSensitiveDetector::updateHit().
{ theEnergyLoss += eloss; }
void UpdatablePSimHit::setEnergyLoss | ( | float | eloss | ) | [inline] |
Definition at line 33 of file UpdatablePSimHit.h.
References PSimHit::theEnergyLoss.
{ theEnergyLoss = eloss; }
void UpdatablePSimHit::setEntryPoint | ( | const Local3DPoint & | entry | ) | [inline] |
Definition at line 27 of file UpdatablePSimHit.h.
References PSimHit::theEntryPoint, and PSimHit::theSegment.
{ theSegment = theSegment+theEntryPoint-entry; theEntryPoint = entry; }
void UpdatablePSimHit::setExitPoint | ( | const Local3DPoint & | exit | ) | [inline] |
Definition at line 25 of file UpdatablePSimHit.h.
References updateExitPoint().
Referenced by PLTSensitiveDetector::updateHit(), and TkAccumulatingSensitiveDetector::updateHit().
{ updateExitPoint(exit); }
void UpdatablePSimHit::setTrackId | ( | unsigned int | k | ) | [inline] |
Definition at line 34 of file UpdatablePSimHit.h.
References gen::k, and PSimHit::theTrackId.
{ theTrackId = k; }
void UpdatablePSimHit::updateExitPoint | ( | const Local3DPoint & | exit | ) | [inline] |
Definition at line 23 of file UpdatablePSimHit.h.
References PSimHit::theEntryPoint, and PSimHit::theSegment.
Referenced by setExitPoint(), and MuonSensitiveDetector::updateHit().
{ theSegment=exit-theEntryPoint; }