3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //-------------------------------------------------------------------------
10 // that is the base for AliTPCtracker, AliITStrackerV2 and AliTRDtracker
11 // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
12 //-------------------------------------------------------------------------
21 class AliTracker : public TObject {
26 enum {kTrackInward, kTrackBack, kTrackRefit} Propagation_t;
28 AliTracker() { fX=fY=fZ=0.; fSigmaX=fSigmaY=fSigmaZ=0.; fEventN=0; fStoreBarrel = 1;}
29 virtual ~AliTracker(){}
30 virtual Int_t Clusters2Tracks(AliESD *event)=0;
31 virtual Int_t PropagateBack(AliESD *event)=0;
32 virtual Int_t RefitInward(AliESD *event)=0;
33 void SetVertex(const Double_t *xyz, const Double_t *ers=0) {
34 fX=xyz[0]; fY=xyz[1]; fZ=xyz[2];
35 if (ers) { fSigmaX=ers[0]; fSigmaY=ers[1]; fSigmaZ=ers[2]; }
37 void SetEventNumber(Int_t ev) { fEventN=ev; }
42 virtual Int_t LoadClusters(TTree *)=0;
43 virtual void UnloadClusters()=0;
44 virtual AliCluster *GetCluster(Int_t index) const=0;
45 virtual void UseClusters(const AliKalmanTrack *t, Int_t from=0) const;
46 virtual void CookLabel(AliKalmanTrack *t,Float_t wrong) const;
47 Double_t GetX() const {return fX;}
48 Double_t GetY() const {return fY;}
49 Double_t GetZ() const {return fZ;}
50 Double_t GetSigmaX() const {return fSigmaX;}
51 Double_t GetSigmaY() const {return fSigmaY;}
52 Double_t GetSigmaZ() const {return fSigmaZ;}
53 Int_t GetEventNumber() const {return fEventN;}
55 static Int_t SetFieldFactor(const char* fileName, Bool_t closeFile = kTRUE);
56 static Int_t SetFieldFactor(TFile* file, Bool_t deletegAlice = kTRUE);
57 static Int_t SetFieldFactor();
59 Int_t IsStoringBarrel() const {return fStoreBarrel;}
60 void SetStoreBarrel(Int_t s) {fStoreBarrel = s;}
63 Int_t fEventN;//event number
67 Double_t fX; //X-coordinate of the primary vertex
68 Double_t fY; //Y-coordinate of the primary vertex
69 Double_t fZ; //Z-coordinate of the primary vertex
71 Double_t fSigmaX; // error of the primary vertex position in X
72 Double_t fSigmaY; // error of the primary vertex position in Y
73 Double_t fSigmaZ; // error of the primary vertex position in Z
75 ClassDef(AliTracker,1) //abstract tracker