]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/STEERBase/AliVTrack.h
e654f926af914012f1c7338d2aaa9e9f588481bc
[u/mrichter/AliRoot.git] / STEER / STEERBase / AliVTrack.h
1 #ifndef AliVTrack_H
2 #define AliVTrack_H
3 /* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6
7 //-------------------------------------------------------------------------
8 //     base class for ESD and AOD tracks
9 //     Author: A. Dainese
10 //-------------------------------------------------------------------------
11
12 #include <TBits.h>
13
14 #include "AliVParticle.h"
15
16 class AliVVertex;
17 class AliExternalTrackParam;
18 class AliTPCdEdxInfo;
19 class AliDetectorPID;
20  
21 class AliVTrack: public AliVParticle {
22
23 public:
24   enum {
25     kITSin        = 0x1
26     ,kITSout      = 0x2
27     ,kITSrefit    = 0x4
28     ,kITSpid      = 0x8
29     ,kTPCin       = 0x10
30     ,kTPCout      = 0x20
31     ,kTPCrefit    = 0x40
32     ,kTPCpid      = 0x80
33     ,kTRDin       = 0x100
34     ,kTRDout      = 0x200
35     ,kTRDrefit    = 0x400
36     ,kTRDpid      = 0x800
37     ,kTOFin       = 0x1000
38     ,kTOFout      = 0x2000
39     ,kTOFrefit    = 0x4000
40     ,kTOFpid      = 0x8000
41     ,kHMPIDout    = 0x10000
42     ,kHMPIDpid    = 0x20000
43     ,kEMCALmatch  = 0x40000
44     ,kTRDbackup   = 0x80000
45     ,kTOFmismatch = 0x100000
46     ,kPHOSmatch   = 0x200000
47     ,kITSupg      = 0x400000     // flag that in the ITSupgrade reco
48     //
49     ,kGlobalMerge = 0x1000000
50     ,kMultInV0    = 0x2000000     //BIT(25): assumed to be belong to V0 in multiplicity estimates
51     ,kMultSec     = 0x4000000     //BIT(26): assumed to be secondary (due to the DCA) in multiplicity estimates
52     ,kEmbedded    = 0x8000000     // BIT(27), 1<<27: Is a track that has been embedded into the event
53     //
54     ,kITSpureSA   = 0x10000000
55     ,kTRDStop     = 0x20000000
56     ,kESDpid      = 0x40000000
57     ,kTIME        = 0x80000000
58   };
59   enum {
60     kTRDnPlanes = 6,
61     kEMCALNoMatch = -4096,
62     kTOFBCNA = -100
63   };
64
65   AliVTrack() { }
66   virtual ~AliVTrack() { }
67   AliVTrack(const AliVTrack& vTrack); 
68   AliVTrack& operator=(const AliVTrack& vTrack);
69
70   virtual Int_t    GetID() const = 0;
71   virtual UChar_t  GetITSClusterMap() const = 0;
72   virtual void     GetITSdEdxSamples(Double_t s[4]) const {for (int i=4;i--;) s[i]=0;};
73   virtual const TBits* GetTPCClusterMapPtr() const {return NULL;}
74   virtual const TBits* GetTPCFitMapPtr()     const {return NULL;}
75   virtual const TBits* GetTPCSharedMapPtr()  const {return NULL;}
76   virtual Float_t  GetTPCClusterInfo(Int_t /*nNeighbours*/, Int_t /*type*/, Int_t /*row0*/=0, Int_t /*row1*/=159, Int_t /*type*/= 0) const {return 0.;}
77   virtual AliTPCdEdxInfo * GetTPCdEdxInfo() const {return 0x0;}
78   virtual UShort_t GetTPCNcls() const { return 0;}
79   virtual UShort_t GetTPCNclsF() const { return 0;}
80   virtual Double_t GetTRDslice(Int_t /*plane*/, Int_t /*slice*/) const { return -1.; }
81   virtual Int_t    GetNumberOfTRDslices() const { return 0; }
82   virtual UChar_t  GetTRDncls() const {return 0;}
83   virtual UChar_t  GetTRDntrackletsPID() const { return 0;}
84   virtual void     SetDetectorPID(const AliDetectorPID */*pid*/) {;}
85   virtual const    AliDetectorPID* GetDetectorPID() const { return 0x0; }
86   virtual Double_t GetTRDchi2()          const { return -1;}
87   
88   virtual Int_t GetEMCALcluster()     const {return kEMCALNoMatch;}
89   virtual void SetEMCALcluster(Int_t)       {;}
90   virtual Bool_t IsEMCAL()            const {return kFALSE;}
91
92   virtual Double_t GetTrackPhiOnEMCal() const {return -999;}
93   virtual Double_t GetTrackEtaOnEMCal() const {return -999;}
94   virtual Double_t GetTrackPtOnEMCal() const {return -999;}
95   virtual Double_t GetTrackPOnEMCal() const {return -999;}
96   virtual void SetTrackPhiEtaPtOnEMCal(Double_t,Double_t,Double_t=-999) {;}
97
98   virtual Int_t GetPHOScluster()      const {return -1;}
99   virtual void SetPHOScluster(Int_t)        {;}
100   virtual Bool_t IsPHOS()             const {return kFALSE;}
101   
102   //pid info
103   virtual void     SetStatus(ULong_t /*flags*/) {;}
104   virtual void     ResetStatus(ULong_t /*flags*/) {;}
105
106   virtual Double_t  GetITSsignal()       const {return 0.;}
107   virtual Double_t  GetTPCsignal()       const {return 0.;}
108   virtual Double_t  GetTPCsignalTunedOnData() const {return 0.;}
109   virtual UShort_t  GetTPCsignalN()      const {return 0 ;}
110   virtual Double_t  GetTPCmomentum()     const {return 0.;}
111   virtual Double_t  GetTOFsignal()       const {return 0.;}
112   virtual Double_t  GetTOFsignalTunedOnData() const {return 0.;}
113   virtual Double_t  GetHMPIDsignal()     const {return 0.;}
114   virtual Double_t  GetTRDsignal()       const {return 0.;}
115
116   virtual Double_t  GetHMPIDoccupancy()  const {return 0.;}
117   
118   virtual Int_t     GetHMPIDcluIdx()     const {return 0;}
119   
120   virtual void GetHMPIDtrk(Float_t &/*&x*/, Float_t &/*y*/, Float_t &/*th*/, Float_t &/*ph*/) const {;}  
121   virtual void GetHMPIDmip(Float_t &/*x*/, Float_t &/*y*/, Int_t &/*q*/,Int_t &/*nph*/) const {;}
122   
123   virtual Bool_t GetOuterHmpPxPyPz(Double_t */*p*/) const {return kFALSE;}
124   
125   virtual void      GetIntegratedTimes(Double_t */*times*/) const { return; }
126   virtual Double_t  GetTRDmomentum(Int_t /*plane*/, Double_t */*sp*/=0x0) const {return 0.;}
127   virtual void      GetHMPIDpid(Double_t */*p*/) const {;}
128   virtual Double_t  GetIntegratedLength() const { return 0.;}
129   
130   virtual ULong_t  GetStatus() const = 0;
131   virtual Bool_t   GetXYZ(Double_t *p) const = 0;
132   virtual Bool_t   GetXYZAt(Double_t /*x*/, Double_t /*b*/, Double_t* /*r*/ ) const {return kFALSE;}
133   virtual Double_t GetBz() const;
134   virtual void     GetBxByBz(Double_t b[3]) const;
135   virtual Bool_t   GetCovarianceXYZPxPyPz(Double_t cv[21]) const = 0;
136   virtual Bool_t   PropagateToDCA(const AliVVertex *vtx,Double_t b,Double_t maxd,Double_t dz[2],Double_t covar[3]) = 0;
137   virtual const    AliExternalTrackParam * GetOuterParam() const { return NULL; }
138   virtual const    AliExternalTrackParam * GetInnerParam() const { return NULL; }
139   virtual Int_t    GetNcls(Int_t /*idet*/) const { return 0; }
140   virtual Bool_t   GetPxPyPz(Double_t */*p*/) const { return kFALSE; }
141   virtual void     SetID(Short_t /*id*/) {;}
142   virtual Int_t    GetTOFBunchCrossing(Double_t = 0, Bool_t = kFALSE) const { return kTOFBCNA;}
143
144   ClassDef(AliVTrack,1)  // base class for tracks
145 };
146
147 #endif