use AliLog to print EMCAL info and move some output to debug
authorjklay <jklay@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 Oct 2006 18:48:25 +0000 (18:48 +0000)
committerjklay <jklay@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 Oct 2006 18:48:25 +0000 (18:48 +0000)
EMCAL/AliEMCALDigitizer.cxx
EMCAL/AliEMCALSDigitizer.cxx
EMCAL/AliEMCALShishKebabTrd1Module.cxx
EMCAL/AliEMCALv0.cxx

index 44e4be3..46b774b 100644 (file)
@@ -69,6 +69,7 @@
 #include "TObjectTable.h"
 
 // --- AliRoot header files ---
+#include "AliLog.h"
 #include "AliRun.h"
 #include "AliRunDigitizer.h"
 #include "AliRunLoader.h"
@@ -498,6 +499,7 @@ void AliEMCALDigitizer::Exec(Option_t *option)
   } 
 
   if (strstr(option,"print")) {
+
     Print();
     return ; 
   }
@@ -540,8 +542,8 @@ void AliEMCALDigitizer::Exec(Option_t *option)
 
   if(strstr(option,"tim")){
     gBenchmark->Stop("EMCALDigitizer");
-    printf("Exec: took %f seconds for Digitizing %f seconds per event", 
-        gBenchmark->GetCpuTime("EMCALDigitizer"), gBenchmark->GetCpuTime("EMCALDigitizer")/nEvents ) ;
+    AliInfo(Form("Exec: took %f seconds for Digitizing %f seconds per event", 
+        gBenchmark->GetCpuTime("EMCALDigitizer"), gBenchmark->GetCpuTime("EMCALDigitizer")/nEvents )) ;
   } 
 }
 
index b9d5cc2..2d3b902 100644 (file)
@@ -178,7 +178,20 @@ void AliEMCALSDigitizer::InitParameters()
 
  // threshold for deposit energy of hit
   fECPrimThreshold  = 0.; // 24-nov-04 - was 1.e-6;
-  Print("");
+
+  AliDebug(2,Form("Print: \n------------------- %s -------------\n",GetName()));
+  AliDebug(2,Form("   fInit                                 %i\n", int(fInit)));
+  AliDebug(2,Form("   fFirstEvent                           %i\n", fFirstEvent));
+  AliDebug(2,Form("   fLastEvent                            %i\n", fLastEvent));
+  AliDebug(2,Form("   Writing SDigits to branch with title  %s\n", fEventFolderName.Data()));
+  AliDebug(2,Form("   with digitization parameters       A = %f\n", fA));
+  AliDebug(2,Form("                                      B = %f\n", fB));
+  AliDebug(2,Form("   Threshold for EC Primary assignment  = %f\n", fECPrimThreshold));
+  AliDebug(2,Form("   Sampling                             = %f\n", fSampling));
+  AliDebug(2,Form("---------------------------------------------------\n"));
+
+  //  Print("");
+
 }
 
 //____________________________________________________________________________
@@ -187,7 +200,19 @@ void AliEMCALSDigitizer::Exec(Option_t *option)
   // Collects all hit of the same tower into digits
   TString o(option); o.ToUpper();
   if (strstr(option, "print") ) {
-    Print() ; 
+
+    AliDebug(2,Form("Print: \n------------------- %s -------------\n",GetName()));
+    AliDebug(2,Form("   fInit                                 %i\n", int(fInit)));
+    AliDebug(2,Form("   fFirstEvent                           %i\n", fFirstEvent));
+    AliDebug(2,Form("   fLastEvent                            %i\n", fLastEvent));
+    AliDebug(2,Form("   Writing SDigits to branch with title  %s\n", fEventFolderName.Data()));
+    AliDebug(2,Form("   with digitization parameters       A = %f\n", fA));
+    AliDebug(2,Form("                                      B = %f\n", fB));
+    AliDebug(2,Form("   Threshold for EC Primary assignment  = %f\n", fECPrimThreshold));
+    AliDebug(2,Form("   Sampling                             = %f\n", fSampling));
+    AliDebug(2,Form("---------------------------------------------------\n"));
+
+    //    Print();
     return ; 
   }
   
index 56a8b1f..fc26e45 100644 (file)
@@ -23,6 +23,7 @@
 // http://pdsfweb01.nersc.gov/~pavlinov/ALICE/SHISHKEBAB/RES/shishkebabALICE.html
 //_________________________________________________________________________
 
+#include "AliLog.h"
 #include "AliEMCALShishKebabTrd1Module.h"
 //#include <assert.h>
 #include "AliEMCALGeometry.h"
@@ -63,7 +64,7 @@ AliEMCALShishKebabTrd1Module::AliEMCALShishKebabTrd1Module(Double_t theta, AliEM
     }
   } else Warning("AliEMCALShishKebabTrd1Module(theta)","You should call this constractor just once !!");
   DefineName(fTheta);
-  cout<< "AliEMCALShishKebabTrd1Module - first module:  theta " << fTheta << " geometry " << g << endl;  
+  AliInfo(Form("AliEMCALShishKebabTrd1Module - first module:  theta %1.4f geometry %s",fTheta,g->GetName()));  
 }
 
 //_____________________________________________________________________________
index 1a4cbff..c8cd9fa 100644 (file)
@@ -369,7 +369,7 @@ void AliEMCALv0::CreateGeometry()
 
     if(gn.Contains("SHISH")){
       // COMPACT, TWIST, TRD2 or TRD1
-      AliInfo(Form("Shish-Kebab geometry : %s", GetTitle())); 
+      AliDebug(2,Form("Shish-Kebab geometry : %s", GetTitle())); 
       CreateShishKebabGeometry();
     }
 }