]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliTracker.h
removal of obsolete classes - cleanup of AliITSClusterFinder.cxx
[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;
c630aafd 19class AliESD;
98937d93 20class AliTrackPoint;
be9c5115 21
1d5fc4ea 22class AliTracker : public TObject {
be9c5115 23public:
3b242889 24 AliTracker();
be9c5115 25 virtual ~AliTracker(){}
c630aafd 26 virtual Int_t Clusters2Tracks(AliESD *event)=0;
27 virtual Int_t PropagateBack(AliESD *event)=0;
28 virtual Int_t RefitInward(AliESD *event)=0;
1d5fc4ea 29 void SetVertex(const Double_t *xyz, const Double_t *ers=0) {
30 fX=xyz[0]; fY=xyz[1]; fZ=xyz[2];
31 if (ers) { fSigmaX=ers[0]; fSigmaY=ers[1]; fSigmaZ=ers[2]; }
32 }
be9c5115 33
34//protected:
c630aafd 35 virtual Int_t LoadClusters(TTree *)=0;
e24ea474 36 virtual void UnloadClusters()=0;
be9c5115 37 virtual AliCluster *GetCluster(Int_t index) const=0;
1a191ea2 38 virtual Bool_t GetTrackPoint(Int_t /* index */ , AliTrackPoint& /* p */) const { return kFALSE;}
be9c5115 39 virtual void UseClusters(const AliKalmanTrack *t, Int_t from=0) const;
40 virtual void CookLabel(AliKalmanTrack *t,Float_t wrong) const;
7f6ddf58 41 Double_t GetX() const {return fX;}
42 Double_t GetY() const {return fY;}
43 Double_t GetZ() const {return fZ;}
1d5fc4ea 44 Double_t GetSigmaX() const {return fSigmaX;}
45 Double_t GetSigmaY() const {return fSigmaY;}
46 Double_t GetSigmaZ() const {return fSigmaZ;}
7f6ddf58 47
c84a5e9e 48 static void SetFieldMap(const AliMagF* map, Bool_t uni);
3b242889 49 static const AliMagF *GetFieldMap() {return fgkFieldMap;}
7b5ef2e6 50 static Double_t GetBz(Float_t *r);
6c94f330 51 static Double_t GetBz(Double_t *r) {
52 Float_t rr[]={r[0],r[1],r[2]};
53 return GetBz(rr);
54 }
7d0f8548 55 static Double_t GetBz() {return fgBz;}
56 static Bool_t UniformField() {return fgUniformField;}
9c9d2487 57
6c94f330 58protected:
59 AliTracker(const AliTracker &atr);
7f6ddf58 60private:
90e48c0c 61 AliTracker & operator=(const AliTracker & atr);
62
7d0f8548 63 static Bool_t fgUniformField; // uniform field flag
64 static const AliMagF *fgkFieldMap; // field map
65 static Double_t fgBz; // Nominal Bz (kG)
9c9d2487 66
61ab8ea8 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
6c94f330 70
1d5fc4ea 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
74
7d0f8548 75 ClassDef(AliTracker,3) //abstract tracker
be9c5115 76};
77
78#endif
79
80