From 7e3d0fcb25581db4b578da20f196ab019af1fc62 Mon Sep 17 00:00:00 2001 From: Daniel Wielanek Date: Thu, 19 Dec 2024 22:06:33 +0100 Subject: [PATCH] Small improvements in description and debug info of analysis manager. --- analysis/fluctuations/MultiplicityAna.h | 2 +- data/io/AnalysisManager.cxx | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/analysis/fluctuations/MultiplicityAna.h b/analysis/fluctuations/MultiplicityAna.h index e3ae0e09..cc6fb3a6 100644 --- a/analysis/fluctuations/MultiplicityAna.h +++ b/analysis/fluctuations/MultiplicityAna.h @@ -23,7 +23,7 @@ namespace Hal { namespace Hal { /** - * plots number of tracks that passed event and trank cuts + * plots number of tracks that passed event and track cuts * can be used e.g. to define the distribution of given particles as a function of centrality */ diff --git a/data/io/AnalysisManager.cxx b/data/io/AnalysisManager.cxx index aa9f9908..4555ef5d 100644 --- a/data/io/AnalysisManager.cxx +++ b/data/io/AnalysisManager.cxx @@ -32,6 +32,7 @@ namespace Hal { Bool_t AnalysisManager::Init() { Cout::PrintInfo("=== AnalysisManager::Init ===", EInfo::kInfo); if (fSource == nullptr) exit(0); + Cout::PrintInfo("=== Source::Init ===", EInfo::kInfo); Bool_t initSource = fSource->Init(); if (!initSource) { Cout::PrintInfo("Can't init source!", EInfo::kCriticalError); } fManager = fSource->GetIOManager(); @@ -40,6 +41,7 @@ namespace Hal { exit(0); } if (fField == nullptr) { fField = new MagField(); } + Cout::PrintInfo("=== Setting up the manager ===", EInfo::kInfo); fManager->SetField(fField); fManager->SetOutput(fOutputFile); fManager->Init(); @@ -67,8 +69,8 @@ namespace Hal { } Cout::PrintInfo("=== Init tasks ===", EInfo::kInfo); for (auto task : fTasks) { + Cout::PrintInfo(Form("==> Init task %s", task->ClassName()), EInfo::kDebugInfo); Task::EInitFlag stat = task->Init(); - Cout::PrintInfo(Form(" Init task %s", task->ClassName()), EInfo::kDebugInfo); switch (stat) { case Task::EInitFlag::kERROR: { Cout::PrintInfo(Form(" Task %s go to passive mode", task->ClassName()), EInfo::kDebugInfo); @@ -85,7 +87,12 @@ namespace Hal { } } if (fActiveTriggers.size() > 0) { fTriggersEnabled = kTRUE; } + Cout::PrintInfo("=== Locking unused branches ===", EInfo::kDebugInfo); fManager->LockUnusedBranches(); // lock unused branches by setting status to zero + if (Hal::Cout::GetVerboseMode() <= EInfo::kDebugInfo) { + Cout::PrintInfo("=== Manager status ===", EInfo::kDebugInfo); + fManager->PrintInfo(); + } return kTRUE; }