]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliKalmanTrack.h
Additional background suppression in the V0 finder (M.Ivanov)
[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>
304864ab 16#include "AliPID.h"
87594435 17
18class AliCluster;
19
20class AliKalmanTrack : public TObject {
21public:
e2afb3b6 22 AliKalmanTrack();
23 AliKalmanTrack(const AliKalmanTrack &t);
24
be9c5115 25 virtual ~AliKalmanTrack(){};
26 void SetLabel(Int_t lab) {fLab=lab;}
babd135a 27 void SetFakeRatio(Float_t ratio) {fFakeRatio=ratio;}
be9c5115 28
29 Bool_t IsSortable() const {return kTRUE;}
30 Int_t GetLabel() const {return fLab;}
babd135a 31 Float_t GetFakeRatio() const {return fFakeRatio;}
be9c5115 32 Double_t GetChi2() const {return fChi2;}
7f6ddf58 33 Double_t GetMass() const {return fMass;}
be9c5115 34 Int_t GetNumberOfClusters() const {return fN;}
e2afb3b6 35 virtual Int_t GetClusterIndex(Int_t) const { //reserved for AliTracker
36 Warning("GetClusterIndex(Int_t)","Method must be overloaded !\n");
be9c5115 37 return 0;
38 }
ae982df3 39 virtual Double_t GetPIDsignal() const {
40 Warning("GetPIDsignal()","Method must be overloaded !\n");
41 return 0.;
42 }
be9c5115 43
fc7be9e3 44 virtual Double_t GetDCA(const AliKalmanTrack *p,Double_t &xthis,Double_t &xp) const;
49a7a79a 45 virtual
fc7be9e3 46 Double_t PropagateToDCA(AliKalmanTrack *p, Double_t d=0., Double_t x0=0.);
49a7a79a 47 virtual Double_t GetAlpha() const {
48 Warning("GetAlpha()","Method must be overloaded !\n");
49 return 0.;
50 }
51 virtual Double_t GetSigmaY2() const {
52 Warning("GetSigmaY2()","Method must be overloaded !\n");
53 return 0.;
54 }
55 virtual Double_t GetSigmaZ2() const {
56 Warning("GetSigmaZ2()","Method must be overloaded !\n");
57 return 0.;
58 }
59
e2afb3b6 60 virtual Int_t Compare(const TObject *) const {return 0;}
be9c5115 61
e2afb3b6 62 virtual void GetExternalParameters(Double_t &/*xr*/, Double_t /*x*/[5]) const {}
63 virtual void GetExternalCovariance(Double_t /*cov*/[15]) const {}
be9c5115 64
e2afb3b6 65 virtual Double_t GetPredictedChi2(const AliCluster *) const {return 0.;}
9b859005 66 virtual Int_t
67 PropagateTo(Double_t /*xr*/, Double_t /*x0*/, Double_t /*rho*/) {return 0;}
8f29bd5c 68 virtual Int_t PropagateToVertex(Double_t /*d*/=0., Double_t /*x0*/=0.)
69 {return 0;}
9b859005 70 virtual Int_t
71 Update(const AliCluster*, Double_t /*chi2*/, UInt_t) {return 0;}
be9c5115 72
116cbefd 73 static void SetConvConst(Double_t cc) {fgConvConst=cc;}
e23730c7 74 static Double_t GetConvConst() {return fgConvConst;}
9b280d80 75
e1a65e92 76 static void SetMagneticField(Double_t f) {// f - Magnetic field in T
116cbefd 77 fgConvConst=100/0.299792458/f;
e1a65e92 78 }
116cbefd 79 Double_t GetMagneticField() const {return 100/0.299792458/fgConvConst;}
e1a65e92 80
49a7a79a 81 // Time integration (S.Radomski@gsi.de)
74f9526e 82 void StartTimeIntegral();
ae982df3 83 void SetIntegratedLength(Double_t l) {fIntegratedLength=l;}
84 void SetIntegratedTimes(const Double_t *times);
85
74f9526e 86 Bool_t IsStartedTimeIntegral() const {return fStartTimeIntegral;}
87 void AddTimeStep(Double_t length);
ae982df3 88 void GetIntegratedTimes(Double_t *times) const;
74f9526e 89 Double_t GetIntegratedTime(Int_t pdg) const;
90 Double_t GetIntegratedLength() const {return fIntegratedLength;}
91 void PrintTime() const;
4095d1ca 92
be9c5115 93protected:
94 void SetChi2(Double_t chi2) {fChi2=chi2;}
7f6ddf58 95 void SetMass(Double_t mass) {fMass=mass;}
be9c5115 96 void SetNumberOfClusters(Int_t n) {fN=n;}
97
87594435 98 Int_t fLab; // track label
babd135a 99 Float_t fFakeRatio; // fake ratio
87594435 100 Double_t fChi2; // total chi2 value for this track
7f6ddf58 101 Double_t fMass; // mass hypothesis
be9c5115 102 Int_t fN; // number of associated clusters
a0ff5a14 103 private:
116cbefd 104 static Double_t fgConvConst; //conversion constant cm -> 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
babd135a 111 ClassDef(AliKalmanTrack,3) // Reconstructed track
87594435 112};
113
114#endif
115
116