]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliKalmanTrack.h
Correct layer index for LayerSize() and LayerName() methods
[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
15#include <TObject.h>
c84a5e9e 16#include "AliLog.h"
304864ab 17#include "AliPID.h"
87594435 18
19class AliCluster;
20
21class AliKalmanTrack : public TObject {
22public:
e2afb3b6 23 AliKalmanTrack();
24 AliKalmanTrack(const AliKalmanTrack &t);
25
be9c5115 26 virtual ~AliKalmanTrack(){};
27 void SetLabel(Int_t lab) {fLab=lab;}
babd135a 28 void SetFakeRatio(Float_t ratio) {fFakeRatio=ratio;}
be9c5115 29
30 Bool_t IsSortable() const {return kTRUE;}
31 Int_t GetLabel() const {return fLab;}
babd135a 32 Float_t GetFakeRatio() const {return fFakeRatio;}
be9c5115 33 Double_t GetChi2() const {return fChi2;}
7f6ddf58 34 Double_t GetMass() const {return fMass;}
be9c5115 35 Int_t GetNumberOfClusters() const {return fN;}
e2afb3b6 36 virtual Int_t GetClusterIndex(Int_t) const { //reserved for AliTracker
c84a5e9e 37 AliWarning("Method must be overloaded !\n");
be9c5115 38 return 0;
39 }
ae982df3 40 virtual Double_t GetPIDsignal() const {
c84a5e9e 41 AliWarning("Method must be overloaded !\n");
ae982df3 42 return 0.;
43 }
be9c5115 44
fc7be9e3 45 virtual Double_t GetDCA(const AliKalmanTrack *p,Double_t &xthis,Double_t &xp) const;
49a7a79a 46 virtual
fc7be9e3 47 Double_t PropagateToDCA(AliKalmanTrack *p, Double_t d=0., Double_t x0=0.);
49a7a79a 48 virtual Double_t GetAlpha() const {
c84a5e9e 49 AliWarning("Method must be overloaded !\n");
49a7a79a 50 return 0.;
51 }
52 virtual Double_t GetSigmaY2() const {
c84a5e9e 53 AliWarning("Method must be overloaded !\n");
49a7a79a 54 return 0.;
55 }
56 virtual Double_t GetSigmaZ2() const {
c84a5e9e 57 AliWarning("Method must be overloaded !\n");
49a7a79a 58 return 0.;
59 }
60
e2afb3b6 61 virtual Int_t Compare(const TObject *) const {return 0;}
be9c5115 62
c84a5e9e 63 virtual void GetExternalParameters(Double_t&/*xr*/,Double_t/*x*/[5]) const=0;
64 virtual void GetExternalCovariance(Double_t /*cov*/[15]) const = 0;
be9c5115 65
c84a5e9e 66 virtual Double_t GetPredictedChi2(const AliCluster *) const = 0;
67 virtual Int_t PropagateTo(Double_t/*xr*/,Double_t/*x0*/,Double_t/*rho*/) = 0;
68 //virtual Int_t PropagateToVertex(Double_t /*d*/=0., Double_t /*x0*/=0.) = 0;
69 virtual Int_t Update(const AliCluster*, Double_t /*chi2*/, UInt_t) = 0;
be9c5115 70
7d0f8548 71 //static Double_t GetConvConst();
4557b520 72 static Double_t MeanMaterialBudget(Double_t *start, Double_t *end, Double_t *mparam);
c84a5e9e 73
49a7a79a 74 // Time integration (S.Radomski@gsi.de)
74f9526e 75 void StartTimeIntegral();
ae982df3 76 void SetIntegratedLength(Double_t l) {fIntegratedLength=l;}
77 void SetIntegratedTimes(const Double_t *times);
78
74f9526e 79 Bool_t IsStartedTimeIntegral() const {return fStartTimeIntegral;}
80 void AddTimeStep(Double_t length);
ae982df3 81 void GetIntegratedTimes(Double_t *times) const;
74f9526e 82 Double_t GetIntegratedTime(Int_t pdg) const;
83 Double_t GetIntegratedLength() const {return fIntegratedLength;}
7d0f8548 84 virtual void GetXYZ(Float_t r[3]) const = 0;
85
86 static Double_t GetConvConst();
eb9891bc 87 void SetNumberOfClusters(Int_t n) {fN=n;}
be9c5115 88protected:
c84a5e9e 89 void SaveLocalConvConst();
7d0f8548 90 Double_t GetLocalConvConst() const {return fLocalConvConst;}
c84a5e9e 91
92 void External2Helix(Double_t helix[6]) const;
93
be9c5115 94 void SetChi2(Double_t chi2) {fChi2=chi2;}
7f6ddf58 95 void SetMass(Double_t mass) {fMass=mass;}
be9c5115 96
87594435 97 Int_t fLab; // track label
babd135a 98 Float_t fFakeRatio; // fake ratio
87594435 99 Double_t fChi2; // total chi2 value for this track
7f6ddf58 100 Double_t fMass; // mass hypothesis
be9c5115 101 Int_t fN; // number of associated clusters
c84a5e9e 102
103private:
c84a5e9e 104 Double_t fLocalConvConst; //local conversion "curvature(1/cm) -> pt(GeV/c)"
9b280d80 105
49a7a79a 106 // variables for time integration (S.Radomski@gsi.de)
74f9526e 107 Bool_t fStartTimeIntegral; // indicator wether integrate time
304864ab 108 Double_t fIntegratedTime[AliPID::kSPECIES]; // integrated time
9c75d176 109 Double_t fIntegratedLength; // integrated length
74f9526e 110
7d0f8548 111 ClassDef(AliKalmanTrack,5) // Reconstructed track
87594435 112};
113
114#endif
115
116