#include <KHitsTrack.h>
Public Member Functions | |
KHitsTrack () | |
Default constructor. More... | |
KHitsTrack (const KFitTrack &trf) | |
Initializing constructor - KFitTrack. More... | |
KHitsTrack (const KETrack &tre) | |
Initializing constructor - KETrack. More... | |
virtual | ~KHitsTrack () |
Destructor. More... | |
const std::vector < std::shared_ptr< const KHitBase > > & | getHits () |
Measurement collection. More... | |
void | addHit (const std::shared_ptr< const KHitBase > &hit) |
Add a measurement. More... | |
virtual std::ostream & | Print (std::ostream &out, bool doTitle=true) const |
Printout. More... | |
Public Member Functions inherited from trkf::KFitTrack | |
KFitTrack () | |
Default constructor. More... | |
KFitTrack (const KETrack &tre, double s=0., double chisq=0., FitStatus stat=INVALID) | |
Initializing constructor. More... | |
virtual | ~KFitTrack () |
Destructor. More... | |
double | getPath () const |
Propagation distance. More... | |
double | getChisq () const |
Fit chisquare. More... | |
FitStatus | getStat () const |
Fit status. More... | |
void | setPath (double path) |
Set propagation distance. More... | |
void | setChisq (double chisq) |
Set chisquare. More... | |
void | setStat (FitStatus stat) |
Set fit status. More... | |
bool | combineFit (const KFitTrack &trf) |
Combine two tracks. More... | |
Public Member Functions inherited from trkf::KETrack | |
KETrack () | |
Default constructor. More... | |
KETrack (const std::shared_ptr< const Surface > &psurf) | |
Constructor - specify surface only. More... | |
KETrack (const std::shared_ptr< const Surface > &psurf, const TrackVector &vec, const TrackError &err, Surface::TrackDirection dir=Surface::UNKNOWN, int pdg=0) | |
Constructor - surface + track parameters + error matrix. More... | |
KETrack (const KTrack &trk, const TrackError &err) | |
Constructor - KTrack + error matrix. More... | |
virtual | ~KETrack () |
Destructor. More... | |
const TrackError & | getError () const |
Track error matrix. More... | |
double | PointingError () const |
Pointing error (radians). More... | |
TrackError & | getError () |
Modifiable error matrix. More... | |
void | setError (const TrackError &err) |
Set error matrix. More... | |
std::optional< double > | combineTrack (const KETrack &tre) |
Combine two tracks. More... | |
Public Member Functions inherited from trkf::KTrack | |
KTrack () | |
Enum. More... | |
KTrack (const std::shared_ptr< const Surface > &psurf) | |
Constructor - specify surface only. More... | |
KTrack (std::shared_ptr< const Surface > psurf, const TrackVector &vec, Surface::TrackDirection dir=Surface::UNKNOWN, int pdg=0) | |
Constructor - surface + track parameters. More... | |
virtual | ~KTrack () |
Destructor. More... | |
const std::shared_ptr< const Surface > & | getSurface () const |
Surface. More... | |
const TrackVector & | getVector () const |
Track state vector. More... | |
Surface::TrackDirection | getDirection () const |
Track direction. More... | |
int | PdgCode () const |
Pdg code. More... | |
double | Mass () const |
Based on pdg code. More... | |
TrackVector & | getVector () |
Modifiable state vector. More... | |
void | setSurface (const std::shared_ptr< const Surface > &psurf) |
Set surface. More... | |
void | setVector (const TrackVector &vec) |
Set state vector. More... | |
void | setDirection (Surface::TrackDirection dir) |
Set direction. More... | |
void | setPdgCode (int pdg) |
Set pdg code. More... | |
bool | isValid () const |
Test if track is valid. More... | |
void | getPosition (double xyz[3]) const |
Get position of track. More... | |
void | getMomentum (double mom[3]) const |
Get momentum vector of track. More... | |
double | XLatitude () const |
Get x-latitude. More... | |
double | XLongitude () const |
Get x-longitude. More... | |
Private Attributes | |
std::vector< std::shared_ptr < const KHitBase > > | fHits |
Measurement collection. More... | |
Additional Inherited Members | |
Public Types inherited from trkf::KFitTrack | |
enum | FitStatus { INVALID, UNKNOWN, FORWARD, FORWARD_PREDICTED, BACKWARD, BACKWARD_PREDICTED, OPTIMAL, OPTIMAL_PREDICTED } |
Fit status enum. More... | |
Definition at line 35 of file KHitsTrack.h.
trkf::KHitsTrack::KHitsTrack | ( | ) |
trkf::KHitsTrack::KHitsTrack | ( | const KFitTrack & | trf | ) |
Initializing constructor - KFitTrack.
Initializing constructor - KFitTrack.
Arguments:
trf - KFitTrack.
Definition at line 25 of file KHitsTrack.cxx.
trkf::KHitsTrack::KHitsTrack | ( | const KETrack & | tre | ) |
Initializing constructor - KETrack.
Initializing constructor - KETrack.
Arguments:
tre - KETrack.
Definition at line 35 of file KHitsTrack.cxx.
|
virtual |
|
inline |
Add a measurement.
Definition at line 59 of file KHitsTrack.h.
|
inline |
Measurement collection.
Definition at line 54 of file KHitsTrack.h.
|
virtual |
Printout.
Reimplemented from trkf::KFitTrack.
Definition at line 44 of file KHitsTrack.cxx.
|
private |
Measurement collection.
Definition at line 69 of file KHitsTrack.h.