From 6b435cdeb85d371663ec0abc3252bdc5cc3f796c Mon Sep 17 00:00:00 2001 From: morsch Date: Wed, 16 Aug 2006 08:20:41 +0000 Subject: [PATCH] More EffC++ warnings corrected. In Quench(), max number of gluons 30. --- PYTHIA6/AliPythia.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/PYTHIA6/AliPythia.cxx b/PYTHIA6/AliPythia.cxx index ba02c52167e..b9a4db4b791 100644 --- a/PYTHIA6/AliPythia.cxx +++ b/PYTHIA6/AliPythia.cxx @@ -1,3 +1,4 @@ + /************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * @@ -70,6 +71,8 @@ AliPythia::AliPythia(): } AliPythia::AliPythia(const AliPythia& pythia): + TPythia6(pythia), + AliRndm(pythia), fProcess(kPyMb), fEcms(0.), fStrucFunc(kCTEQ5L), @@ -623,8 +626,7 @@ void AliPythia::InitQuenching(Float_t cMin, Float_t cMax, Float_t k, Int_t iECMe // (1) The quenching model using quenching weights according to C. Salgado and U. Wiedemann // (2) The nuclear geometry using the Glauber Model // - - + fGlauber = new AliFastGlauber(); fGlauber->Init(2); fGlauber->SetCentralityClass(cMin, cMax); @@ -750,7 +752,7 @@ void AliPythia::Quench() // // Avoid complete loss // - if (fZQuench[j] == 1.) fZQuench[j] = 0.95; + if (fZQuench[j] == 1.) fZQuench[j] = 0.97; // // Some debug printing @@ -779,7 +781,7 @@ void AliPythia::Quench() if (!quenched[isys]) continue; nGluon[isys] = 1 + Int_t(fZQuench[isys] / (1. - fZQuench[isys])); - if (nGluon[isys] > 6) nGluon[isys] = 6; + if (nGluon[isys] > 30) nGluon[isys] = 30; zquench[isys] = 1. - TMath::Power(1. - fZQuench[isys], 1./Double_t(nGluon[isys])); wjtKick[isys] = wjtKick[isys] / TMath::Sqrt(Double_t(nGluon[isys])); -- 2.39.3