Fix for bug #49840: ESD track modification for TRD [request] (Alex)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 May 2009 12:30:40 +0000 (12:30 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 May 2009 12:30:40 +0000 (12:30 +0000)
STEER/AliESDtrack.h
TRD/AliTRDtrackV1.cxx

index aea5a86..8e2f403 100644 (file)
@@ -208,8 +208,11 @@ public:
   
 // A.Bercuci
   void    SetTRDntracklets(UChar_t q){fTRDntracklets = q;}
-  UChar_t GetTRDntrackletsPID() const {return (fTRDntracklets>>3)&7;}
-  UChar_t GetTRDntracklets() const {return fTRDntracklets&7;}
+  UChar_t GetTRDntracklets() const {return (fTRDntracklets>>3)&7;}
+  UChar_t GetTRDntrackletsPID() const {return fTRDntracklets&7;}
+  // TEMPORARY alias asked by the HFE group to allow 
+  // reading of the v4-16-Release data with TRUNK related software (A.Bercuci@Apr 30th 09) 
+  UChar_t GetTRDpidQuality() const {return GetTRDntrackletsPID();}
 // end A.Bercuci
 
   void     SetNumberOfTRDslices(Int_t n);
index 32138cb..4925a6c 100644 (file)
@@ -810,7 +810,7 @@ void AliTRDtrackV1::UpdateESDtrack(AliESDtrack *track)
   if(!nPID) track->SetTRDntracklets(n);
   else {
     track->SetTRDpid(fPID);
-    n |= (nPID<<3);
-    track->SetTRDntracklets(n);
+    nPID |= (n<<3);
+    track->SetTRDntracklets(nPID);
   }
 }