Protected current event printout by the debug level
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 3 Mar 2010 11:13:47 +0000 (11:13 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 3 Mar 2010 11:13:47 +0000 (11:13 +0000)
ANALYSIS/AliAnalysisManager.cxx

index d4d90c8..adcfc67 100644 (file)
@@ -183,9 +183,8 @@ Int_t AliAnalysisManager::GetEntry(Long64_t entry, Int_t getall)
 {
 // Read one entry of the tree or a whole branch.
    static Int_t itot = 0;
-   printf("MGR: Processing event #%d\n", itot);
+   if (fDebug > 1) printf("MGR: Processing event #%d (entry %lld)\n", itot, entry);
    itot++;
-   if (fDebug > 0) printf("== AliAnalysisManager::GetEntry(%lld)\n", entry);
    fCurrentEntry = entry;
    return fTree ? fTree->GetTree()->GetEntry(entry, getall) : 0;
 }