51 void AddRecord(TVector3 x_, TVector3 v_, Double_t time_);
73 void GetRecord(Int_t i, TVector3 & x_, TVector3 & v_, Double_t & t_);
85 void GetInit(TVector3 & x_, TVector3 & v_, Double_t & t_);
98 void GetLast(TVector3 & x_, TVector3 & v_, Double_t & t_);
127 void GetDCA(
const TVector3 pos_, Double_t & DCA, Double_t & outtime, Bool_t verbose=
false, Bool_t interpolate=
true);
150 void GetDCA(
path* timepath, Double_t & DCA, Double_t & outtime, Bool_t verbose=
false, Bool_t interpolate=
true);
163 std::vector<TVector3>
pos;
164 std::vector<TVector3>
vel;
165 std::vector<Double_t>
t;
Compile-time limits and default tolerances (macros).
Time-ordered list of (position, velocity, time) samples of one particle.
Bool_t lengthChk(path *target)
True if target has the same number of records; otherwise prints a message on std::cerr and returns fa...
void GetInit(TVector3 &x_, TVector3 &v_, Double_t &t_)
First record as position (fm), velocity (c) and time (fm/c).
Double_t GetLastT()
Time of the last stored record (fm/c); 0 plus message if empty.
TVector3 GetRecordV(Int_t i)
Velocity of record i (c); same failure behaviour as GetRecordX().
std::vector< TVector3 > pos
positions (fm)
TVector3 GetRecordX(Int_t i)
Position of record i (fm).
path()
Create an empty path.
std::vector< TVector3 > vel
velocities (c)
std::vector< Double_t > t
times (fm/c)
Bool_t timeChk(path *target)
True if target has the same length and exactly equal times in every record; prints a message on std::...
Int_t GetRecordSize()
Number of stored records (size of the position vector).
void GetDCA(const TVector3 pos_, Double_t &DCA, Double_t &outtime, Bool_t verbose=false, Bool_t interpolate=true)
Distance of closest approach of this path to a fixed point.
TVector3 GetLastV()
Velocity of the last stored record (c); null vector plus message if empty.
void GetRecord(Int_t i, TVector3 &x_, TVector3 &v_, Double_t &t_)
Position, velocity and time of record i in one call.
TVector3 GetLastX()
Position of the last stored record (fm); null vector plus message if empty.
void GetLast(TVector3 &x_, TVector3 &v_, Double_t &t_)
Last stored record as position (fm), velocity (c) and time (fm/c).
Long64_t GetMaxNumber()
Number of stored time stamps (as a 64-bit integer); equals GetRecordSize().
TVector3 GetInitX()
Position of the first record (fm); null vector plus message if the path is empty.
void AddRecord(TVector3 x_, TVector3 v_, Double_t time_)
Append one record at the end.
~path()
Destructor: clears the records.
Double_t GetRecordT(Int_t i)
Time of record i (fm/c).
TVector3 GetInitV()
Velocity of the first record (c); null vector plus message if the path is empty.
Double_t GetInitT()
Time of the first record (fm/c); 0 plus message if the path is empty.