]>
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 | //------------------------------------------------------------------------- | |
1d5fc4ea | 13 | #include <TObject.h> |
3b242889 | 14 | #include "TError.h" |
be9c5115 | 15 | |
16 | class AliKalmanTrack; | |
17 | class AliCluster; | |
c630aafd | 18 | class TTree; |
19 | class AliESD; | |
3b242889 | 20 | class AliMagF; |
be9c5115 | 21 | |
1d5fc4ea | 22 | class AliTracker : public TObject { |
be9c5115 | 23 | public: |
9c9d2487 | 24 | |
25 | enum {kTrackInward, kTrackBack, kTrackRefit} Propagation_t; | |
26 | ||
3b242889 | 27 | AliTracker(); |
be9c5115 | 28 | virtual ~AliTracker(){} |
c630aafd | 29 | virtual Int_t Clusters2Tracks(AliESD *event)=0; |
30 | virtual Int_t PropagateBack(AliESD *event)=0; | |
31 | virtual Int_t RefitInward(AliESD *event)=0; | |
1d5fc4ea | 32 | void SetVertex(const Double_t *xyz, const Double_t *ers=0) { |
33 | fX=xyz[0]; fY=xyz[1]; fZ=xyz[2]; | |
34 | if (ers) { fSigmaX=ers[0]; fSigmaY=ers[1]; fSigmaZ=ers[2]; } | |
35 | } | |
61ab8ea8 | 36 | void SetEventNumber(Int_t ev) { fEventN=ev; } |
be9c5115 | 37 | |
38 | //protected: | |
c630aafd | 39 | virtual Int_t LoadClusters(TTree *)=0; |
e24ea474 | 40 | virtual void UnloadClusters()=0; |
be9c5115 | 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; | |
7f6ddf58 | 44 | Double_t GetX() const {return fX;} |
45 | Double_t GetY() const {return fY;} | |
46 | Double_t GetZ() const {return fZ;} | |
1d5fc4ea | 47 | Double_t GetSigmaX() const {return fSigmaX;} |
48 | Double_t GetSigmaY() const {return fSigmaY;} | |
49 | Double_t GetSigmaZ() const {return fSigmaZ;} | |
61ab8ea8 | 50 | Int_t GetEventNumber() const {return fEventN;} |
7f6ddf58 | 51 | |
3b242889 | 52 | static void SetFieldMap(const AliMagF* map); |
53 | static const AliMagF *GetFieldMap() {return fgkFieldMap;} | |
41377c29 | 54 | |
9c9d2487 | 55 | Int_t IsStoringBarrel() const {return fStoreBarrel;} |
56 | void SetStoreBarrel(Int_t s) {fStoreBarrel = s;} | |
57 | ||
7f6ddf58 | 58 | private: |
3b242889 | 59 | static const AliMagF *fgkFieldMap; //field map |
61ab8ea8 | 60 | Int_t fEventN;//event number |
61 | ||
9c9d2487 | 62 | Int_t fStoreBarrel; |
63 | ||
61ab8ea8 | 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 | |
be9c5115 | 67 | |
1d5fc4ea | 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 | ||
be9c5115 | 72 | ClassDef(AliTracker,1) //abstract tracker |
73 | }; | |
74 | ||
75 | #endif | |
76 | ||
77 |