From edb69485e121a096e0f9a69aaa2d10afca3f7b98 Mon Sep 17 00:00:00 2001 From: cvetan Date: Thu, 13 Jan 2011 14:37:19 +0000 Subject: [PATCH 1/1] Adding the individual channel mult in order to be used in the event plane calculation. --- STEER/AliESDUtils.cxx | 5 ++++- STEER/AliESDUtils.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/STEER/AliESDUtils.cxx b/STEER/AliESDUtils.cxx index 6f185266ca8..608906934f2 100644 --- a/STEER/AliESDUtils.cxx +++ b/STEER/AliESDUtils.cxx @@ -30,7 +30,7 @@ #include "AliESDVZERO.h" //______________________________________________________________________________ -Float_t AliESDUtils::GetCorrV0(const AliESDEvent* esd, Float_t &v0CorrResc) +Float_t AliESDUtils::GetCorrV0(const AliESDEvent* esd, Float_t &v0CorrResc, Float_t *v0multChCorr) { // Correct V0 non-linearity, prepare a version rescaled to SPD2 corr. // Please describe better parameters... @@ -126,6 +126,9 @@ Float_t AliESDUtils::GetCorrV0(const AliESDEvent* esd, Float_t &v0CorrResc) multCorr2 += (multChCorr[i]/par0[i]/64.); } v0CorrResc = multCorr2; + if (v0multChCorr) + for(Int_t i = 0; i < 64; ++i) v0multChCorr[i] = multChCorr[i]; + return multCorr; } diff --git a/STEER/AliESDUtils.h b/STEER/AliESDUtils.h index ea3d275dc34..ae4ae3cd4c7 100644 --- a/STEER/AliESDUtils.h +++ b/STEER/AliESDUtils.h @@ -27,7 +27,7 @@ namespace AliESDUtils { /* Centrality-related corrections */ /********************************/ - Float_t GetCorrV0(const AliESDEvent* esd, Float_t &v0CorrResc); + Float_t GetCorrV0(const AliESDEvent* esd, Float_t &v0CorrResc, Float_t *v0multChCorr = NULL); Float_t GetCorrSPD2(Float_t spd2raw,Float_t zv); } -- 2.31.1