]>
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 | //------------------------------------------------------------------------- | |
f7a1cc68 | 13 | |
4811a3f4 | 14 | #include "AliTrackerBase.h" |
57acd2d2 | 15 | |
f7a1cc68 | 16 | #include "AliRecoParam.h" |
17 | #include "AliPlaneEff.h" | |
be9c5115 | 18 | |
e23a38cb | 19 | class TTree; |
be9c5115 | 20 | class AliCluster; |
af885e0f | 21 | class AliESDEvent; |
48ce48d1 | 22 | class AliESDtrack; |
0c4ea33b | 23 | class AliExternalTrackParam; |
98937d93 | 24 | class AliTrackPoint; |
f7a1cc68 | 25 | class AliKalmanTrack; |
1f26f3e7 | 26 | class AliEventInfo; |
e546b023 | 27 | class AliPoolsSet; |
4811a3f4 | 28 | |
29 | class AliTracker : public AliTrackerBase { | |
be9c5115 | 30 | public: |
3b242889 | 31 | AliTracker(); |
be9c5115 | 32 | virtual ~AliTracker(){} |
4811a3f4 | 33 | |
af885e0f | 34 | virtual Int_t Clusters2Tracks(AliESDEvent *event)=0; |
35 | virtual Int_t PropagateBack(AliESDEvent *event)=0; | |
36 | virtual Int_t RefitInward(AliESDEvent *event)=0; | |
c630aafd | 37 | virtual Int_t LoadClusters(TTree *)=0; |
e24ea474 | 38 | virtual void UnloadClusters()=0; |
be9c5115 | 39 | virtual AliCluster *GetCluster(Int_t index) const=0; |
4811a3f4 | 40 | |
41 | virtual Int_t PostProcess(AliESDEvent */*event*/) {return 0;} | |
42 | virtual void FillClusterArray(TObjArray* array) const; | |
7167ae53 | 43 | virtual AliPlaneEff *GetPlaneEff() {return NULL;} |
1a191ea2 | 44 | virtual Bool_t GetTrackPoint(Int_t /* index */ , AliTrackPoint& /* p */) const { return kFALSE;} |
48ce48d1 | 45 | virtual Bool_t GetTrackPointTrackingError(Int_t /* index */, |
46 | AliTrackPoint& /* p */, const AliESDtrack* /* t */) { return kFALSE;} | |
be9c5115 | 47 | virtual void UseClusters(const AliKalmanTrack *t, Int_t from=0) const; |
48 | virtual void CookLabel(AliKalmanTrack *t,Float_t wrong) const; | |
7f6ddf58 | 49 | |
e23a38cb | 50 | static void FillResiduals(const AliExternalTrackParam *t, |
51 | Double_t *p, Double_t *cov, | |
52 | UShort_t id, Bool_t updated=kTRUE); | |
9efabefd | 53 | static void FillResiduals(const AliExternalTrackParam *t, |
54 | const AliCluster *c, Bool_t updated=kTRUE); | |
57acd2d2 | 55 | static void SetFillResiduals(AliRecoParam::EventSpecie_t es, Bool_t flag=kTRUE) { fFillResiduals=flag; fEventSpecie = es ;} |
56 | static void SetResidualsArray(TObjArray **arr) { fResiduals=arr; } | |
eca4fa66 | 57 | static TObjArray ** GetResidualsArray() { return fResiduals; } |
e23a38cb | 58 | |
1f26f3e7 | 59 | void SetEventInfo(AliEventInfo *evInfo) {fEventInfo = evInfo;} |
60 | const AliEventInfo* GetEventInfo() const {return fEventInfo;} | |
e546b023 | 61 | // |
62 | AliPoolsSet* GetPools() const {return fPools;} | |
63 | void SetPools(AliPoolsSet* p) {fPools = p;} | |
64 | // | |
6c94f330 | 65 | protected: |
66 | AliTracker(const AliTracker &atr); | |
7f6ddf58 | 67 | private: |
90e48c0c | 68 | AliTracker & operator=(const AliTracker & atr); |
4811a3f4 | 69 | static Bool_t fFillResiduals; // Fill residuals flag |
57acd2d2 | 70 | static TObjArray **fResiduals; //! Array of histograms with residuals |
e23a38cb | 71 | |
57acd2d2 | 72 | static AliRecoParam::EventSpecie_t fEventSpecie ; //! event specie, see AliRecoParam |
1f26f3e7 | 73 | AliEventInfo* fEventInfo; //! pointer to the event info object |
e546b023 | 74 | |
75 | protected: | |
76 | AliPoolsSet* fPools; //! source of pools | |
57acd2d2 | 77 | |
4811a3f4 | 78 | ClassDef(AliTracker,6) //abstract tracker |
be9c5115 | 79 | }; |
80 | ||
f7a1cc68 | 81 | #endif |