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