]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDtrack.h
Protection against div. by 0 in the Set(xyz,p..) for tracks with momentum along X...
[u/mrichter/AliRoot.git] / STEER / AliESDtrack.h
index d8919b1078587e046bda9e36a6e34b86590dfd09..ea9f5c2019cee917b5d25c7177a66f75916adb14 100644 (file)
@@ -190,6 +190,9 @@ public:
   Char_t   GetITSclusters(Int_t *idx) const;
   UChar_t GetITSClusterMap() const {return fITSClusterMap;}
   UChar_t GetITSSharedMap() const {return fITSSharedMap;}
+  void    SetITSSharedFlag(int lr) {fITSSharedMap |= 0x1<<lr;}
+  Bool_t  GetITSFakeFlag()   const {return (fITSSharedMap&BIT(7))!=0;}
+  void    SetITSFakeFlag(Bool_t v=kTRUE)  {if (v) fITSSharedMap|=BIT(7); else fITSSharedMap&=~BIT(7);}  
   void    SetITSSharedMap(UChar_t map) {fITSSharedMap=map;}
   void    SetITSModuleIndex(Int_t ilayer,Int_t idx) {fITSModule[ilayer]=idx;}
   Int_t   GetITSModuleIndex(Int_t ilayer) const {return fITSModule[ilayer];}
@@ -231,9 +234,10 @@ public:
   Double_t GetTPCsignal() const {return fTPCsignal;}
   Double_t GetTPCsignalSigma() const {return fTPCsignalS;}
   UShort_t GetTPCsignalN() const {return fTPCsignalN;}
+  Double_t GetTPCmomentum() const {return fIp?fIp->GetP():GetP();}
   Double_t GetTPCchi2() const {return fTPCchi2;}
   Double_t GetTPCchi2Iter1() const {return fTPCchi2Iter1;}
-  UShort_t   GetTPCclusters(Int_t *idx) const;
+  UShort_t GetTPCclusters(Int_t *idx) const;
   Double_t GetTPCdensity(Int_t row0, Int_t row1) const;
   Int_t   GetTPCLabel() const {return fTPCLabel;}
   Int_t   GetKinkIndex(Int_t i) const { return fKinkIndexes[i];}