Skip to content

Commit 3e629ab

Browse files
committed
TRestRun constructor. Fixing typo
1 parent 4183d1a commit 3e629ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/framework/core/src/TRestRun.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ ClassImp(TRestRun);
3939
TRestRun::TRestRun() { Initialize(); }
4040

4141
TRestRun::TRestRun(string filename) {
42-
if (filename.find(".root") == string::npos) {
42+
if (filename.find(".root") != string::npos) {
4343
Initialize();
4444
OpenInputFile(filename);
45-
} else if (filename.find(".rml") == string::npos) {
45+
} else if (filename.find(".rml") != string::npos) {
4646
Initialize();
47-
LoadConfigFromFile(filename);
47+
LoadConfigFromFile(filename);
4848
} else {
49-
// ferr << "TRestRun::TRestRun(): input file error!" << endl;
49+
ferr << "TRestRun::TRestRun(): input file error!" << endl;
5050
}
5151
}
5252

0 commit comments

Comments
 (0)