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

Implementation of the generic tracker hit. More...

#include <IMPL/TrackerHitImpl.h>

Inheritance diagram for IMPL::TrackerHitImpl:
EVENT::TrackerHit IMPL::AccessChecked EVENT::LCObject lcrtrel::LCRTRelations IOIMPL::TrackerHitIOImpl

Public Member Functions

virtual ~TrackerHitImpl ()
 Destructor.
 
virtual int id () const
 Returns an object id for internal (debugging) use in LCIO.
 
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 RTHBIT_ID1) of the collection. More...
 
virtual const double * getPosition () const
 The hit position in [mm].
 
virtual const EVENT::FloatVecgetCovMatrix () const
 Covariance of the position (x,y,z)
 
virtual float getdEdx () const
 The dE/dx of the hit in [GeV/mm]. More...
 
virtual float getEDep () const
 The deposited energy of the hit [GeV].
 
virtual float getEDepError () const
 The error measured on EDep [GeV].
 
virtual float getTime () const
 The time of the hit in [ns]. More...
 
virtual int getType () const
 Type of raw data hit, either one of
LCIO::TPCHIT
LCIO::SIMTRACKERHIT
More...
 
virtual int getQuality () const
 The quality bit flag of the hit.
 
virtual const EVENT::LCObjectVecgetRawHits () const
 The raw data hits. More...
 
virtual EVENT::LCObjectVecrawHits ()
 Use to manipulate the raw hits.
 
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 RTHBIT_ID1) of the collection is set. More...
 
void setType (int type)
 
void setPosition (const double pos[3])
 
void setCovMatrix (const EVENT::FloatVec &cov)
 
void setCovMatrix (const float cov[TRKHITNCOVMATRIX])
 
void setdEdx (float dedx)
 
void setEDep (float e)
 
void setEDepError (float e)
 
void setTime (float t)
 
void setQuality (int quality)
 
void setQualityBit (int bit, bool val=true)
 
- Public Member Functions inherited from EVENT::TrackerHit
virtual ~TrackerHit ()
 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
 
int _type
 
double _pos [3]
 
EVENT::FloatVec _cov
 
float _EDep
 
float _EDepError
 
float _time
 
int _quality
 
EVENT::LCObjectVec _rawHits
 
- Protected Attributes inherited from IMPL::AccessChecked
bool _readOnly
 
int _id
 

Additional Inherited Members

- Public Types inherited from EVENT::TrackerHit
typedef TrackerHit 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 the generic tracker hit.

Author
gaede
Version
Id:
TrackerHitImpl.h,v 1.15 2010-06-17 12:29:00 engels Exp

Member Function Documentation

int IMPL::TrackerHitImpl::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 RTHBIT_ID1) of the collection.

Default is to store only cellid0.

Implements EVENT::TrackerHit.

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

The dE/dx of the hit in [GeV/mm].

Deprecated:
See Also
getEDep()

Implements EVENT::TrackerHit.

References UTIL::LCWarning::printWarning().

const EVENT::LCObjectVec & IMPL::TrackerHitImpl::getRawHits ( ) const
virtual

The raw data hits.

Check getType() to get actual data type.

Implements EVENT::TrackerHit.

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

The time of the hit in [ns].

Is this needed ?

Implements EVENT::TrackerHit.

int IMPL::TrackerHitImpl::getType ( ) const
virtual

Type of raw data hit, either one of
LCIO::TPCHIT
LCIO::SIMTRACKERHIT

Type of hit. Mapping of integer types to type names through collection parameters "TrackerHitTypeNames" and "TrackerHitTypeValues".

Implements EVENT::TrackerHit.

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

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

Default is to store only cellid0.


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