LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
Public Member Functions | Protected Attributes | List of all members
IMPL::SimTrackerHitImpl Class Reference

Implementation of SimTrackerHit. More...

#include <IMPL/SimTrackerHitImpl.h>

Inheritance diagram for IMPL::SimTrackerHitImpl:
EVENT::SimTrackerHit IMPL::AccessChecked EVENT::LCObject lcrtrel::LCRTRelations IOIMPL::SimTrackerHitIOImpl

Public Member Functions

 SimTrackerHitImpl ()
 Default constructor, initializes values to 0.
 
virtual ~SimTrackerHitImpl ()
 Destructor.
 
virtual int id () const
 Returns an object id for internal (debugging) use in LCIO.
 
virtual int getCellID () const
 DEPRECATED: use ()
 
virtual int getCellID0 () const
 Same name as in CalorimeterHit, even though there are no 'cells' in this case.
 
virtual int getCellID1 () const
 Same name as in CalorimeterHit, even though there are no 'cells' in this case 0 if information is not stored - check the flag word (bit THBIT_ID1) of the collection. More...
 
virtual const double * getPosition () const
 Returns the hit position.
 
virtual float getdEdx () const
 Returns the dE/dx of the hit. More...
 
virtual float getEDep () const
 Returns the deposited energy of the hit [GeV].
 
virtual float getTime () const
 Returns the time of the hit. More...
 
virtual EVENT::MCParticlegetMCParticle () const
 Returns the MC particle that caused the hit. More...
 
virtual const float * getMomentum () const
 Returns the 3-momentum of the particle at the hits position in [GeV] - optional, only if bit LCIO::THBIT_MOMENTUM is set.
 
virtual float getPathLength () const
 The path length of the particle in the sensitive material that resulted in this hit. More...
 
void setCellID (int id)
 DEPRECATED: use .
 
void setCellID0 (int id0)
 Sets the first cell id;.
 
void setCellID1 (int id1)
 Sets the second cell id; Only store if the flag word (bit THBIT_ID1) of the collection is set. More...
 
void setPosition (const double pos[3])
 Sets the position.
 
void setdEdx (float dEdX)
 Sets dE/dx. More...
 
void setEDep (float e)
 Sets EDep.
 
void setTime (float t)
 Sets the time.
 
void setMCParticle (EVENT::MCParticle *particle)
 Sets the MCParticle that caused the hit.
 
void setMomentum (const float p[3])
 Sets the momentum of the particle at the hit's position.
 
void setMomentum (float px, float py, float pz)
 Sets the momentum of the particle at the hit's position.
 
void setPathLength (float pathLength)
 
- Public Member Functions inherited from EVENT::SimTrackerHit
virtual ~SimTrackerHit ()
 Destructor.
 
- Public Member Functions inherited from EVENT::LCObject
virtual ~LCObject ()
 Destructor.
 
virtual LCObjectclone () const
 Returns an object id for internal (debugging) use in LCIO. More...
 
- Public Member Functions inherited from lcrtrel::LCRTRelations
template<class V >
V::ext_type ext ()
 Provides access to an extension object - the type and ownership is defined by the class V which should be a subtype of LCExtension, LCOwnedExtension, LCExtensionVector, LCExtensionList,...
 
template<class V >
const V::ext_type ext () const
 
template<class V >
V::rel_type rel ()
 Provides read access to relations - the object types and their connectivity are defined by the class V which has to be a subtype of either LC1To1Relation, LC1ToNRelation or LCNToNRelation.
 
- Public Member Functions inherited from IMPL::AccessChecked
virtual int simpleUID () const
 

Protected Attributes

int _cellID0
 
int _cellID1
 
double _pos [3]
 
float _EDep
 
float _time
 
EVENT::MCParticle_particle
 
float _p [3]
 <– fixme: ROOT cannot handle this pointer !!????
 
float _pathLength
 
- Protected Attributes inherited from IMPL::AccessChecked
bool _readOnly
 
int _id
 

Additional Inherited Members

- Public Types inherited from EVENT::SimTrackerHit
typedef SimTrackerHit lcobject_type
 Useful typedef for template programming with LCIO.
 
- Protected Member Functions inherited from lcrtrel::LCRTRelations
template<class V >
V::ptr & ptr () const
 Returns the reference to the pointer to the extension/relation object.
 
- Protected Member Functions inherited from IMPL::AccessChecked
virtual void setReadOnly (bool readOnly)
 
void checkAccess () throw ( EVENT::ReadOnlyException )
 
void checkAccess (const char *what) throw ( EVENT::ReadOnlyException )
 

Detailed Description

Implementation of SimTrackerHit.

See Also
SimTrackerHit
Author
gaede
Version
Mar 6, 2003

Member Function Documentation

int IMPL::SimTrackerHitImpl::getCellID1 ( ) const
virtual

Same name as in CalorimeterHit, even though there are no 'cells' in this case 0 if information is not stored - check the flag word (bit THBIT_ID1) of the collection.

Default is to store only cellid0.

Implements EVENT::SimTrackerHit.

float IMPL::SimTrackerHitImpl::getdEdx ( ) const
virtual

Returns the dE/dx of the hit.

Deprecated:
See Also
getEDep()

Implements EVENT::SimTrackerHit.

References getEDep(), and UTIL::LCWarning::printWarning().

EVENT::MCParticle * IMPL::SimTrackerHitImpl::getMCParticle ( ) const
virtual

Returns the MC particle that caused the hit.

See Also
MCParticle

Implements EVENT::SimTrackerHit.

float IMPL::SimTrackerHitImpl::getPathLength ( ) const
virtual

The path length of the particle in the sensitive material that resulted in this hit.

This is only stored together with momentum, i.e. if LCIO::THBIT_MOMENTUM is set.

Implements EVENT::SimTrackerHit.

float IMPL::SimTrackerHitImpl::getTime ( ) const
virtual

Returns the time of the hit.

TO DO needs definition.

Implements EVENT::SimTrackerHit.

void IMPL::SimTrackerHitImpl::setCellID1 ( int  id1)

Sets the second cell id; Only store if the flag word (bit THBIT_ID1) of the collection is set.

Default is to store only cellid0.

void IMPL::SimTrackerHitImpl::setdEdx ( float  dEdX)

Sets dE/dx.

Deprecated:
See Also
setEDep()

References UTIL::LCWarning::printWarning(), and setEDep().


The documentation for this class was generated from the following files: