]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliTracker.h
New split libs
[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 //#include "TError.h"
15
16 class AliKalmanTrack;
17 class AliCluster;
18 class TTree;
19 class AliESD;
20 class AliMagF;
21
22 class AliTracker : public TObject {
23 public:
24
25   enum {kTrackInward, kTrackBack, kTrackRefit} Propagation_t; //type of propagation
26   
27   AliTracker();
28   AliTracker(const AliTracker &atr): TObject(atr)
29     {Fatal("Copy ctor","Not Implemented!\n");}
30   AliTracker & operator=(const AliTracker &)
31     {Fatal("= op","Not Implemented\n");return *this;}
32   virtual ~AliTracker(){}
33   virtual Int_t Clusters2Tracks(AliESD *event)=0;
34   virtual Int_t PropagateBack(AliESD *event)=0;
35   virtual Int_t RefitInward(AliESD *event)=0;
36   void SetVertex(const Double_t *xyz, const Double_t *ers=0) { 
37      fX=xyz[0]; fY=xyz[1]; fZ=xyz[2];
38      if (ers) { fSigmaX=ers[0]; fSigmaY=ers[1]; fSigmaZ=ers[2]; } 
39   }
40   void SetEventNumber(Int_t ev) { fEventN=ev; }
41
42 //protected:
43   virtual Int_t LoadClusters(TTree *)=0;
44   virtual void UnloadClusters()=0;
45   virtual AliCluster *GetCluster(Int_t index) const=0;
46   virtual void  UseClusters(const AliKalmanTrack *t, Int_t from=0) const;
47   virtual void  CookLabel(AliKalmanTrack *t,Float_t wrong) const; 
48   Double_t GetX() const {return fX;}
49   Double_t GetY() const {return fY;}
50   Double_t GetZ() const {return fZ;}
51   Double_t GetSigmaX() const {return fSigmaX;}
52   Double_t GetSigmaY() const {return fSigmaY;}
53   Double_t GetSigmaZ() const {return fSigmaZ;}
54   Int_t GetEventNumber() const {return fEventN;}
55
56   static void SetFieldMap(const AliMagF* map);
57   static const AliMagF *GetFieldMap() {return fgkFieldMap;}
58   
59   Int_t IsStoringBarrel() const {return fStoreBarrel;}
60   void  SetStoreBarrel(Int_t s) {fStoreBarrel = s;}
61
62 private:
63   static const AliMagF *fgkFieldMap; //field map
64   Int_t fEventN;//event number
65
66   Int_t fStoreBarrel; //Store Barrel information
67
68   Double_t fX;  //X-coordinate of the primary vertex
69   Double_t fY;  //Y-coordinate of the primary vertex
70   Double_t fZ;  //Z-coordinate of the primary vertex
71
72   Double_t fSigmaX; // error of the primary vertex position in X
73   Double_t fSigmaY; // error of the primary vertex position in Y
74   Double_t fSigmaZ; // error of the primary vertex position in Z
75
76   ClassDef(AliTracker,1) //abstract tracker
77 };
78
79 #endif
80
81