In order to use the new TPC dEdx information within the common pid classes the new...
[u/mrichter/AliRoot.git] / STEER / STEERBase / AliVTrack.h
CommitLineData
a7d9ab9e 1#ifndef AliVTrack_H\r
2#define AliVTrack_H\r
3/* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *\r
4 * See cxx source for full Copyright notice */\r
5\r
6\r
7//-------------------------------------------------------------------------\r
8// base class for ESD and AOD tracks\r
9// Author: A. Dainese\r
10//-------------------------------------------------------------------------\r
11\r
12#include <TBits.h>\r
13\r
14#include "AliVParticle.h"\r
15\r
16class AliVVertex;\r
17class AliExternalTrackParam;\r
563976ea 18class AliTPCdEdxInfo;\r
19 \r
a7d9ab9e 20class AliVTrack: public AliVParticle {\r
21\r
22public:\r
23 enum {\r
24 kITSin=0x0001,kITSout=0x0002,kITSrefit=0x0004,kITSpid=0x0008,\r
25 kTPCin=0x0010,kTPCout=0x0020,kTPCrefit=0x0040,kTPCpid=0x0080,\r
26 kTRDin=0x0100,kTRDout=0x0200,kTRDrefit=0x0400,kTRDpid=0x0800,\r
27 kTOFin=0x1000,kTOFout=0x2000,kTOFrefit=0x4000,kTOFpid=0x8000,\r
28 kTOFmismatch=0x100000,\r
29 kHMPIDout=0x10000,kHMPIDpid=0x20000,\r
30 kEMCALmatch=0x40000,\r
31 kPHOSmatch=0x200000,\r
32 kTRDbackup =0x80000,\r
33 kTRDStop=0x20000000,\r
34 kESDpid=0x40000000,\r
35 kTIME=0x80000000,\r
36 kGlobalMerge=0x08000000,\r
37 kITSpureSA=0x10000000,\r
38 kMultInV0 =0x2000000, //BIT(25): assumed to be belong to V0 in multiplicity estimates\r
39 kMultSec =0x4000000, //BIT(26): assumed to be secondary (due to the DCA) in multiplicity estimates\r
40 kEmbedded =0x8000000 // BIT(27), 1<<27: Is a track that has been embedded into the event\r
41 };\r
42 enum {\r
43 kTRDnPlanes = 6,\r
3f2db92f 44 kEMCALNoMatch = -4096,\r
45 kTOFBCNA = -100\r
a7d9ab9e 46 };\r
47\r
48 AliVTrack() { }\r
49 virtual ~AliVTrack() { }\r
50 AliVTrack(const AliVTrack& vTrack); \r
51 AliVTrack& operator=(const AliVTrack& vTrack);\r
52\r
53 virtual Int_t GetID() const = 0;\r
54 virtual UChar_t GetITSClusterMap() const = 0;\r
55 virtual Float_t GetTPCClusterInfo(Int_t /*nNeighbours*/, Int_t /*type*/, Int_t /*row0*/=0, Int_t /*row1*/=159) const {return 0.;}\r
563976ea 56 virtual AliTPCdEdxInfo * GetTPCdEdxInfo() {return 0x0;}\r
a7d9ab9e 57 virtual UShort_t GetTPCNcls() const { return 0;}\r
58 virtual UShort_t GetTPCNclsF() const { return 0;}\r
59 virtual Double_t GetTRDslice(Int_t /*plane*/, Int_t /*slice*/) const { return -1.; }\r
99e9d5ec 60 virtual UChar_t GetTRDntrackletsPID() const { return 0;}\r
a7d9ab9e 61 \r
62 virtual Int_t GetEMCALcluster() const {return -1;}\r
63 virtual void SetEMCALcluster(Int_t) {;}\r
64 virtual Bool_t IsEMCAL() const {return kFALSE;}\r
65\r
66 virtual Int_t GetPHOScluster() const {return -1;}\r
67 virtual void SetPHOScluster(Int_t) {;}\r
68 virtual Bool_t IsPHOS() const {return kFALSE;}\r
69 \r
70 //pid info\r
71 virtual Double_t GetITSsignal() const {return 0.;}\r
72 virtual Double_t GetTPCsignal() const {return 0.;}\r
73 virtual UShort_t GetTPCsignalN() const {return 0 ;}\r
74 virtual Double_t GetTPCmomentum() const {return 0.;}\r
75 virtual Double_t GetTOFsignal() const {return 0.;}\r
72b35cc8 76 virtual Double_t GetHMPIDsignal() const {return 0.;}\r
77\r
a7d9ab9e 78 virtual void GetIntegratedTimes(Double_t */*times*/) const { return; }\r
79 virtual Double_t GetTRDmomentum(Int_t /*plane*/, Double_t */*sp*/=0x0) const {return 0.;}\r
80 virtual void GetHMPIDpid(Double_t */*p*/) const {;}\r
81 \r
82 virtual ULong_t GetStatus() const = 0;\r
83 virtual Bool_t GetXYZ(Double_t *p) const = 0;\r
84 virtual Double_t GetBz() const;\r
85 virtual void GetBxByBz(Double_t b[3]) const;\r
86 virtual Bool_t GetCovarianceXYZPxPyPz(Double_t cv[21]) const = 0;\r
87 virtual Bool_t PropagateToDCA(const AliVVertex *vtx,Double_t b,Double_t maxd,Double_t dz[2],Double_t covar[3]) = 0;\r
88 virtual const AliExternalTrackParam * GetOuterParam() const { return NULL; }\r
89 virtual Int_t GetNcls(Int_t /*idet*/) const { return 0; }\r
90 virtual Bool_t GetPxPyPz(Double_t */*p*/) const { return kFALSE; }\r
91 virtual void SetID(Short_t /*id*/) {;}\r
3f2db92f 92 virtual Int_t GetTOFBunchCrossing(Double_t = 0) const { return kTOFBCNA;}\r
a7d9ab9e 93\r
94 ClassDef(AliVTrack,1) // base class for tracks\r
95};\r
96\r
97#endif\r