diff --git a/StRoot/macros/rootlogoff.C b/StRoot/macros/rootlogoff.C index 661712dcac2..6fa2c7632d9 100644 --- a/StRoot/macros/rootlogoff.C +++ b/StRoot/macros/rootlogoff.C @@ -1,10 +1,7 @@ { if (TClassTable::GetDict("StMaker")) { - StMaker* mk = StMaker::GetChain(); - if (mk) { - mk->Finish(); - } + gROOT->Macro("rootlogoff2.C"); } std::cout << "\nThis is the end of STAR ROOT -- Goodbye\n" << std::endl; diff --git a/StRoot/macros/rootlogoff2.C b/StRoot/macros/rootlogoff2.C new file mode 100644 index 00000000000..1440421a1ea --- /dev/null +++ b/StRoot/macros/rootlogoff2.C @@ -0,0 +1,6 @@ +{ + StMaker* mk = StMaker::GetChain(); + if (mk) { + mk->Finish(); + } +}