CMS 3D CMS Logo

UpdatablePSimHit Class Reference

extension of PSimHit; the exit point and the energy loss can be modified; maybe not the final solution More...

#include <SimDataFormats/TrackingHit/interface/UpdatablePSimHit.h>

Inheritance diagram for UpdatablePSimHit:

PSimHit

List of all members.

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


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.

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

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

UpdatablePSimHit::~UpdatablePSimHit (  )  [inline]

Definition at line 22 of file UpdatablePSimHit.h.

00022 {};  


Member Function Documentation

void UpdatablePSimHit::addEnergyLoss ( float  eloss  )  [inline]

Definition at line 32 of file UpdatablePSimHit.h.

References PSimHit::theEnergyLoss.

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

00032 { theEnergyLoss += eloss; }

void UpdatablePSimHit::setEnergyLoss ( float  eloss  )  [inline]

Definition at line 33 of file UpdatablePSimHit.h.

References PSimHit::theEnergyLoss.

00033 { theEnergyLoss = eloss; }

void UpdatablePSimHit::setEntryPoint ( const Local3DPoint entry  )  [inline]

Definition at line 27 of file UpdatablePSimHit.h.

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

00028     {
00029         theSegment = theSegment+theEntryPoint-entry;
00030         theEntryPoint = entry;
00031     }

void UpdatablePSimHit::setExitPoint ( const Local3DPoint exit  )  [inline]

Definition at line 25 of file UpdatablePSimHit.h.

References updateExitPoint().

Referenced by TkAccumulatingSensitiveDetector::updateHit().

00026     { updateExitPoint(exit); }

void UpdatablePSimHit::setTrackId ( unsigned int  k  )  [inline]

Definition at line 34 of file UpdatablePSimHit.h.

References PSimHit::theTrackId.

00034 { 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().

00024     { theSegment=exit-theEntryPoint; }


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:34:51 2009 for CMSSW by  doxygen 1.5.4