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