]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/STEER/AliTracker.h
results of prev. event reco were not reset in chain processing mode
[u/mrichter/AliRoot.git] / STEER / STEER / AliTracker.h
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
6 /* $Id$ */
7
8 //-------------------------------------------------------------------------
9 //                          class AliTracker
10 //   that is the base for AliTPCtracker, AliITStrackerV2 and AliTRDtracker
11 //       Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch 
12 //-------------------------------------------------------------------------
13
14 #include "AliTrackerBase.h"
15
16 #include "AliRecoParam.h"
17 #include "AliPlaneEff.h"
18
19 class TTree;
20 class AliCluster;
21 class AliESDEvent;
22 class AliESDtrack;
23 class AliExternalTrackParam;
24 class AliTrackPoint;
25 class AliKalmanTrack;
26 class AliEventInfo;
27
28 class AliTracker : public AliTrackerBase {
29 public:
30   AliTracker();
31   virtual ~AliTracker(){}
32
33   virtual Int_t Clusters2Tracks(AliESDEvent *event)=0;
34   virtual Int_t Clusters2TracksHLT(AliESDEvent *event, const AliESDEvent */*hltEvent*/){
35     return Clusters2Tracks(event);
36   }
37   virtual Int_t PropagateBack(AliESDEvent *event)=0;
38   virtual Int_t RefitInward(AliESDEvent *event)=0;
39   virtual Int_t LoadClusters(TTree *)=0;
40   virtual void UnloadClusters()=0;
41   virtual AliCluster *GetCluster(Int_t index) const=0;
42
43   virtual Int_t PostProcess(AliESDEvent */*event*/) {return 0;}
44   virtual void FillClusterArray(TObjArray* array) const;
45   virtual AliPlaneEff *GetPlaneEff() {return NULL;}
46   virtual Bool_t GetTrackPoint(Int_t /* index */ , AliTrackPoint& /* p */) const { return kFALSE;}
47   virtual Bool_t GetTrackPointTrackingError(Int_t /* index */, 
48            AliTrackPoint& /* p */, const AliESDtrack* /* t */) { return kFALSE;}
49   virtual void  UseClusters(const AliKalmanTrack *t, Int_t from=0) const;
50   virtual void  CookLabel(AliKalmanTrack *t,Float_t wrong) const; 
51
52   static void FillResiduals(const AliExternalTrackParam *t,
53                            Double_t *p, Double_t *cov, 
54                            UShort_t id, Bool_t updated=kTRUE);
55   static void FillResiduals(const AliExternalTrackParam *t,
56                             const AliCluster *c, Bool_t updated=kTRUE);
57   static void SetFillResiduals(AliRecoParam::EventSpecie_t es, Bool_t flag=kTRUE) { fFillResiduals=flag; fEventSpecie = es ;}
58   static void SetResidualsArray(TObjArray **arr) { fResiduals=arr; }
59   static TObjArray ** GetResidualsArray() { return fResiduals; }
60
61   void                SetEventInfo(AliEventInfo *evInfo) {fEventInfo = evInfo;}
62   const AliEventInfo* GetEventInfo() const {return fEventInfo;}
63
64 protected:
65   AliTracker(const AliTracker &atr);
66 private:
67   AliTracker & operator=(const AliTracker & atr);
68   static Bool_t fFillResiduals;     // Fill residuals flag
69   static TObjArray **fResiduals;    //! Array of histograms with residuals
70
71   static AliRecoParam::EventSpecie_t fEventSpecie ; //! event specie, see AliRecoParam
72   AliEventInfo*                      fEventInfo;    //! pointer to the event info object
73   
74   ClassDef(AliTracker,6) //abstract tracker
75 };
76
77 #endif