]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDgtuTrack.cxx
Implementation the function AliTRDPreprocessor::ProcessDCS()
[u/mrichter/AliRoot.git] / TRD / AliTRDgtuTrack.cxx
index 47befff89aa9b58ad47460cb461d7cf46fde9efe..3b7335bfdccbaeec20bf238f2d9136234b43f145 100644 (file)
@@ -33,7 +33,7 @@
 #include "AliTRDcalibDB.h"
 #include "AliTRDltuTracklet.h"
 #include "AliTRDgtuTrack.h"
-#include "Cal/AliTRDCalPIDLQ.h"
+#include "Cal/AliTRDCalPID.h"
 
 ClassImp(AliTRDgtuTrack)
 
@@ -390,7 +390,7 @@ void AliTRDgtuTrack::MakePID()
     AliError("No instance of AliTRDcalibDB.");
     return;  
   }
-  const AliTRDCalPIDLQ *pd = calibration->GetPIDLQObject();
+  const AliTRDCalPID *pd = calibration->GetPIDObject(1);
   
   AliTRDltuTracklet *trk;
   Int_t   nTracklets = GetNtracklets();
@@ -448,8 +448,15 @@ void AliTRDgtuTrack::MakePID()
 
     // HEAD28Mar06 new distributions: factor = 6.0
 
-    probEle *= pd->GetProbability(0,TMath::Abs(fPt),q*6.0);
-    probPio *= pd->GetProbability(2,TMath::Abs(fPt),q*6.0);
+               // A.Bercuci on 2nd May 2007
+               // Temporary modification to deal with more energy slices. The values
+               // attached to charge slices and track length are dummy
+                Float_t dedx[3];
+                dedx[0] = dedx[1] = q*3.; dedx[2] = 0.;
+                Float_t length = 3.7;
+
+    probEle *= pd->GetProbability(0, TMath::Abs(fPt), dedx, length, 0);
+    probPio *= pd->GetProbability(2, TMath::Abs(fPt), dedx, length, 0);
 
   }