]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliTracker.h
Class version incremented
[u/mrichter/AliRoot.git] / STEER / AliTracker.h
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
6 /* $Id$ */
7
8 //-------------------------------------------------------------------------
9 //                          class AliTracker
10 //   that is the base for AliTPCtracker, AliITStrackerV2 and AliTRDtracker
11 //       Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch 
12 //-------------------------------------------------------------------------
13 #include <TObject.h>
14
15 class AliKalmanTrack;
16 class AliCluster;
17 class TFile;
18
19 class AliTracker : public TObject {
20
21
22 public:
23
24   enum {kTrackInward, kTrackBack, kTrackRefit} Propagation_t;
25   
26   AliTracker() { fX=fY=fZ=0.; fSigmaX=fSigmaY=fSigmaZ=0.; fEventN=0; fStoreBarrel = 1;}
27   virtual ~AliTracker(){}
28   virtual Int_t Clusters2Tracks(const TFile *in, TFile *out)=0;
29   virtual Int_t PropagateBack(const TFile *in, TFile *out)=0;
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   }
34   void SetEventNumber(Int_t ev) { fEventN=ev; }
35
36   
37
38 //protected:
39   virtual Int_t LoadClusters()=0;
40   virtual void UnloadClusters()=0;
41   virtual AliCluster *GetCluster(Int_t index) const=0;
42   virtual void  UseClusters(const AliKalmanTrack *t, Int_t from=0) const;
43   virtual void  CookLabel(AliKalmanTrack *t,Float_t wrong) const; 
44   Double_t GetX() const {return fX;}
45   Double_t GetY() const {return fY;}
46   Double_t GetZ() const {return fZ;}
47   Double_t GetSigmaX() const {return fSigmaX;}
48   Double_t GetSigmaY() const {return fSigmaY;}
49   Double_t GetSigmaZ() const {return fSigmaZ;}
50   Int_t GetEventNumber() const {return fEventN;}
51
52   static Int_t SetFieldFactor(const char* fileName, Bool_t closeFile = kTRUE);
53   static Int_t SetFieldFactor(TFile* file, Bool_t deletegAlice = kTRUE);
54   static Int_t SetFieldFactor();
55   
56   Int_t IsStoringBarrel() const {return fStoreBarrel;}
57   void  SetStoreBarrel(Int_t s) {fStoreBarrel = s;}
58
59 private:
60   Int_t fEventN;//event number
61
62   Int_t fStoreBarrel;
63
64   Double_t fX;  //X-coordinate of the primary vertex
65   Double_t fY;  //Y-coordinate of the primary vertex
66   Double_t fZ;  //Z-coordinate of the primary vertex
67
68   Double_t fSigmaX; // error of the primary vertex position in X
69   Double_t fSigmaY; // error of the primary vertex position in Y
70   Double_t fSigmaZ; // error of the primary vertex position in Z
71
72   ClassDef(AliTracker,1) //abstract tracker
73 };
74
75 #endif
76
77