diff --git a/source/framework/core/src/TRestRun.cxx b/source/framework/core/src/TRestRun.cxx index 688656beb..6aee7e41d 100644 --- a/source/framework/core/src/TRestRun.cxx +++ b/source/framework/core/src/TRestRun.cxx @@ -41,7 +41,7 @@ TRestRun::TRestRun() { Initialize(); } TRestRun::TRestRun(string filename) { if (filename.find(".root") == string::npos) { Initialize(); - OpenInputFile(rootfilename); + OpenInputFile(filename); } else if (filename.find(".rml") == string::npos) { Initialize(); LoadConfigFromFile(filename);