Introducing event specie in QA (Yves)
[u/mrichter/AliRoot.git] / 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//-------------------------------------------------------------------------
1d5fc4ea 13#include <TObject.h>
7167ae53 14#include <AliPlaneEff.h>
57acd2d2 15#include "AliRecoParam.h"
16
be9c5115 17
e23a38cb 18class TTree;
7b5ef2e6 19class AliMagF;
be9c5115 20class AliCluster;
7d0f8548 21class AliKalmanTrack;
af885e0f 22class AliESDEvent;
48ce48d1 23class AliESDtrack;
0c4ea33b 24class AliExternalTrackParam;
98937d93 25class AliTrackPoint;
be9c5115 26
1d5fc4ea 27class AliTracker : public TObject {
be9c5115 28public:
3b242889 29 AliTracker();
be9c5115 30 virtual ~AliTracker(){}
af885e0f 31 virtual Int_t Clusters2Tracks(AliESDEvent *event)=0;
32 virtual Int_t PropagateBack(AliESDEvent *event)=0;
33 virtual Int_t RefitInward(AliESDEvent *event)=0;
c4aa7a4c 34 virtual Int_t PostProcess(AliESDEvent */*event*/) {return 0;}
1d5fc4ea 35 void SetVertex(const Double_t *xyz, const Double_t *ers=0) {
36 fX=xyz[0]; fY=xyz[1]; fZ=xyz[2];
37 if (ers) { fSigmaX=ers[0]; fSigmaY=ers[1]; fSigmaZ=ers[2]; }
38 }
be9c5115 39
40//protected:
c630aafd 41 virtual Int_t LoadClusters(TTree *)=0;
e24ea474 42 virtual void UnloadClusters()=0;
2f4c86d7 43 virtual void FillClusterArray(TObjArray* array) const;
be9c5115 44 virtual AliCluster *GetCluster(Int_t index) const=0;
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 Double_t GetX() const {return fX;}
52 Double_t GetY() const {return fY;}
53 Double_t GetZ() const {return fZ;}
1d5fc4ea 54 Double_t GetSigmaX() const {return fSigmaX;}
55 Double_t GetSigmaY() const {return fSigmaY;}
56 Double_t GetSigmaZ() const {return fSigmaZ;}
7f6ddf58 57
6e440ee5 58 static
6b3a4c8e 59 Double_t MeanMaterialBudget(const Double_t *start, const Double_t *end, Double_t *mparam);
0c4ea33b 60 static
61 Bool_t PropagateTrackTo(AliExternalTrackParam *track, Double_t x, Double_t m,
62 Double_t maxStep, Bool_t rotateTo=kTRUE, Double_t maxSnp=0.8);
6e440ee5 63
c84a5e9e 64 static void SetFieldMap(const AliMagF* map, Bool_t uni);
3b242889 65 static const AliMagF *GetFieldMap() {return fgkFieldMap;}
cb5b8b21 66 static Double_t GetBz(const Float_t *r);
67 static Double_t GetBz(const Double_t *r) {
6c94f330 68 Float_t rr[]={r[0],r[1],r[2]};
69 return GetBz(rr);
70 }
7d0f8548 71 static Double_t GetBz() {return fgBz;}
72 static Bool_t UniformField() {return fgUniformField;}
9c9d2487 73
e23a38cb 74 static void FillResiduals(const AliExternalTrackParam *t,
75 Double_t *p, Double_t *cov,
76 UShort_t id, Bool_t updated=kTRUE);
57acd2d2 77 static void SetFillResiduals(AliRecoParam::EventSpecie_t es, Bool_t flag=kTRUE) { fFillResiduals=flag; fEventSpecie = es ;}
78 static void SetResidualsArray(TObjArray **arr) { fResiduals=arr; }
e23a38cb 79
6c94f330 80protected:
81 AliTracker(const AliTracker &atr);
7f6ddf58 82private:
90e48c0c 83 AliTracker & operator=(const AliTracker & atr);
84
7d0f8548 85 static Bool_t fgUniformField; // uniform field flag
e23a38cb 86 static const AliMagF *fgkFieldMap; //! field map
7d0f8548 87 static Double_t fgBz; // Nominal Bz (kG)
9c9d2487 88
e23a38cb 89 static Bool_t fFillResiduals; // Fill residuals flag
57acd2d2 90 static TObjArray **fResiduals; //! Array of histograms with residuals
e23a38cb 91
61ab8ea8 92 Double_t fX; //X-coordinate of the primary vertex
93 Double_t fY; //Y-coordinate of the primary vertex
94 Double_t fZ; //Z-coordinate of the primary vertex
6c94f330 95
1d5fc4ea 96 Double_t fSigmaX; // error of the primary vertex position in X
97 Double_t fSigmaY; // error of the primary vertex position in Y
98 Double_t fSigmaZ; // error of the primary vertex position in Z
57acd2d2 99
100 static AliRecoParam::EventSpecie_t fEventSpecie ; //! event specie, see AliRecoParam
101
e23a38cb 102 ClassDef(AliTracker,4) //abstract tracker
be9c5115 103};
104
105#endif
106
107