2 #ifndef IMPL_TRACKERHITIMPL_H
3 #define IMPL_TRACKERHITIMPL_H 1
7 #include "EVENT/TrackerHit.h"
8 #include "IMPL/AccessChecked.h"
11 #define TRKHITNCOVMATRIX 6
31 virtual int id()
const {
return simpleUID() ; }
59 virtual float getEDep()
const {
return _EDep ; }
108 void setType(
int type) ;
109 void setPosition(
const double pos[3]) ;
111 void setCovMatrix(
const float cov[TRKHITNCOVMATRIX] );
112 void setdEdx(
float dedx ) ;
113 void setEDep(
float e ) ;
114 void setEDepError(
float e ) ;
115 void setTime(
float t ) ;
116 void setQuality(
int quality ) ;
117 void setQualityBit(
int bit ,
bool val=
true ) ;
A generic tracker hit to be used by pattern recognition.
Definition: TrackerHit.h:26
virtual int getCellID1() const
Same name as in CalorimeterHit, even though there are no 'cells' in this case 0 if information is not...
Definition: TrackerHitImpl.cc:37
virtual int getQuality() const
The quality bit flag of the hit.
Definition: TrackerHitImpl.h:83
virtual const double * getPosition() const
The hit position in [mm].
Definition: TrackerHitImpl.cc:41
std::vector< LCObject * > LCObjectVec
Vector of (pointers to) LCObjects.
Definition: LCObject.h:17
virtual int getType() const
Type of raw data hit, either one of LCIO::TPCHIT LCIO::SIMTRACKERHIT
Definition: TrackerHitImpl.cc:78
virtual const EVENT::FloatVec & getCovMatrix() const
Covariance of the position (x,y,z)
Definition: TrackerHitImpl.cc:43
std::vector< float > FloatVec
Vector of floats.
Definition: LCIOSTLTypes.h:18
virtual float getTime() const
The time of the hit in [ns].
Definition: TrackerHitImpl.cc:56
void setCellID1(int id1)
Sets the second cell id; Only store if the flag word (bit RTHBIT_ID1) of the collection is set...
Definition: TrackerHitImpl.cc:87
virtual float getdEdx() const
The dE/dx of the hit in [GeV/mm].
Definition: TrackerHitImpl.cc:48
virtual ~TrackerHitImpl()
Destructor.
Definition: TrackerHitImpl.cc:29
virtual EVENT::LCObjectVec & rawHits()
Use to manipulate the raw hits.
Definition: TrackerHitImpl.cc:63
void setCellID0(int id0)
Sets the first cell id;.
Definition: TrackerHitImpl.cc:82
virtual const EVENT::LCObjectVec & getRawHits() const
The raw data hits.
Definition: TrackerHitImpl.cc:59
Implementation of the generic tracker hit.
Definition: TrackerHitImpl.h:21
virtual float getEDep() const
The deposited energy of the hit [GeV].
Definition: TrackerHitImpl.h:59
virtual int getCellID0() const
Same name as in CalorimeterHit, even though there are no 'cells' in this case.
Definition: TrackerHitImpl.cc:33
virtual int id() const
Returns an object id for internal (debugging) use in LCIO.
Definition: TrackerHitImpl.h:31
virtual float getEDepError() const
The error measured on EDep [GeV].
Definition: TrackerHitImpl.h:63
Controls access to objects.
Definition: AccessChecked.h:17