o one more fix: the weight need to stay in order. Funny ...
[u/mrichter/AliRoot.git] / TPC / Upgrade / macros / GetComposedResidualDistortion.C
index a5c640bea82f5f84c86bb6af7725bc06edb6afcb..0f84f2941ed3f2c10ca73125aa9d2c115d545d5c 100644 (file)
@@ -25,8 +25,11 @@ AliTPCComposedCorrection* GetComposedResidualDistortion(TString fluctuationMap,
   fAverage.Close();
 
   TObjArray *arrMaps = new TObjArray(2);
-  arrMaps->Add(corrFluct);   // distortion with the fluctuation Map
+  // !!!!! In AliTPCComposedCorrection::GetDistortion MakeInverseIterator is called !!!!
+  // for this reason we have to add the maps in the wrong order
+  
   arrMaps->Add(corrAverage); // correction with the average Map
+  arrMaps->Add(corrFluct);   // distortion with the fluctuation Map
 
   // create the composed correction
   // if the weight are set to +1 and -1, the first map will be responsible for the distortions