seed::TExampleTrack
class description - source file - inheritance tree
public:
seed::TExampleTrack TExampleTrack(const TLorentzVector& momentum = TLorentzVector(), const TVector3& pos = TVector3(), Float_t charge = 0, Double_t chisq = -1, Int_t nhits = -1)
seed::TExampleTrack TExampleTrack(const TLorentzVector& momentum, const TVector3& pos, const TVector3& pos_err, Float_t charge, Double_t chisq, Int_t nhits)
seed::TExampleTrack TExampleTrack(const seed::TExampleTrack&)
virtual void ~TExampleTrack()
static TClass* Class()
static Double_t Eta_from_theta(Double_t theta)
Float_t GetCharge() const
Double_t GetChiSq() const
Double_t GetLambda2D(const TVector3& refpoint = TVector3(0,0,0)) const
const TLorentzVector& GetMomentum() const
Int_t GetNhits() const
TVector3 GetPCA() const
const TVector3& GetPosition() const
const TVector3& GetPositionError() const
Double_t GetTanl() const
virtual TClass* IsA() const
void Set(const seed::TExampleTrack& track)
void Set(const TLorentzVector& lv, const TVector3& pos, const TVector3& pos_err, Float_t charge = 0, Double_t chisq = -1, Int_t nhits = -1)
void Set(const TVector3& pos, const TVector3& pos_err, Float_t charge = 0, Double_t chisq = -1, Int_t nhits = -1)
void SetPtTanlPhiE(Double_t pt, Double_t tanl, Double_t phi, Double_t E)
void SetPtTanlPhiM(Double_t pt, Double_t tanl, Double_t phi, Double_t M)
void SetTanl(Double_t tanl)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
static Double_t Tanl_from_theta(Double_t theta)
static Double_t Theta_from_eta(Double_t eta)
static Double_t Theta_from_tanl(Double_t tanl)
protected:
TVector3 fPos a point on the track
TVector3 fPosErr error on this point
Float_t fCharge the charge of the particle (0 is undetermined/uninitialized) (it's float, not int: hypothetically you can store "quark tracks")
Int_t fNhits number of hits on this track
Double_t fChisq track reconstruction chi2
See also
-
seed::TExampleParticle
A track is a TLorentzVector, which is the 4-momentum, plus a position on the
track.
Note that this is not the standard way of parametrizing a track in track
reconstruction software.
Author: Paul Balm <mailto:p.balm@nikhef.nl>
@(#) Feb 12, 2002
TExampleTrack(const TLorentzVector & momentum, const TVector3 & pos,
Float_t charge, Double_t chisq, Int_t nhits): TLorentzVector(momentum),
fPos(pos), fPosErr(),
fCharge(charge),
fNhits(nhits), fChisq(chisq)
Constructor initializing all member and base class variables, except error on the position.
TExampleTrack(const TLorentzVector & momentum, const TVector3 & pos, const TVector3 & pos_err,
Float_t charge, Double_t chisq, Int_t nhits): TLorentzVector(momentum),
fPos(pos), fPosErr(pos_err),
fCharge(charge),
fNhits(nhits), fChisq(chisq)
Constructor initializing all member and base class variables.
TVector3 GetPCA() const
Get the point (a TVector3) of closest approach to the beam axis.
Double_t GetLambda2D(const TVector3& refpoint) const
If you parametrize the track as a straight line:
point_on_track(lambda) = fPos + lambda*momentum
then this method will give you lambda at DCA of
this track in the xy-plane to refpoint.
Calculation:
lambda = ((refpoint-pos) dot momentum) /(|momentum|^2)
= vp dot momentum/ pT^2
Inline Functions
void Set(const seed::TExampleTrack& track)
void Set(const TLorentzVector& lv, const TVector3& pos, const TVector3& pos_err, Float_t charge = 0, Double_t chisq = -1, Int_t nhits = -1)
void SetPtTanlPhiE(Double_t pt, Double_t tanl, Double_t phi, Double_t E)
void SetPtTanlPhiM(Double_t pt, Double_t tanl, Double_t phi, Double_t M)
void Set(const TVector3& pos, const TVector3& pos_err, Float_t charge = 0, Double_t chisq = -1, Int_t nhits = -1)
void SetTanl(Double_t tanl)
const TVector3& GetPosition() const
const TVector3& GetPositionError() const
const TLorentzVector& GetMomentum() const
Double_t GetTanl() const
Float_t GetCharge() const
Double_t GetChiSq() const
Int_t GetNhits() const
Double_t Theta_from_tanl(Double_t tanl)
Double_t Tanl_from_theta(Double_t theta)
Double_t Eta_from_theta(Double_t theta)
Double_t Theta_from_eta(Double_t eta)
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
seed::TExampleTrack TExampleTrack(const seed::TExampleTrack&)
void ~TExampleTrack()
Author: Paul Balm
Last update: Feb 12, 2002
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.