Deacresing the size of the log file output (Christian Klein-Boesing)
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 15 Nov 2009 12:23:14 +0000 (12:23 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 15 Nov 2009 12:23:14 +0000 (12:23 +0000)
PWG3/muon/AliAnalysisTaskESDMuonFilter.cxx

index 33acf9a..007c80d 100644 (file)
@@ -72,7 +72,7 @@ void AliAnalysisTaskESDMuonFilter::UserExec(Option_t */*option*/)
 {
   // Execute analysis for current event                                            
   Long64_t ientry = Entry();
-  printf("Muon Filter: Analysing event # %5d\n", (Int_t) ientry);
+  if(fDebug)printf("Muon Filter: Analysing event # %5d\n", (Int_t) ientry);
   
   ConvertESDtoAOD();
 }
@@ -109,7 +109,7 @@ void AliAnalysisTaskESDMuonFilter::ConvertESDtoAOD()
   
   // Read primary vertex from AOD event 
   AliAODVertex *primary = AODEvent()->GetPrimaryVertex();
-  primary->Print();
+  if(fDebug)primary->Print();
   
   // Loop on muon tracks to fill the AOD track branch
   Int_t nMuTracks = esd->GetNumberOfMuonTracks();