bug fix
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 26 Apr 2012 11:05:38 +0000 (11:05 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 26 Apr 2012 11:05:38 +0000 (11:05 +0000)
PWGPP/forward/SPDClustTask/AliSPDClustTask.cxx

index cc2e4af..935d177 100755 (executable)
@@ -490,7 +490,7 @@ Int_t AliSPDClustTask::FindMotherParticle(AliStack* stack, Int_t i)
 //________________________________________________________________________
 Double_t AliSPDClustTask::PtWeight(Double_t pt, Int_t pdgCode)
 {
-  switch (pdgCode) {
+  switch (TMath::Abs(pdgCode)) {
   case 211:
     return fhPtPionIn->GetBinContent(fhPtPionIn->FindBin(pt));
   case 321: