Skip to content

Commit

Permalink
TRestRun constructor. Fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jgalan committed Mar 26, 2022
1 parent 4183d1a commit 3e629ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/framework/core/src/TRestRun.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ ClassImp(TRestRun);
TRestRun::TRestRun() { Initialize(); }

TRestRun::TRestRun(string filename) {
if (filename.find(".root") == string::npos) {
if (filename.find(".root") != string::npos) {
Initialize();
OpenInputFile(filename);
} else if (filename.find(".rml") == string::npos) {
} else if (filename.find(".rml") != string::npos) {
Initialize();
LoadConfigFromFile(filename);
LoadConfigFromFile(filename);
} else {
// ferr << "TRestRun::TRestRun(): input file error!" << endl;
ferr << "TRestRun::TRestRun(): input file error!" << endl;
}
}

Expand Down

0 comments on commit 3e629ab

Please sign in to comment.