]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/FORWARD/analysis2/AliFMDMCCorrector.cxx
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliFMDMCCorrector.cxx
index cd92d9976e739c52ec5c9f00a0be6c3f898327bc..3838a484192901c76ee8f5239c4041ff703c4be6 100644 (file)
@@ -21,6 +21,7 @@
 #include <TList.h>
 #include <TMath.h>
 #include "AliForwardCorrectionManager.h"
+#include "AliFMDCorrSecondaryMap.h"
 #include "AliFMDCorrVertexBias.h"
 #include "AliLog.h"
 #include <TH2D.h>
@@ -251,6 +252,12 @@ AliFMDMCCorrector::CreateOutputObjects(TList* dir)
   fComps->SetName("esd_mc_comparison");
   d->Add(fComps);
 }
+#define PFB(N,FLAG)                            \
+  do {                                                                 \
+    AliForwardUtil::PrintName(N);                                      \
+    std::cout << std::boolalpha << (FLAG) << std::noboolalpha << std::endl; \
+  } while(false)
+
 //____________________________________________________________________
 void
 AliFMDMCCorrector::Print(Option_t* option) const
@@ -260,13 +267,10 @@ AliFMDMCCorrector::Print(Option_t* option) const
   // Parameters:
   //    option Not used 
   //
-  char ind[gROOT->GetDirLevel()+1];
-  for (Int_t i = 0; i < gROOT->GetDirLevel(); i++) ind[i] = ' ';
-  ind[gROOT->GetDirLevel()] = '\0';
   AliFMDCorrector::Print(option);
-  std::cout << std::boolalpha
-            << ind << " Use sec. map on MC:     " << fSecondaryForMC 
-            << std::noboolalpha << std::endl;
+  gROOT->IncreaseDirLevel();
+  PFB("Use sec. map on MC", fSecondaryForMC);
+  gROOT->DecreaseDirLevel();
 }
 
 //____________________________________________________________________