]>
Commit | Line | Data |
---|---|---|
87594435 | 1 | #ifndef ALIKALMANTRACK_H |
2 | #define ALIKALMANTRACK_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
fb17acd4 | 7 | /* $Id$ */ |
8 | ||
87594435 | 9 | //------------------------------------------------------------------------- |
10 | // Class AliKalmanTrack | |
9b859005 | 11 | // fixed the interface for the derived reconstructed track classes |
12 | // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch | |
87594435 | 13 | //------------------------------------------------------------------------- |
14 | ||
6c94f330 | 15 | #include "AliExternalTrackParam.h" |
c84a5e9e | 16 | #include "AliLog.h" |
304864ab | 17 | #include "AliPID.h" |
87594435 | 18 | |
19 | class AliCluster; | |
20 | ||
6c94f330 | 21 | class AliKalmanTrack : public AliExternalTrackParam { |
87594435 | 22 | public: |
e2afb3b6 | 23 | AliKalmanTrack(); |
24 | AliKalmanTrack(const AliKalmanTrack &t); | |
be9c5115 | 25 | virtual ~AliKalmanTrack(){}; |
316c6cd9 | 26 | AliKalmanTrack& operator=(const AliKalmanTrack &o); |
be9c5115 | 27 | void SetLabel(Int_t lab) {fLab=lab;} |
6c94f330 | 28 | |
29 | virtual Double_t GetPredictedChi2(const AliCluster *c) const = 0; | |
30 | virtual Bool_t PropagateTo(Double_t xr, Double_t x0, Double_t rho) = 0; | |
31 | virtual Bool_t Update(const AliCluster* c, Double_t chi2, Int_t index) = 0; | |
be9c5115 | 32 | |
33 | Bool_t IsSortable() const {return kTRUE;} | |
34 | Int_t GetLabel() const {return fLab;} | |
35 | Double_t GetChi2() const {return fChi2;} | |
7f6ddf58 | 36 | Double_t GetMass() const {return fMass;} |
be9c5115 | 37 | Int_t GetNumberOfClusters() const {return fN;} |
e2afb3b6 | 38 | virtual Int_t GetClusterIndex(Int_t) const { //reserved for AliTracker |
c84a5e9e | 39 | AliWarning("Method must be overloaded !\n"); |
be9c5115 | 40 | return 0; |
41 | } | |
ae982df3 | 42 | virtual Double_t GetPIDsignal() const { |
c84a5e9e | 43 | AliWarning("Method must be overloaded !\n"); |
ae982df3 | 44 | return 0.; |
45 | } | |
be9c5115 | 46 | |
e2afb3b6 | 47 | virtual Int_t Compare(const TObject *) const {return 0;} |
be9c5115 | 48 | |
6c94f330 | 49 | void GetExternalParameters(Double_t &xr,Double_t p[5]) const { |
50 | xr=GetX(); | |
51 | for (Int_t i=0; i<5; i++) p[i]=GetParameter()[i]; | |
52 | } | |
53 | void GetExternalCovariance(Double_t cov[15]) const { | |
54 | for (Int_t i=0; i<15; i++) cov[i]=GetCovariance()[i]; | |
55 | } | |
c7bafca9 | 56 | |
49a7a79a | 57 | // Time integration (S.Radomski@gsi.de) |
6c94f330 | 58 | void StartTimeIntegral(); |
ae982df3 | 59 | void SetIntegratedLength(Double_t l) {fIntegratedLength=l;} |
60 | void SetIntegratedTimes(const Double_t *times); | |
61 | ||
74f9526e | 62 | Bool_t IsStartedTimeIntegral() const {return fStartTimeIntegral;} |
6c94f330 | 63 | void AddTimeStep(Double_t length); |
ae982df3 | 64 | void GetIntegratedTimes(Double_t *times) const; |
74f9526e | 65 | Double_t GetIntegratedTime(Int_t pdg) const; |
66 | Double_t GetIntegratedLength() const {return fIntegratedLength;} | |
7d0f8548 | 67 | |
eb9891bc | 68 | void SetNumberOfClusters(Int_t n) {fN=n;} |
c84a5e9e | 69 | |
6c94f330 | 70 | void SetFakeRatio(Float_t ratio) {fFakeRatio=ratio;} |
71 | Float_t GetFakeRatio() const {return fFakeRatio;} | |
b9671574 | 72 | void SetMass(Double_t mass) {fMass=mass;} |
c84a5e9e | 73 | |
6c94f330 | 74 | protected: |
be9c5115 | 75 | void SetChi2(Double_t chi2) {fChi2=chi2;} |
be9c5115 | 76 | |
562dd0b4 | 77 | Double32_t fFakeRatio; // fake ratio |
78 | Double32_t fChi2; // total chi2 value for this track | |
79 | Double32_t fMass; // mass hypothesis | |
87594435 | 80 | Int_t fLab; // track label |
be9c5115 | 81 | Int_t fN; // number of associated clusters |
c84a5e9e | 82 | |
83 | private: | |
74f9526e | 84 | Bool_t fStartTimeIntegral; // indicator wether integrate time |
562dd0b4 | 85 | // variables for time integration (S.Radomski@gsi.de) |
86 | Double32_t fIntegratedTime[AliPID::kSPECIES]; // integrated time | |
87 | Double32_t fIntegratedLength; // integrated length | |
74f9526e | 88 | |
562dd0b4 | 89 | ClassDef(AliKalmanTrack,7) // Reconstructed track |
87594435 | 90 | }; |
91 | ||
92 | #endif | |
93 | ||
94 |