CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 15 of file UpdatablePSimHit.h.

15 : PSimHit() {}
PSimHit()
Definition: PSimHit.h:18
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.

20  : PSimHit(entry, exit, pabs, tof, eloss, particleType,
21  detId, trackId, theta, phi,processType) {}
float tof() const
deprecated name for timeOfFlight()
Definition: PSimHit.h:72
Geom::Theta< T > theta() const
float pabs() const
fast and more accurate access to momentumAtEntry().mag()
Definition: PSimHit.h:63
unsigned short processType() const
Definition: PSimHit.h:118
int particleType() const
Definition: PSimHit.h:85
unsigned int trackId() const
Definition: PSimHit.h:102
PSimHit()
Definition: PSimHit.h:18
Definition: DDAxes.h:10
UpdatablePSimHit::~UpdatablePSimHit ( )
inline

Definition at line 22 of file UpdatablePSimHit.h.

22 {};

Member Function Documentation

void UpdatablePSimHit::addEnergyLoss ( float  eloss)
inline
void UpdatablePSimHit::setEnergyLoss ( float  eloss)
inline

Definition at line 33 of file UpdatablePSimHit.h.

References PSimHit::theEnergyLoss.

33 { theEnergyLoss = eloss; }
float theEnergyLoss
Definition: PSimHit.h:129
void UpdatablePSimHit::setEntryPoint ( const Local3DPoint entry)
inline

Definition at line 27 of file UpdatablePSimHit.h.

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

28  {
31  }
Local3DPoint theEntryPoint
Definition: PSimHit.h:126
std::pair< std::string, MonitorElement * > entry
Definition: ME_MAP.h:8
Local3DVector theSegment
Definition: PSimHit.h:127
void UpdatablePSimHit::setExitPoint ( const Local3DPoint exit)
inline

Definition at line 25 of file UpdatablePSimHit.h.

References updateExitPoint().

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

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

Definition at line 34 of file UpdatablePSimHit.h.

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

34 { theTrackId = k; }
unsigned int theTrackId
Definition: PSimHit.h:140
int k[5][pyjets_maxn]
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().

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