]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliTracker.h
Switch off branches by hand.
[u/mrichter/AliRoot.git] / STEER / AliTracker.h
CommitLineData
be9c5115 1#ifndef ALITRACKER_H
2#define ALITRACKER_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
fb17acd4 6/* $Id$ */
7
be9c5115 8//-------------------------------------------------------------------------
9// class AliTracker
41377c29 10// that is the base for AliTPCtracker, AliITStrackerV2 and AliTRDtracker
be9c5115 11// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
12//-------------------------------------------------------------------------
1d5fc4ea 13#include <TObject.h>
be9c5115 14
7b5ef2e6 15class AliMagF;
be9c5115 16class AliCluster;
c630aafd 17class TTree;
7d0f8548 18class AliKalmanTrack;
af885e0f 19class AliESDEvent;
0c4ea33b 20class AliExternalTrackParam;
98937d93 21class AliTrackPoint;
be9c5115 22
1d5fc4ea 23class AliTracker : public TObject {
be9c5115 24public:
3b242889 25 AliTracker();
be9c5115 26 virtual ~AliTracker(){}
af885e0f 27 virtual Int_t Clusters2Tracks(AliESDEvent *event)=0;
28 virtual Int_t PropagateBack(AliESDEvent *event)=0;
29 virtual Int_t RefitInward(AliESDEvent *event)=0;
1d5fc4ea 30 void SetVertex(const Double_t *xyz, const Double_t *ers=0) {
31 fX=xyz[0]; fY=xyz[1]; fZ=xyz[2];
32 if (ers) { fSigmaX=ers[0]; fSigmaY=ers[1]; fSigmaZ=ers[2]; }
33 }
be9c5115 34
35//protected:
c630aafd 36 virtual Int_t LoadClusters(TTree *)=0;
e24ea474 37 virtual void UnloadClusters()=0;
be9c5115 38 virtual AliCluster *GetCluster(Int_t index) const=0;
1a191ea2 39 virtual Bool_t GetTrackPoint(Int_t /* index */ , AliTrackPoint& /* p */) const { return kFALSE;}
be9c5115 40 virtual void UseClusters(const AliKalmanTrack *t, Int_t from=0) const;
41 virtual void CookLabel(AliKalmanTrack *t,Float_t wrong) const;
7f6ddf58 42 Double_t GetX() const {return fX;}
43 Double_t GetY() const {return fY;}
44 Double_t GetZ() const {return fZ;}
1d5fc4ea 45 Double_t GetSigmaX() const {return fSigmaX;}
46 Double_t GetSigmaY() const {return fSigmaY;}
47 Double_t GetSigmaZ() const {return fSigmaZ;}
7f6ddf58 48
6e440ee5 49 static
50 Double_t MeanMaterialBudget(Double_t *start,Double_t *end,Double_t *mparam);
0c4ea33b 51 static
52 Bool_t PropagateTrackTo(AliExternalTrackParam *track, Double_t x, Double_t m,
53 Double_t maxStep, Bool_t rotateTo=kTRUE, Double_t maxSnp=0.8);
6e440ee5 54
c84a5e9e 55 static void SetFieldMap(const AliMagF* map, Bool_t uni);
3b242889 56 static const AliMagF *GetFieldMap() {return fgkFieldMap;}
7b5ef2e6 57 static Double_t GetBz(Float_t *r);
6c94f330 58 static Double_t GetBz(Double_t *r) {
59 Float_t rr[]={r[0],r[1],r[2]};
60 return GetBz(rr);
61 }
7d0f8548 62 static Double_t GetBz() {return fgBz;}
63 static Bool_t UniformField() {return fgUniformField;}
9c9d2487 64
6c94f330 65protected:
66 AliTracker(const AliTracker &atr);
7f6ddf58 67private:
90e48c0c 68 AliTracker & operator=(const AliTracker & atr);
69
7d0f8548 70 static Bool_t fgUniformField; // uniform field flag
71 static const AliMagF *fgkFieldMap; // field map
72 static Double_t fgBz; // Nominal Bz (kG)
9c9d2487 73
61ab8ea8 74 Double_t fX; //X-coordinate of the primary vertex
75 Double_t fY; //Y-coordinate of the primary vertex
76 Double_t fZ; //Z-coordinate of the primary vertex
6c94f330 77
1d5fc4ea 78 Double_t fSigmaX; // error of the primary vertex position in X
79 Double_t fSigmaY; // error of the primary vertex position in Y
80 Double_t fSigmaZ; // error of the primary vertex position in Z
81
7d0f8548 82 ClassDef(AliTracker,3) //abstract tracker
be9c5115 83};
84
85#endif
86
87