CMS 3D CMS Logo

List of all members | Public Member Functions
UpdatablePSimHit Class Reference

#include <UpdatablePSimHit.h>

Inheritance diagram for UpdatablePSimHit:
PSimHit

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 ()
 
 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)
 
void updateExitPoint (const Local3DPoint &exit)
 
 ~UpdatablePSimHit ()
 
- Public Member Functions inherited from PSimHit
unsigned int detUnitId () const
 
float energyLoss () const
 The energy deposit in the PSimHit, in ???. More...
 
Local3DPoint entryPoint () const
 Entry point in the local Det frame. More...
 
EncodedEventId eventId () const
 
Local3DPoint exitPoint () const
 Exit point in the local Det frame. More...
 
LocalVector localDirection () const
 Obsolete. Same as momentumAtEntry().unit(), for backward compatibility. More...
 
Local3DPoint localPosition () const
 
LocalVector momentumAtEntry () const
 The momentum of the track that produced the hit, at entry point. More...
 
unsigned int offsetTrackId () const
 
unsigned int originalTrackId () const
 
float pabs () const
 fast and more accurate access to momentumAtEntry().mag() More...
 
int particleType () const
 
Geom::Phi< float > phiAtEntry () const
 fast and more accurate access to momentumAtEntry().phi() More...
 
unsigned short processType () const
 
 PSimHit ()
 
 PSimHit (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)
 
void setEventId (EncodedEventId e)
 
void setTof (float tof)
 
Geom::Theta< float > thetaAtEntry () const
 fast and more accurate access to momentumAtEntry().theta() More...
 
float timeOfFlight () const
 
float tof () const
 deprecated name for timeOfFlight() More...
 
unsigned int trackId () const
 

Additional Inherited Members

- Static Public Member Functions inherited from PSimHit
static unsigned int addTrackIdOffset (unsigned int tId, unsigned int offset)
 
- Static Public Attributes inherited from PSimHit
static constexpr unsigned int k_tidOffset = 200000000
 
- Protected Attributes inherited from PSimHit
unsigned int theDetUnitId
 
float theEnergyLoss
 
Local3DPoint theEntryPoint
 
EncodedEventId theEventId
 
float thePabs
 
int theParticleType
 
float thePhiAtEntry
 
unsigned short theProcessType
 
Local3DVector theSegment
 
float theThetaAtEntry
 
float theTof
 
unsigned int theTrackId
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ UpdatablePSimHit() [1/2]

UpdatablePSimHit::UpdatablePSimHit ( )
inline

Definition at line 14 of file UpdatablePSimHit.h.

14 : PSimHit() {}
PSimHit()
Definition: PSimHit.h:19

◆ UpdatablePSimHit() [2/2]

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 15 of file UpdatablePSimHit.h.

unsigned short processType() const
Definition: PSimHit.h:131
unsigned int trackId() const
Definition: PSimHit.h:108
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
PSimHit()
Definition: PSimHit.h:19
def exit(msg="")

◆ ~UpdatablePSimHit()

UpdatablePSimHit::~UpdatablePSimHit ( )
inline

Definition at line 27 of file UpdatablePSimHit.h.

27 {}

Member Function Documentation

◆ addEnergyLoss()

void UpdatablePSimHit::addEnergyLoss ( float  eloss)
inline

Definition at line 34 of file UpdatablePSimHit.h.

References PSimHit::theEnergyLoss.

Referenced by TkAccumulatingSensitiveDetector::updateHit(), and MuonSensitiveDetector::updateHit().

34 { theEnergyLoss += eloss; }
float theEnergyLoss
Definition: PSimHit.h:140

◆ setEnergyLoss()

void UpdatablePSimHit::setEnergyLoss ( float  eloss)
inline

Definition at line 35 of file UpdatablePSimHit.h.

References PSimHit::theEnergyLoss.

35 { theEnergyLoss = eloss; }
float theEnergyLoss
Definition: PSimHit.h:140

◆ setEntryPoint()

void UpdatablePSimHit::setEntryPoint ( const Local3DPoint entry)
inline

Definition at line 30 of file UpdatablePSimHit.h.

References mps_splice::entry, PSimHit::theEntryPoint, and PSimHit::theSegment.

30  {
33  }
Local3DPoint theEntryPoint
Definition: PSimHit.h:137
Local3DVector theSegment
Definition: PSimHit.h:138

◆ setExitPoint()

void UpdatablePSimHit::setExitPoint ( const Local3DPoint exit)
inline

Definition at line 29 of file UpdatablePSimHit.h.

References beamvalidation::exit(), and updateExitPoint().

Referenced by TkAccumulatingSensitiveDetector::updateHit().

void updateExitPoint(const Local3DPoint &exit)
def exit(msg="")

◆ setTrackId()

void UpdatablePSimHit::setTrackId ( unsigned int  k)
inline

Definition at line 36 of file UpdatablePSimHit.h.

References isotrackApplyRegressor::k, and PSimHit::theTrackId.

◆ updateExitPoint()

void UpdatablePSimHit::updateExitPoint ( const Local3DPoint exit)
inline

Definition at line 28 of file UpdatablePSimHit.h.

References beamvalidation::exit(), PSimHit::theEntryPoint, and PSimHit::theSegment.

Referenced by setExitPoint(), and MuonSensitiveDetector::updateHit().

Local3DPoint theEntryPoint
Definition: PSimHit.h:137
Local3DVector theSegment
Definition: PSimHit.h:138
def exit(msg="")