o one more fix: the weight need to stay in order. Funny ...
[u/mrichter/AliRoot.git] / TPC / Upgrade / macros / GetComposedResidualDistortion.C
index 9bd5c92fb777c92cb5c43f2adcfbfeaa2a52f38a..0f84f2941ed3f2c10ca73125aa9d2c115d545d5c 100644 (file)
@@ -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);