|
| virtual | ~Track () |
| | Destructor.
|
| |
| void | clear () |
| |
| void | setNhits (int nhits) |
| |
| int | getNhits () const |
| |
| std::optional< TrackState > | getTrackState (TrackStateType tstype) const |
| |
| void | setNoutliers (int nout) |
| |
| int | getNoutliers () const |
| |
| void | setNdf (int ndf) |
| |
| int | getNdf () const |
| |
| void | setNsharedHits (int nsh) |
| |
| int | getNsharedHits () const |
| |
| void | setChi2 (double chi2) |
| |
| double | getChi2 () const |
| |
| void | setTrackID (int trackid) |
| |
| int | getTrackID () const |
| |
| void | setTruthProb (double truthProb) |
| |
| double | getTruthProb () const |
| |
| void | setPdgID (int pdgID) |
| |
| int | getPdgID () const |
| |
| void | addDedxMeasurement (float path_length) |
| |
| std::vector< float > | getDedxMeasurements () const |
| |
| void | addMeasurementIndex (unsigned int measIdx) |
| |
| std::vector< unsigned int > | getMeasurementsIdxs () const |
| |
| void | addOutlierIndex (unsigned int measIdx) |
| |
| std::vector< unsigned int > | getOutlierIdxs () const |
| |
| void | addHoleIndex (unsigned int measIdx) |
| |
| std::vector< unsigned int > | getHoleIdxs () const |
| |
| void | addSharedIndex (unsigned int measIdx) |
| |
| std::vector< unsigned int > | getSharedIdxs () const |
| |
| void | setCharge (int q) |
| |
| double | getCharge () const |
| |
| void | setTime (double time) |
| |
| double | getTime () const |
| |
| void | setPerigeeParameters (const std::vector< double > &par) |
| |
| std::vector< double > | getPerigeeParameters () const |
| |
| void | setPerigeeCov (const std::vector< double > &cov) |
| |
| std::vector< double > | getPerigeeCov () const |
| |
| void | setPerigeeLocation (const std::vector< double > &perigee) |
| |
| void | setPerigeeLocation (const double &x, const double &y, const double &z) |
| |
| std::vector< double > | getPerigeeLocation () const |
| |
| double | getPerigeeX () const |
| |
| double | getPerigeeY () const |
| |
| double | getPerigeeZ () const |
| |
| double | getD0 () const |
| |
| double | getZ0 () const |
| |
| double | getPhi () const |
| |
| double | getTheta () const |
| |
| double | getQoP () const |
| |
| double | getT () const |
| |
| void | addTrackState (const ldmx::Track::TrackState &ts) |
| |
| std::vector< TrackState > | getTrackStates () const |
| |
| std::vector< double > | getMomentumAtTarget () const |
| | Returns the momentum (px, py, pz) in MeV in the LDMX global frame from the AtTarget TrackState.
|
| |
| std::vector< double > | getPositionAtTarget () const |
| | Returns the position (x, y, z) in mm in the LDMX global frame from the AtTarget TrackState.
|
| |
| std::vector< double > | getMomentum (TrackStateType tstype) const |
| | Returns the momentum (px, py, pz) in MeV in the LDMX global frame for the requested TrackState type.
|
| |
| std::vector< double > | getPosition (TrackStateType tstype) const |
| | Returns the position (x, y, z) in mm in the LDMX global frame for the requested TrackState type.
|
| |
| std::vector< double > | getCovariance (TrackStateType tstype) const |
| | Returns the 21-element upper-triangular covariance vector over (x, y, z, px, py, pz) in LDMX global coordinates for the requested TrackState type.
|
| |
Implementation of a track object.
This class encapsulates all the information of a particle trajectory in the tracker
Definition at line 53 of file Track.h.
| std::vector< double > ldmx::Track::getCovariance |
( |
TrackStateType | tstype | ) |
const |
|
inline |
Returns the 21-element upper-triangular covariance vector over (x, y, z, px, py, pz) in LDMX global coordinates for the requested TrackState type.
Units: mm^2 (pos-pos), mm*MeV (pos-mom), MeV^2 (mom-mom). Returns an empty vector if not available.
Definition at line 239 of file Track.h.
239 {
240 for (const auto& ts : track_states_)
241 if (ts.ts_type_ == tstype) return ts.pos_mom_cov_;
242 return {};
243 }