]>
Commit | Line | Data |
---|---|---|
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 | //------------------------------------------------------------------------- | |
13 | #include <Rtypes.h> | |
14 | ||
15 | class AliKalmanTrack; | |
16 | class AliCluster; | |
17 | class TFile; | |
18 | ||
19 | class AliTracker { | |
20 | public: | |
61ab8ea8 | 21 | AliTracker() { fX=fY=fZ=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; | |
61ab8ea8 | 25 | void SetVertex(Double_t *xyz) { fX=xyz[0]; fY=xyz[1]; fZ=xyz[2]; } |
26 | void SetEventNumber(Int_t ev) { fEventN=ev; } | |
be9c5115 | 27 | |
28 | //protected: | |
29 | virtual AliCluster *GetCluster(Int_t index) const=0; | |
30 | virtual void UseClusters(const AliKalmanTrack *t, Int_t from=0) const; | |
31 | virtual void CookLabel(AliKalmanTrack *t,Float_t wrong) const; | |
7f6ddf58 | 32 | Double_t GetX() const {return fX;} |
33 | Double_t GetY() const {return fY;} | |
34 | Double_t GetZ() const {return fZ;} | |
61ab8ea8 | 35 | Int_t GetEventNumber() const {return fEventN;} |
7f6ddf58 | 36 | |
41377c29 | 37 | static Int_t SetFieldFactor(Char_t* fileName, Bool_t closeFile = kTRUE); |
38 | static Int_t SetFieldFactor(TFile* file, Bool_t deletegAlice = kTRUE); | |
39 | static Int_t SetFieldFactor(); | |
40 | ||
7f6ddf58 | 41 | private: |
61ab8ea8 | 42 | Int_t fEventN;//event number |
43 | ||
44 | Double_t fX; //X-coordinate of the primary vertex | |
45 | Double_t fY; //Y-coordinate of the primary vertex | |
46 | Double_t fZ; //Z-coordinate of the primary vertex | |
be9c5115 | 47 | |
48 | ClassDef(AliTracker,1) //abstract tracker | |
49 | }; | |
50 | ||
51 | #endif | |
52 | ||
53 |