Removing the dependence on AliCluster3D
[u/mrichter/AliRoot.git] / STEER / AliKalmanTrack.h
CommitLineData
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
19class AliCluster;
39d4ae58 20class AliCluster3D;
87594435 21
6c94f330 22class AliKalmanTrack : public AliExternalTrackParam {
87594435 23public:
e2afb3b6 24 AliKalmanTrack();
25 AliKalmanTrack(const AliKalmanTrack &t);
be9c5115 26 virtual ~AliKalmanTrack(){};
6c94f330 27
be9c5115 28 void SetLabel(Int_t lab) {fLab=lab;}
6c94f330 29
30 virtual Double_t GetPredictedChi2(const AliCluster *c) const = 0;
31 virtual Bool_t PropagateTo(Double_t xr, Double_t x0, Double_t rho) = 0;
32 virtual Bool_t Update(const AliCluster* c, Double_t chi2, Int_t index) = 0;
be9c5115 33
34 Bool_t IsSortable() const {return kTRUE;}
35 Int_t GetLabel() const {return fLab;}
36 Double_t GetChi2() const {return fChi2;}
7f6ddf58 37 Double_t GetMass() const {return fMass;}
be9c5115 38 Int_t GetNumberOfClusters() const {return fN;}
e2afb3b6 39 virtual Int_t GetClusterIndex(Int_t) const { //reserved for AliTracker
c84a5e9e 40 AliWarning("Method must be overloaded !\n");
be9c5115 41 return 0;
42 }
ae982df3 43 virtual Double_t GetPIDsignal() const {
c84a5e9e 44 AliWarning("Method must be overloaded !\n");
ae982df3 45 return 0.;
46 }
be9c5115 47
e2afb3b6 48 virtual Int_t Compare(const TObject *) const {return 0;}
be9c5115 49
6c94f330 50 void GetExternalParameters(Double_t &xr,Double_t p[5]) const {
51 xr=GetX();
52 for (Int_t i=0; i<5; i++) p[i]=GetParameter()[i];
53 }
54 void GetExternalCovariance(Double_t cov[15]) const {
55 for (Int_t i=0; i<15; i++) cov[i]=GetCovariance()[i];
56 }
c7bafca9 57
6c94f330 58 static
59 Double_t MeanMaterialBudget(Double_t *start,Double_t *end,Double_t *mparam);
be9c5115 60
49a7a79a 61 // Time integration (S.Radomski@gsi.de)
6c94f330 62 void StartTimeIntegral();
ae982df3 63 void SetIntegratedLength(Double_t l) {fIntegratedLength=l;}
64 void SetIntegratedTimes(const Double_t *times);
65
74f9526e 66 Bool_t IsStartedTimeIntegral() const {return fStartTimeIntegral;}
6c94f330 67 void AddTimeStep(Double_t length);
ae982df3 68 void GetIntegratedTimes(Double_t *times) const;
74f9526e 69 Double_t GetIntegratedTime(Int_t pdg) const;
70 Double_t GetIntegratedLength() const {return fIntegratedLength;}
7d0f8548 71
eb9891bc 72 void SetNumberOfClusters(Int_t n) {fN=n;}
c84a5e9e 73
6c94f330 74 void SetFakeRatio(Float_t ratio) {fFakeRatio=ratio;}
75 Float_t GetFakeRatio() const {return fFakeRatio;}
b9671574 76 void SetMass(Double_t mass) {fMass=mass;}
c84a5e9e 77
6c94f330 78protected:
be9c5115 79 void SetChi2(Double_t chi2) {fChi2=chi2;}
be9c5115 80
87594435 81 Int_t fLab; // track label
babd135a 82 Float_t fFakeRatio; // fake ratio
87594435 83 Double_t fChi2; // total chi2 value for this track
7f6ddf58 84 Double_t fMass; // mass hypothesis
be9c5115 85 Int_t fN; // number of associated clusters
c84a5e9e 86
87private:
49a7a79a 88 // variables for time integration (S.Radomski@gsi.de)
74f9526e 89 Bool_t fStartTimeIntegral; // indicator wether integrate time
304864ab 90 Double_t fIntegratedTime[AliPID::kSPECIES]; // integrated time
9c75d176 91 Double_t fIntegratedLength; // integrated length
74f9526e 92
6c94f330 93 ClassDef(AliKalmanTrack,6) // Reconstructed track
87594435 94};
95
96#endif
97
98