]>
Commit | Line | Data |
---|---|---|
d88f97cc | 1 | #ifndef ALITRACK_H |
2 | #define ALITRACK_H | |
959fbac5 | 3 | |
3da30618 | 4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
f531a546 | 7 | // $Id$ |
3da30618 | 8 | |
959fbac5 | 9 | |
d88f97cc | 10 | #include "TObject.h" |
11 | #include "TObjArray.h" | |
f531a546 | 12 | #include "TArrayD.h" |
d88f97cc | 13 | |
959fbac5 | 14 | #include "AliSignal.h" |
d88f97cc | 15 | #include "AliBoost.h" |
959fbac5 | 16 | #include "AliPosition.h" |
d88f97cc | 17 | |
18 | class AliTrack : public TObject,public Ali4Vector | |
19 | { | |
20 | public: | |
21 | AliTrack(); // Default constructor | |
22 | ~AliTrack(); // Destructor | |
23 | void Reset(); // Reset all values to 0 | |
24 | void Set4Momentum(Ali4Vector& p); // Set track 4-momentum | |
25 | void Set3Momentum(Ali3Vector& p); // Set track 3-momentum | |
959fbac5 | 26 | void SetMass(Double_t m,Double_t dm=0); // Set particle mass and error |
f531a546 | 27 | void SetMass(); // Set mass and error to mass hypothesis with highest prob. |
d88f97cc | 28 | void SetCharge(Float_t q); // Set particle charge |
29 | void Info(TString f="car"); // Print track information for coord. frame f | |
30 | void List(TString f="car"); // Print track and decay level 1 information for coord. frame f | |
31 | void ListAll(TString f="car"); // Print track and all decay level information for coord. frame f | |
32 | Ali3Vector Get3Momentum(); // Provide track 3-momentum | |
33 | Double_t GetMomentum(); // Provide value of track 3-momentum | |
34 | Double_t GetMass(); // Provide particle mass | |
35 | Float_t GetCharge(); // Provide particle charge | |
36 | Double_t GetEnergy(); // Provide particle total energy | |
37 | void Decay(Double_t m1,Double_t m2,Double_t thcms,Double_t phicms); // Perform 2-body decay | |
38 | Int_t GetNdecay(); // Provide number of decay products | |
39 | AliTrack* GetDecayTrack(Int_t j); // Access to decay produced track number j | |
959fbac5 | 40 | void AddSignal(AliSignal& s); // Relate an AliSignal to this track |
41 | void RemoveSignal(AliSignal& s); // Remove related AliSignal from this track | |
42 | Int_t GetNsignals(); // Provide number of related AliSignals | |
43 | AliSignal* GetSignal(Int_t j); // Access to the related AliSignal number j | |
44 | void SetBeginPoint(AliPosition p);// Set the track begin-point | |
45 | AliPosition GetBeginPoint(); // Provide the track begin-point | |
46 | void SetEndPoint(AliPosition p); // Set the track end-point | |
47 | AliPosition GetEndPoint(); // Provide the track end-point | |
f531a546 | 48 | void AddMassHypothesis(Double_t prob,Double_t m,Double_t dm=0); // Add mass hypothesis data |
49 | Int_t GetNMassHypotheses(); // Provide number of mass hypotheses | |
50 | Double_t GetMassHypothesis(Int_t j=0); // Provide mass of jth hypothesis | |
51 | Double_t GetMassHypothesisProb(Int_t j=0); // Provide prob. of jth mass hypothesis | |
52 | void RemoveMassHypothesis(Int_t j); // Remove the jth mass hypothesis | |
d88f97cc | 53 | |
54 | protected: | |
959fbac5 | 55 | Float_t fQ; // The charge of the particle |
56 | Int_t fNdec; // The number of decay products | |
57 | TObjArray* fDecays; // The array of decay produced tracks | |
58 | Int_t fNsig; // The number of related AliSignals | |
59 | TObjArray* fSignals; // The array of related AliSignals | |
60 | AliPosition fBegin; // The begin-point of the track | |
61 | AliPosition fEnd; // The end-point of the track | |
f531a546 | 62 | Int_t fNmasses; // The number of mass hypotheses |
63 | TArrayD* fMasses; // The various mass hypotheses | |
64 | TArrayD* fDmasses; // The errors on the various masses | |
65 | TArrayD* fPmasses; // The probabilities of the various mass hypotheses | |
d88f97cc | 66 | |
67 | private: | |
68 | void Dump(AliTrack* t,Int_t n,TString f); // Recursively print all decay levels | |
69 | ||
959fbac5 | 70 | ClassDef(AliTrack,1) // Handling of the attributes of a reconstructed particle track. |
d88f97cc | 71 | }; |
72 | #endif |