CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::UpdatablePSimHit ( )
inline

Definition at line 14 of file UpdatablePSimHit.h.

14 : PSimHit() {}
PSimHit()
Definition: PSimHit.h:17
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) {}
float tof() const
deprecated name for timeOfFlight()
Definition: PSimHit.h:76
Geom::Theta< T > theta() const
float pabs() const
fast and more accurate access to momentumAtEntry().mag()
Definition: PSimHit.h:67
unsigned short processType() const
Definition: PSimHit.h:120
int particleType() const
Definition: PSimHit.h:89
unsigned int trackId() const
Definition: PSimHit.h:106
PSimHit()
Definition: PSimHit.h:17
UpdatablePSimHit::~UpdatablePSimHit ( )
inline

Definition at line 27 of file UpdatablePSimHit.h.

27 {};

Member Function Documentation

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:129
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:129
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:126
Local3DVector theSegment
Definition: PSimHit.h:127
list entry
Definition: mps_splice.py:68
void UpdatablePSimHit::setExitPoint ( const Local3DPoint exit)
inline

Definition at line 29 of file UpdatablePSimHit.h.

References updateExitPoint().

Referenced by TkAccumulatingSensitiveDetector::updateHit().

29 { updateExitPoint(exit); }
void updateExitPoint(const Local3DPoint &exit)
void UpdatablePSimHit::setTrackId ( unsigned int  k)
inline

Definition at line 36 of file UpdatablePSimHit.h.

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

36 { theTrackId = k; }
unsigned int theTrackId
Definition: PSimHit.h:140
void UpdatablePSimHit::updateExitPoint ( const Local3DPoint exit)
inline

Definition at line 28 of file UpdatablePSimHit.h.

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

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

28 { theSegment = exit - theEntryPoint; }
Local3DPoint theEntryPoint
Definition: PSimHit.h:126
Local3DVector theSegment
Definition: PSimHit.h:127