Getter for HMPID signal added.
[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
18\r
19class AliVTrack: public AliVParticle {\r
20\r
21public:\r
22 enum {\r
23 kITSin=0x0001,kITSout=0x0002,kITSrefit=0x0004,kITSpid=0x0008,\r
24 kTPCin=0x0010,kTPCout=0x0020,kTPCrefit=0x0040,kTPCpid=0x0080,\r
25 kTRDin=0x0100,kTRDout=0x0200,kTRDrefit=0x0400,kTRDpid=0x0800,\r
26 kTOFin=0x1000,kTOFout=0x2000,kTOFrefit=0x4000,kTOFpid=0x8000,\r
27 kTOFmismatch=0x100000,\r
28 kHMPIDout=0x10000,kHMPIDpid=0x20000,\r
29 kEMCALmatch=0x40000,\r
30 kPHOSmatch=0x200000,\r
31 kTRDbackup =0x80000,\r
32 kTRDStop=0x20000000,\r
33 kESDpid=0x40000000,\r
34 kTIME=0x80000000,\r
35 kGlobalMerge=0x08000000,\r
36 kITSpureSA=0x10000000,\r
37 kMultInV0 =0x2000000, //BIT(25): assumed to be belong to V0 in multiplicity estimates\r
38 kMultSec =0x4000000, //BIT(26): assumed to be secondary (due to the DCA) in multiplicity estimates\r
39 kEmbedded =0x8000000 // BIT(27), 1<<27: Is a track that has been embedded into the event\r
40 };\r
41 enum {\r
42 kTRDnPlanes = 6,\r
3f2db92f 43 kEMCALNoMatch = -4096,\r
44 kTOFBCNA = -100\r
a7d9ab9e 45 };\r
46\r
47 AliVTrack() { }\r
48 virtual ~AliVTrack() { }\r
49 AliVTrack(const AliVTrack& vTrack); \r
50 AliVTrack& operator=(const AliVTrack& vTrack);\r
51\r
52 virtual Int_t GetID() const = 0;\r
53 virtual UChar_t GetITSClusterMap() const = 0;\r
54 virtual Float_t GetTPCClusterInfo(Int_t /*nNeighbours*/, Int_t /*type*/, Int_t /*row0*/=0, Int_t /*row1*/=159) const {return 0.;}\r
55 virtual UShort_t GetTPCNcls() const { return 0;}\r
56 virtual UShort_t GetTPCNclsF() const { return 0;}\r
57 virtual Double_t GetTRDslice(Int_t /*plane*/, Int_t /*slice*/) const { return -1.; }\r
99e9d5ec 58 virtual UChar_t GetTRDntrackletsPID() const { return 0;}\r
a7d9ab9e 59 \r
60 virtual Int_t GetEMCALcluster() const {return -1;}\r
61 virtual void SetEMCALcluster(Int_t) {;}\r
62 virtual Bool_t IsEMCAL() const {return kFALSE;}\r
63\r
64 virtual Int_t GetPHOScluster() const {return -1;}\r
65 virtual void SetPHOScluster(Int_t) {;}\r
66 virtual Bool_t IsPHOS() const {return kFALSE;}\r
67 \r
68 //pid info\r
69 virtual Double_t GetITSsignal() const {return 0.;}\r
70 virtual Double_t GetTPCsignal() const {return 0.;}\r
71 virtual UShort_t GetTPCsignalN() const {return 0 ;}\r
72 virtual Double_t GetTPCmomentum() const {return 0.;}\r
73 virtual Double_t GetTOFsignal() const {return 0.;}\r
72b35cc8 74 virtual Double_t GetHMPIDsignal() const {return 0.;}\r
75\r
a7d9ab9e 76 virtual void GetIntegratedTimes(Double_t */*times*/) const { return; }\r
77 virtual Double_t GetTRDmomentum(Int_t /*plane*/, Double_t */*sp*/=0x0) const {return 0.;}\r
78 virtual void GetHMPIDpid(Double_t */*p*/) const {;}\r
79 \r
80 virtual ULong_t GetStatus() const = 0;\r
81 virtual Bool_t GetXYZ(Double_t *p) const = 0;\r
82 virtual Double_t GetBz() const;\r
83 virtual void GetBxByBz(Double_t b[3]) const;\r
84 virtual Bool_t GetCovarianceXYZPxPyPz(Double_t cv[21]) const = 0;\r
85 virtual Bool_t PropagateToDCA(const AliVVertex *vtx,Double_t b,Double_t maxd,Double_t dz[2],Double_t covar[3]) = 0;\r
86 virtual const AliExternalTrackParam * GetOuterParam() const { return NULL; }\r
87 virtual Int_t GetNcls(Int_t /*idet*/) const { return 0; }\r
88 virtual Bool_t GetPxPyPz(Double_t */*p*/) const { return kFALSE; }\r
89 virtual void SetID(Short_t /*id*/) {;}\r
3f2db92f 90 virtual Int_t GetTOFBunchCrossing(Double_t = 0) const { return kTOFBCNA;}\r
a7d9ab9e 91\r
92 ClassDef(AliVTrack,1) // base class for tracks\r
93};\r
94\r
95#endif\r