]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Avoiding crash in crash in GetELossRandomKFastR
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 10 Apr 2012 13:03:44 +0000 (13:03 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 10 Apr 2012 13:03:44 +0000 (13:03 +0000)
Marta Verweij <Marta.Verweij@cern.ch>

PYTHIA6/AliPythia6.cxx

index 7039bf76f65e298579baf034ae9e91a9a2aa5346..dc8ab6572c59b62ecb13974164cb81850725a54c 100644 (file)
@@ -868,7 +868,8 @@ void  AliPythia6::Quench()
 
 
        Int_t itype = (qPdg[j] == 21) ? 2 : 1;
-       Double_t eloss = fQuenchingWeights->GetELossRandomKFast(itype, int0[j], int1[j], eq[j]);
+       //      Double_t eloss = fQuenchingWeights->GetELossRandomKFast(itype, int0[j], int1[j], eq[j]);
+       Double_t eloss = fQuenchingWeights->GetELossRandomK(itype, int0[j], int1[j], eq[j]);
 
        if (TMath::Abs(yq[j]) > 2.5 || eq[j] < 10.) {
            fZQuench[j] = 0.;