From c80ef52f50631f4322da826d1ddd2e10b52ff5a8 Mon Sep 17 00:00:00 2001 From: Florian Uhlig <f.uhlig@gsi.de> Date: Tue, 20 Jul 2021 11:32:16 +0200 Subject: [PATCH] Properly destruct the TGeoManger If the ROOT session is closed after the macro has finished the TGeoManger has to be properly destructed. This is done calling the macro RemoveGeoManager. Add thecall in macro where it was missing. --- .../common/analysis_tree_converter/run_analysis_tree_maker.C | 2 +- macro/much/run_ana.C | 2 +- macro/tof/digitizer/run_tof_disim.C | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/macro/analysis/common/analysis_tree_converter/run_analysis_tree_maker.C b/macro/analysis/common/analysis_tree_converter/run_analysis_tree_maker.C index f6e6f19c02..946956482c 100644 --- a/macro/analysis/common/analysis_tree_converter/run_analysis_tree_maker.C +++ b/macro/analysis/common/analysis_tree_converter/run_analysis_tree_maker.C @@ -179,5 +179,5 @@ void run_analysis_tree_maker(TString dataSet = "../../../run/test", TString setu // Generate_CTest_Dependency_File(depFile); // ------------------------------------------------------------------------ - // RemoveGeoManager(); + RemoveGeoManager(); } diff --git a/macro/much/run_ana.C b/macro/much/run_ana.C index 0ee142fc0e..e478cba99f 100644 --- a/macro/much/run_ana.C +++ b/macro/much/run_ana.C @@ -101,5 +101,5 @@ void run_ana(Int_t nEvents = 1000, TString dataSet = "muons", TString setup = "s cout << " Test passed" << endl; cout << " All ok " << endl; - // RemoveGeoManager(); + RemoveGeoManager(); } diff --git a/macro/tof/digitizer/run_tof_disim.C b/macro/tof/digitizer/run_tof_disim.C index 367661b776..680715dd27 100644 --- a/macro/tof/digitizer/run_tof_disim.C +++ b/macro/tof/digitizer/run_tof_disim.C @@ -227,4 +227,6 @@ void run_tof_disim(Int_t nEvents = 2, const char* setup = "sis100_electron") cout << " Test passed" << endl; cout << " All ok " << endl; + + RemoveGeoManager(); } -- GitLab