]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/FORWARD/analysis2/AliFMDMCCorrector.cxx
New script to generate overview index. Javascript code to
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliFMDMCCorrector.cxx
index ba9b14e797691e6528bb632b64ecfa44c1d6a39c..3838a484192901c76ee8f5239c4041ff703c4be6 100644 (file)
@@ -252,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
@@ -261,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();
 }
 
 //____________________________________________________________________