From afbebc5933e940fd6b02abf0abacf291af8c865b Mon Sep 17 00:00:00 2001 From: rvernet Date: Mon, 23 Nov 2009 15:36:34 +0000 Subject: [PATCH] fixed case when cut list is not defined (M. Floris) --- CORRFW/AliCFManager.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CORRFW/AliCFManager.cxx b/CORRFW/AliCFManager.cxx index 045c57317b9..3e697868497 100644 --- a/CORRFW/AliCFManager.cxx +++ b/CORRFW/AliCFManager.cxx @@ -257,7 +257,11 @@ void AliCFManager::SetParticleCutsList(Int_t isel, TObjArray* array) { Int_t nstep = fNStepPart ; - if (!fPartCutList) fPartCutList = new TObjArray*[nstep] ; + if (!fPartCutList) { + fPartCutList = new TObjArray*[nstep] ; + for (Int_t istep = 0; istep < nstep; istep++) fPartCutList[istep] = 0; + } + if (isel >= nstep) { AliWarning(Form("Selection index out of Range! isel=%i, max. number of selections= %i", isel,nstep)); return; -- 2.43.0