]>
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> |
c9ec41e8 | 14 | #include "AliMagF.h" |
be9c5115 | 15 | |
be9c5115 | 16 | class AliCluster; |
c630aafd | 17 | class TTree; |
7d0f8548 | 18 | class AliKalmanTrack; |
c630aafd | 19 | class AliESD; |
98937d93 | 20 | class AliTrackPoint; |
be9c5115 | 21 | |
1d5fc4ea | 22 | class AliTracker : public TObject { |
be9c5115 | 23 | public: |
9c9d2487 | 24 | |
1bb2a43c | 25 | enum {kTrackInward, kTrackBack, kTrackRefit} Propagation_t; //type of propagation |
9c9d2487 | 26 | |
3b242889 | 27 | AliTracker(); |
1bb2a43c | 28 | AliTracker(const AliTracker &atr): TObject(atr) |
29 | {Fatal("Copy ctor","Not Implemented!\n");} | |
90e48c0c | 30 | // AliTracker & operator=(const AliTracker &) |
31 | // {Fatal("= op","Not Implemented\n");return *this;} | |
be9c5115 | 32 | virtual ~AliTracker(){} |
c630aafd | 33 | virtual Int_t Clusters2Tracks(AliESD *event)=0; |
34 | virtual Int_t PropagateBack(AliESD *event)=0; | |
35 | virtual Int_t RefitInward(AliESD *event)=0; | |
1d5fc4ea | 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 | } | |
be9c5115 | 40 | |
41 | //protected: | |
c630aafd | 42 | virtual Int_t LoadClusters(TTree *)=0; |
e24ea474 | 43 | virtual void UnloadClusters()=0; |
be9c5115 | 44 | virtual AliCluster *GetCluster(Int_t index) const=0; |
1a191ea2 | 45 | virtual Bool_t GetTrackPoint(Int_t /* index */ , AliTrackPoint& /* p */) const { return kFALSE;} |
be9c5115 | 46 | virtual void UseClusters(const AliKalmanTrack *t, Int_t from=0) const; |
47 | virtual void CookLabel(AliKalmanTrack *t,Float_t wrong) const; | |
7f6ddf58 | 48 | Double_t GetX() const {return fX;} |
49 | Double_t GetY() const {return fY;} | |
50 | Double_t GetZ() const {return fZ;} | |
1d5fc4ea | 51 | Double_t GetSigmaX() const {return fSigmaX;} |
52 | Double_t GetSigmaY() const {return fSigmaY;} | |
53 | Double_t GetSigmaZ() const {return fSigmaZ;} | |
7f6ddf58 | 54 | |
c84a5e9e | 55 | static void SetFieldMap(const AliMagF* map, Bool_t uni); |
3b242889 | 56 | static const AliMagF *GetFieldMap() {return fgkFieldMap;} |
49d13e89 | 57 | static Double_t GetBz(Float_t *r) { |
58 | Float_t b[3]; fgkFieldMap->Field(r,b); | |
59 | Double_t bz=-Double_t(b[2]); | |
60 | return (TMath::Sign(1e-13,bz) + bz); | |
61 | } | |
7d0f8548 | 62 | static Double_t GetBz() {return fgBz;} |
63 | static Bool_t UniformField() {return fgUniformField;} | |
9c9d2487 | 64 | |
7f6ddf58 | 65 | private: |
90e48c0c | 66 | |
67 | AliTracker & operator=(const AliTracker & atr); | |
68 | ||
7d0f8548 | 69 | static Bool_t fgUniformField; // uniform field flag |
70 | static const AliMagF *fgkFieldMap; // field map | |
71 | static Double_t fgBz; // Nominal Bz (kG) | |
9c9d2487 | 72 | |
61ab8ea8 | 73 | Double_t fX; //X-coordinate of the primary vertex |
74 | Double_t fY; //Y-coordinate of the primary vertex | |
75 | Double_t fZ; //Z-coordinate of the primary vertex | |
be9c5115 | 76 | |
1d5fc4ea | 77 | Double_t fSigmaX; // error of the primary vertex position in X |
78 | Double_t fSigmaY; // error of the primary vertex position in Y | |
79 | Double_t fSigmaZ; // error of the primary vertex position in Z | |
80 | ||
7d0f8548 | 81 | ClassDef(AliTracker,3) //abstract tracker |
be9c5115 | 82 | }; |
83 | ||
84 | #endif | |
85 | ||
86 |