o one more fix: the weight need to stay in order. Funny ...
[u/mrichter/AliRoot.git] / TPC / Upgrade / macros / AnaDelta.C
index 6f71a78e1fd46687fc11f9a8fa0a2bb114ec61ab..791c87d7e926b32bf882932a993be4c4ed8ae51e 100644 (file)
@@ -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);
   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.);
   residualDistortion->SetWeights(&weights);
 
   TVectorD *vR   = MakeLinBinning(10,86.,250.);