We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4183d1a commit 3e629abCopy full SHA for 3e629ab
source/framework/core/src/TRestRun.cxx
@@ -39,14 +39,14 @@ ClassImp(TRestRun);
39
TRestRun::TRestRun() { Initialize(); }
40
41
TRestRun::TRestRun(string filename) {
42
- if (filename.find(".root") == string::npos) {
+ if (filename.find(".root") != string::npos) {
43
Initialize();
44
OpenInputFile(filename);
45
- } else if (filename.find(".rml") == string::npos) {
+ } else if (filename.find(".rml") != string::npos) {
46
47
- LoadConfigFromFile(filename);
+ LoadConfigFromFile(filename);
48
} else {
49
- // ferr << "TRestRun::TRestRun(): input file error!" << endl;
+ ferr << "TRestRun::TRestRun(): input file error!" << endl;
50
}
51
52
0 commit comments