From e4c65254f5dcc995eb69a4909dd627d92ef714e1 Mon Sep 17 00:00:00 2001 From: wiechula Date: Thu, 14 Nov 2013 17:34:33 +0000 Subject: [PATCH] o one more fix: the weight need to stay in order. Funny ... --- TPC/Upgrade/macros/AnaDelta.C | 4 ++-- TPC/Upgrade/macros/GetComposedResidualDistortion.C | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/TPC/Upgrade/macros/AnaDelta.C b/TPC/Upgrade/macros/AnaDelta.C index 6f71a78e1fd..791c87d7e92 100644 --- a/TPC/Upgrade/macros/AnaDelta.C +++ b/TPC/Upgrade/macros/AnaDelta.C @@ -240,8 +240,8 @@ void AnaDeltaResiduals(TString fluctuationMap, TString averageMap, TString outFi AliTPCComposedCorrection *residualDistortion = new AliTPCComposedCorrection(arrMaps, AliTPCComposedCorrection::kQueueResidual); Float_t dummy=0; TVectorD weights(2); - weights(1)=+1.; - weights(0)=-AliToyMCEventGenerator::GetSCScalingFactor(corrFluct, corrAverage,dummy); + weights(0)=+1.; + weights(1)=-AliToyMCEventGenerator::GetSCScalingFactor(corrFluct, corrAverage,dummy); residualDistortion->SetWeights(&weights); TVectorD *vR = MakeLinBinning(10,86.,250.); diff --git a/TPC/Upgrade/macros/GetComposedResidualDistortion.C b/TPC/Upgrade/macros/GetComposedResidualDistortion.C index 9bd5c92fb77..0f84f2941ed 100644 --- a/TPC/Upgrade/macros/GetComposedResidualDistortion.C +++ b/TPC/Upgrade/macros/GetComposedResidualDistortion.C @@ -36,11 +36,11 @@ AliTPCComposedCorrection* GetComposedResidualDistortion(TString fluctuationMap, // The second map for the corrections AliTPCComposedCorrection *residualDistortion = new AliTPCComposedCorrection(arrMaps, AliTPCComposedCorrection::kQueueResidual); TVectorD weights(2); - weights(1)=+1.; - weights(0)=-1.; + weights(0)=+1.; + weights(1)=-1.; if (rescale) { Float_t dummy=0; - weights(0)=-AliToyMCEventGenerator::GetSCScalingFactor(corrFluct, corrAverage,dummy); + weights(1)=-AliToyMCEventGenerator::GetSCScalingFactor(corrFluct, corrAverage,dummy); } residualDistortion->SetWeights(&weights); -- 2.43.0