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...
 
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

- 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() {}

◆ 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.

26  : PSimHit(entry, exit, pabs, tof, eloss, particleType, detId, trackId, theta, phi, processType) {}

◆ ~UpdatablePSimHit()

UpdatablePSimHit::~UpdatablePSimHit ( )
inline

Definition at line 27 of file UpdatablePSimHit.h.

27 {};

Member Function Documentation

◆ addEnergyLoss()

void UpdatablePSimHit::addEnergyLoss ( float  eloss)
inline

◆ setEnergyLoss()

void UpdatablePSimHit::setEnergyLoss ( float  eloss)
inline

Definition at line 35 of file UpdatablePSimHit.h.

35 { theEnergyLoss = eloss; }

References PSimHit::theEnergyLoss.

◆ setEntryPoint()

void UpdatablePSimHit::setEntryPoint ( const Local3DPoint entry)
inline

Definition at line 30 of file UpdatablePSimHit.h.

30  {
33  }

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

◆ setExitPoint()

void UpdatablePSimHit::setExitPoint ( const Local3DPoint exit)
inline

◆ setTrackId()

void UpdatablePSimHit::setTrackId ( unsigned int  k)
inline

Definition at line 36 of file UpdatablePSimHit.h.

36 { theTrackId = k; }

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

◆ updateExitPoint()

void UpdatablePSimHit::updateExitPoint ( const Local3DPoint exit)
inline
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
PSimHit::theSegment
Local3DVector theSegment
Definition: PSimHit.h:127
PSimHit::PSimHit
PSimHit()
Definition: PSimHit.h:17
PSimHit::pabs
float pabs() const
fast and more accurate access to momentumAtEntry().mag()
Definition: PSimHit.h:67
PSimHit::processType
unsigned short processType() const
Definition: PSimHit.h:120
theta
Geom::Theta< T > theta() const
Definition: Basic3DVectorLD.h:150
dqmdumpme.k
k
Definition: dqmdumpme.py:60
UpdatablePSimHit::updateExitPoint
void updateExitPoint(const Local3DPoint &exit)
Definition: UpdatablePSimHit.h:28
PSimHit::theTrackId
unsigned int theTrackId
Definition: PSimHit.h:140
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