o one more fix: the weight need to stay in order. Funny ...
authorwiechula <wiechula@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Nov 2013 17:34:33 +0000 (17:34 +0000)
committerwiechula <wiechula@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Nov 2013 17:34:33 +0000 (17:34 +0000)
TPC/Upgrade/macros/AnaDelta.C
TPC/Upgrade/macros/GetComposedResidualDistortion.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.);
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);
   // 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;
   if (rescale) {
     Float_t dummy=0;
-    weights(0)=-AliToyMCEventGenerator::GetSCScalingFactor(corrFluct, corrAverage,dummy);
+    weights(1)=-AliToyMCEventGenerator::GetSCScalingFactor(corrFluct, corrAverage,dummy);
   }
   residualDistortion->SetWeights(&weights);
 
   }
   residualDistortion->SetWeights(&weights);