#include <KETrack.h>
Public Member Functions | |
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... | |
virtual std::ostream & | Print (std::ostream &out, bool doTitle=true) const |
Printout. 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 | |
TrackError | fErr |
Track error matrix. More... | |
trkf::KETrack::KETrack | ( | ) |
trkf::KETrack::KETrack | ( | const std::shared_ptr< const Surface > & | psurf | ) |
Constructor - specify surface only.
Constructor - specify surface only.
Arguments:
psurf - Surface pointer.
Definition at line 26 of file KETrack.cxx.
trkf::KETrack::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.
Constructor - surface + track parameters + error matrix.
Arguments:
psurf - Surface pointer. vec - Track state vector. err - Track error matrix. dir - Track direction. pdg - Pdg code.
Definition at line 38 of file KETrack.cxx.
trkf::KETrack::KETrack | ( | const KTrack & | trk, |
const TrackError & | err | ||
) |
Constructor - KTrack + error matrix.
Constructor - KTrack + error matrix.
Arguments:
trk - KTrack. err - Track error matrix.
Definition at line 53 of file KETrack.cxx.
|
virtual |
std::optional< double > trkf::KETrack::combineTrack | ( | const KETrack & | tre | ) |
Combine two tracks.
Combine two tracks.
Arguments:
tre - Another track.
Returns: Chisquare + success flag.
This method updates the current track to be the weighted average of itself and another track. The chisquare of the combination is returned as the result value. The combination can fail because the sum of the two error matrices is singular, in which case the success flag embedded in the return value is false.
Definition at line 89 of file KETrack.cxx.
|
inline |
|
inline |
double trkf::KETrack::PointingError | ( | ) | const |
Pointing error (radians).
Calculate track pointing error (sigma, in radians).
This method calculates a single pointing error (sigma, in radians) based on the track parameters and error matrix. The actual calculation is done by the similarly names method of the surface class, since this class doesn't know what the track parameters mean.
Definition at line 67 of file KETrack.cxx.
|
virtual |
Printout.
Reimplemented from trkf::KTrack.
Reimplemented in trkf::KFitTrack, trkf::KHitsTrack, and trkf::KHitTrack.
Definition at line 182 of file KETrack.cxx.
|
inline |
|
private |