1 #ifndef IMPL_TRACKIMPL_H
2 #define IMPL_TRACKIMPL_H 1
5 #include "EVENT/Track.h"
6 #include "EVENT/TrackState.h"
7 #include "AccessChecked.h"
12 #define BIT_ISREFERENCEPOINTDCA 31
14 typedef std::map< std::string , EVENT::IntVec* > IndexMap ;
47 virtual int id()
const {
return simpleUID() ; }
70 virtual float getD0()
const ;
75 virtual float getPhi()
const ;
86 virtual float getZ0()
const ;
112 virtual float getChi2()
const ;
116 virtual int getNdf()
const ;
170 virtual void setTypeBit(
int index ,
bool val=
true) ;
172 virtual void setD0(
float d0 ) ;
173 virtual void setPhi(
float phi ) ;
174 virtual void setOmega(
float omega ) ;
175 virtual void setZ0(
float z0 ) ;
176 virtual void setTanLambda(
float tanLambda ) ;
177 virtual void setCovMatrix(
const float* cov ) ;
179 virtual void setReferencePoint(
const float* rPnt) ;
183 virtual void setChi2(
float chi2 ) ;
184 virtual void setNdf(
int ndf ) ;
185 virtual void setdEdx(
float dEdx ) ;
186 virtual void setdEdxError(
float dEdxError ) ;
196 virtual void setRadiusOfInnermostHit(
float r ) ;
206 virtual void setType(
int type ) ;
209 std::bitset<32> _type ;
227 float _radiusOfInnermostHit ;
virtual float getRadiusOfInnermostHit() const
The radius of the innermost hit that has been used in the track fit.
Definition: TrackImpl.cc:120
A generic tracker hit to be used by pattern recognition.
Definition: TrackerHit.h:26
virtual const EVENT::TrackState * getTrackState(int location) const
Returns track state for the given location - or NULL if not found.
Definition: TrackImpl.cc:156
std::vector< TrackerHit * > TrackerHitVec
Vector of (pointers to) TrackerHits.
Definition: TrackerHit.h:17
virtual const EVENT::FloatVec & getCovMatrix() const
Covariance matrix of the track parameters.
Definition: TrackImpl.cc:99
virtual const EVENT::TrackVec & getTracks() const
The tracks (as Track objects) that have been combined to this track.
Definition: TrackImpl.cc:131
virtual EVENT::IntVec & subdetectorHitNumbers()
Allows modification of the subdetectorHitNumbers, e.g.
Definition: TrackImpl.cc:372
Implementation of the LCIO track class.
Definition: TrackImpl.h:29
std::vector< Track * > TrackVec
Vector of (pointers to) Tracks.
Definition: Track.h:22
std::vector< float > FloatVec
Vector of floats.
Definition: LCIOSTLTypes.h:18
The LCIO TrackState class.
Definition: TrackState.h:26
virtual int getType() const
Type of track, i.e.
Definition: TrackImpl.cc:80
virtual float getOmega() const
Omega is the signed curvature of the track in [1/mm].
Definition: TrackImpl.cc:96
std::vector< TrackState * > TrackStateVec
Vector of (pointers to) TrackStates.
Definition: TrackState.h:17
virtual int getNdf() const
Number of degrees of freedom of the track fit.
Definition: TrackImpl.cc:115
virtual float getdEdx() const
dEdx of the track.
Definition: TrackImpl.cc:116
virtual const EVENT::IntVec & getSubdetectorHitNumbers() const
A vector that holds the number of hits in particular subdetectors.
Definition: TrackImpl.cc:124
TrackImpl()
Default constructor, initializes values to 0.
Definition: TrackImpl.cc:11
virtual float getChi2() const
True if the reference point is the point of closest approach.
Definition: TrackImpl.cc:114
virtual float getZ0() const
Impact paramter of the track in (r-z).
Definition: TrackImpl.cc:97
virtual int id() const
Returns an object id for internal (debugging) use in LCIO.
Definition: TrackImpl.h:47
The LCIO track class.
Definition: Track.h:33
virtual const EVENT::TrackerHitVec & getTrackerHits() const
Optionaly ( check/set flag(LCIO::TRBIT_HITS)==1) return the hits that have been used to create this t...
Definition: TrackImpl.cc:127
std::vector< int > IntVec
Vector of ints.
Definition: LCIOSTLTypes.h:22
virtual ~TrackImpl()
Destructor.
Definition: TrackImpl.cc:59
virtual float getTanLambda() const
Lambda is the dip angle of the track in r-z at the reference point.
Definition: TrackImpl.cc:98
Controls access to objects.
Definition: AccessChecked.h:17
virtual const EVENT::TrackState * getClosestTrackState(float x, float y, float z) const
Returns track state closest to the given point.
Definition: TrackImpl.cc:139
virtual const EVENT::TrackStateVec & getTrackStates() const
Returns track states associtated with this track.
Definition: TrackImpl.cc:135
virtual float getD0() const
Returns true if the corresponding bit in the type word is set.
Definition: TrackImpl.cc:94
virtual float getdEdxError() const
Error of dEdx.
Definition: TrackImpl.cc:117
virtual float getPhi() const
Phi of the track at reference point.
Definition: TrackImpl.cc:95
virtual const float * getReferencePoint() const
Reference point of the track parameters.
Definition: TrackImpl.cc:103