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