Skip to content

Commit

Permalink
Small improvements in description and debug info of analysis manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielWielanek committed Dec 19, 2024
1 parent eedc6a3 commit 7e3d0fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion analysis/fluctuations/MultiplicityAna.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

Expand Down
9 changes: 8 additions & 1 deletion data/io/AnalysisManager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down Expand Up @@ -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);
Expand All @@ -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;
}

Expand Down

0 comments on commit 7e3d0fc

Please sign in to comment.