]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliTracker.h
Additional functions, corrections to match the base class (T.Kuhr)
[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
15class AliKalmanTrack;
16class AliCluster;
17class TFile;
18
1d5fc4ea 19class AliTracker : public TObject {
be9c5115 20public:
1d5fc4ea 21 AliTracker() { fX=fY=fZ=0.; fSigmaX=fSigmaY=fSigmaZ=0.; fEventN=0; }
be9c5115 22 virtual ~AliTracker(){}
23 virtual Int_t Clusters2Tracks(const TFile *in, TFile *out)=0;
24 virtual Int_t PropagateBack(const TFile *in, TFile *out)=0;
1d5fc4ea 25 void SetVertex(const Double_t *xyz, const Double_t *ers=0) {
26 fX=xyz[0]; fY=xyz[1]; fZ=xyz[2];
27 if (ers) { fSigmaX=ers[0]; fSigmaY=ers[1]; fSigmaZ=ers[2]; }
28 }
61ab8ea8 29 void SetEventNumber(Int_t ev) { fEventN=ev; }
be9c5115 30
31//protected:
32 virtual AliCluster *GetCluster(Int_t index) const=0;
33 virtual void UseClusters(const AliKalmanTrack *t, Int_t from=0) const;
34 virtual void CookLabel(AliKalmanTrack *t,Float_t wrong) const;
7f6ddf58 35 Double_t GetX() const {return fX;}
36 Double_t GetY() const {return fY;}
37 Double_t GetZ() const {return fZ;}
1d5fc4ea 38 Double_t GetSigmaX() const {return fSigmaX;}
39 Double_t GetSigmaY() const {return fSigmaY;}
40 Double_t GetSigmaZ() const {return fSigmaZ;}
61ab8ea8 41 Int_t GetEventNumber() const {return fEventN;}
7f6ddf58 42
41377c29 43 static Int_t SetFieldFactor(Char_t* fileName, Bool_t closeFile = kTRUE);
44 static Int_t SetFieldFactor(TFile* file, Bool_t deletegAlice = kTRUE);
45 static Int_t SetFieldFactor();
46
7f6ddf58 47private:
61ab8ea8 48 Int_t fEventN;//event number
49
50 Double_t fX; //X-coordinate of the primary vertex
51 Double_t fY; //Y-coordinate of the primary vertex
52 Double_t fZ; //Z-coordinate of the primary vertex
be9c5115 53
1d5fc4ea 54 Double_t fSigmaX; // error of the primary vertex position in X
55 Double_t fSigmaY; // error of the primary vertex position in Y
56 Double_t fSigmaZ; // error of the primary vertex position in Z
57
be9c5115 58 ClassDef(AliTracker,1) //abstract tracker
59};
60
61#endif
62
63