Load EVGEN before external generators.
[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
11//
12// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
13//-------------------------------------------------------------------------
14
15#include <TObject.h>
16
17class AliCluster;
18
19class AliKalmanTrack : public TObject {
20public:
e2afb3b6 21 AliKalmanTrack();
22 AliKalmanTrack(const AliKalmanTrack &t);
23
be9c5115 24 virtual ~AliKalmanTrack(){};
25 void SetLabel(Int_t lab) {fLab=lab;}
26
27 Bool_t IsSortable() const {return kTRUE;}
28 Int_t GetLabel() const {return fLab;}
29 Double_t GetChi2() const {return fChi2;}
7f6ddf58 30 Double_t GetMass() const {return fMass;}
be9c5115 31 Int_t GetNumberOfClusters() const {return fN;}
e2afb3b6 32 virtual Int_t GetClusterIndex(Int_t) const { //reserved for AliTracker
33 Warning("GetClusterIndex(Int_t)","Method must be overloaded !\n");
be9c5115 34 return 0;
35 }
36
49a7a79a 37 virtual Double_t GetDCA(const AliKalmanTrack *,Double_t &,Double_t &) const;
38 virtual
39 Double_t PropagateToDCA(AliKalmanTrack *, Double_t d=0., Double_t x0=0.);
40 virtual Double_t GetAlpha() const {
41 Warning("GetAlpha()","Method must be overloaded !\n");
42 return 0.;
43 }
44 virtual Double_t GetSigmaY2() const {
45 Warning("GetSigmaY2()","Method must be overloaded !\n");
46 return 0.;
47 }
48 virtual Double_t GetSigmaZ2() const {
49 Warning("GetSigmaZ2()","Method must be overloaded !\n");
50 return 0.;
51 }
52
e2afb3b6 53 virtual Int_t Compare(const TObject *) const {return 0;}
be9c5115 54
e2afb3b6 55 virtual void GetExternalParameters(Double_t &/*xr*/, Double_t /*x*/[5]) const {}
56 virtual void GetExternalCovariance(Double_t /*cov*/[15]) const {}
be9c5115 57
e2afb3b6 58 virtual Double_t GetPredictedChi2(const AliCluster *) const {return 0.;}
be9c5115 59 virtual
e2afb3b6 60 Int_t PropagateTo(Double_t /*xr*/, Double_t /*x0*/, Double_t /*rho*/) {return 0;}
61 virtual Int_t Update(const AliCluster*, Double_t /*chi2*/, UInt_t) {return 0;}
be9c5115 62
116cbefd 63 static void SetConvConst(Double_t cc) {fgConvConst=cc;}
64 Double_t GetConvConst() const {return fgConvConst;}
9b280d80 65
e1a65e92 66 static void SetMagneticField(Double_t f) {// f - Magnetic field in T
116cbefd 67 fgConvConst=100/0.299792458/f;
e1a65e92 68 }
116cbefd 69 Double_t GetMagneticField() const {return 100/0.299792458/fgConvConst;}
e1a65e92 70
49a7a79a 71 // Time integration (S.Radomski@gsi.de)
74f9526e 72 void StartTimeIntegral();
73 Bool_t IsStartedTimeIntegral() const {return fStartTimeIntegral;}
74 void AddTimeStep(Double_t length);
75 Double_t GetIntegratedTime(Int_t pdg) const;
76 Double_t GetIntegratedLength() const {return fIntegratedLength;}
77 void PrintTime() const;
78
79
be9c5115 80protected:
81 void SetChi2(Double_t chi2) {fChi2=chi2;}
7f6ddf58 82 void SetMass(Double_t mass) {fMass=mass;}
be9c5115 83 void SetNumberOfClusters(Int_t n) {fN=n;}
84
85private:
87594435 86 Int_t fLab; // track label
87594435 87 Double_t fChi2; // total chi2 value for this track
7f6ddf58 88 Double_t fMass; // mass hypothesis
be9c5115 89 Int_t fN; // number of associated clusters
87594435 90
116cbefd 91 static Double_t fgConvConst; //conversion constant cm -> GeV/c
9b280d80 92
49a7a79a 93 // variables for time integration (S.Radomski@gsi.de)
5d8718b8 94 static const Int_t fgkTypes = 5; // Number of track types (e,mu,pi,k,p)
74f9526e 95 Bool_t fStartTimeIntegral; // indicator wether integrate time
96 Float_t fIntegratedTime[5]; // intgrated time
5d8718b8 97 Float_t fIntegratedLength; // integrated length
74f9526e 98
99 ClassDef(AliKalmanTrack,2) // Reconstructed track
87594435 100};
101
102#endif
103
104