#include <KTrack.h>
Public Member Functions | |
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... | |
virtual std::ostream & | Print (std::ostream &out, bool doTitle=true) const |
Printout. More... | |
Private Attributes | |
std::shared_ptr< const Surface > | fSurf |
Track surface. More... | |
TrackVector | fVec |
Track state vector. More... | |
Surface::TrackDirection | fDir |
Track direction. More... | |
int | fPdgCode |
Pdg id. hypothesis. More... | |
trkf::KTrack::KTrack | ( | ) |
trkf::KTrack::KTrack | ( | const std::shared_ptr< const Surface > & | psurf | ) |
Constructor - specify surface only.
Constructor - specify surface only.
Arguments:
psurf - Surface pointer.
Definition at line 40 of file KTrack.cxx.
trkf::KTrack::KTrack | ( | std::shared_ptr< const Surface > | psurf, |
const TrackVector & | vec, | ||
Surface::TrackDirection | dir = Surface::UNKNOWN , |
||
int | pdg = 0 |
||
) |
Constructor - surface + track parameters.
Constructor - surface + track parameters.
Arguments:
psurf - Surface pointer. vec - Track state vector. dir - Track direction. pdg - Pdg code.
Definition at line 55 of file KTrack.cxx.
|
virtual |
Surface::TrackDirection trkf::KTrack::getDirection | ( | ) | const |
Track direction.
Track direction accessor. Track direction implied by track parameters has precedence over track direction attribute. If the surface pointer is null, return UNKNOWN.
Definition at line 73 of file KTrack.cxx.
void trkf::KTrack::getMomentum | ( | double | mom[3] | ) | const |
Get momentum vector of track.
Get momentum vector of track. Throw an exception if track is not valid.
Arguments:
mom - Momentum vector of track.
Definition at line 218 of file KTrack.cxx.
void trkf::KTrack::getPosition | ( | double | xyz[3] | ) | const |
Get position of track.
Get position of track. Throw an exception if track is not valid.
Arguments:
xyz - Position vector.
Definition at line 171 of file KTrack.cxx.
|
inline |
|
inline |
|
inline |
bool trkf::KTrack::isValid | ( | ) | const |
Test if track is valid.
Test if track is valid.
A default-constructed or partially-constructed track, is invalid by virtue of having an unknown propagation direction or a null surface pointer.
Tracks can become invaliddynamically for other reasons. This method also does the following checks: a) Check for invalid floating point values (inf and nan). b) Surface-dependent checks via virtual method Surface::isTrackValid.
Definition at line 91 of file KTrack.cxx.
double trkf::KTrack::Mass | ( | void | ) | const |
Based on pdg code.
Particle mass based on pdg code.
Definition at line 129 of file KTrack.cxx.
|
virtual |
Printout.
Reimplemented in trkf::KFitTrack, trkf::KETrack, trkf::KHitsTrack, and trkf::KHitTrack.
Definition at line 227 of file KTrack.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
double trkf::KTrack::XLatitude | ( | ) | const |
Get x-latitude.
Get x-latitude.
The x-latitude is the latitude defined with respect to the x-axis. The x-latitude is zero of the track is traveling parallel to the wire planes.
Definition at line 184 of file KTrack.cxx.
double trkf::KTrack::XLongitude | ( | ) | const |
Get x-longitude.
Get x-longitude.
The x-longitude is the longitude defined with respect to the y- and z-axes. The x-longitude is zero of the track is parallel to the z-axis in the yz-plane.
Definition at line 201 of file KTrack.cxx.
|
private |
|
private |
|
private |