From edac2b831f631c99d10ec01ceddfc600b29841b1 Mon Sep 17 00:00:00 2001 From: wiechula Date: Wed, 30 Oct 2013 10:28:47 +0000 Subject: [PATCH] o fixes --- TPC/Upgrade/AliToyMCEventGenerator.cxx | 3 +-- TPC/Upgrade/AliToyMCEventGenerator.h | 4 ++-- TPC/Upgrade/AliToyMCEventGeneratorSimple.cxx | 3 +++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/TPC/Upgrade/AliToyMCEventGenerator.cxx b/TPC/Upgrade/AliToyMCEventGenerator.cxx index c0f8bc968e3..d52aab10f80 100644 --- a/TPC/Upgrade/AliToyMCEventGenerator.cxx +++ b/TPC/Upgrade/AliToyMCEventGenerator.cxx @@ -725,7 +725,6 @@ void AliToyMCEventGenerator::IterateSC(Int_t ipos) return; } - SetSCScalingFactor(); } //________________________________________________________________ @@ -772,7 +771,7 @@ void AliToyMCEventGenerator::SetSCScalingFactor() // between the fluctuation map and the average map // - if ( !(fTPCCorrection && fTPCCorrectionAv && fEvent) ) return; + if ( !(HasSCList() && fTPCCorrection && fTPCCorrectionAv && fEvent) ) return; // loop over several z, r and phi bins and find a factor that minimises // the distortions between the current map and the average map diff --git a/TPC/Upgrade/AliToyMCEventGenerator.h b/TPC/Upgrade/AliToyMCEventGenerator.h index 4cc296caef3..7a7a024ae5a 100644 --- a/TPC/Upgrade/AliToyMCEventGenerator.h +++ b/TPC/Upgrade/AliToyMCEventGenerator.h @@ -93,7 +93,8 @@ class AliToyMCEventGenerator : public TObject { Bool_t CloseOutputFile(); void FillTree(); void IterateSC(Int_t ipos=-1); - + void SetSCScalingFactor(); + UInt_t fCurrentTrack; // unique track id within the current event generation @@ -116,7 +117,6 @@ class AliToyMCEventGenerator : public TObject { Bool_t fPrereadSCList; // preread all SC files from the SC list void InitSpaceChargeList(); - void SetSCScalingFactor(); ClassDef(AliToyMCEventGenerator, 1) diff --git a/TPC/Upgrade/AliToyMCEventGeneratorSimple.cxx b/TPC/Upgrade/AliToyMCEventGeneratorSimple.cxx index 3125e7a5a48..8123181b39d 100644 --- a/TPC/Upgrade/AliToyMCEventGeneratorSimple.cxx +++ b/TPC/Upgrade/AliToyMCEventGeneratorSimple.cxx @@ -190,6 +190,7 @@ void AliToyMCEventGeneratorSimple::RunSimulation(const Int_t nevents/*=10*/, con for (Int_t ievent=0; ievent