diff --git a/bin/checkEventNtuple b/bin/checkEventNtuple index 86b2eaa..b6fd228 100755 --- a/bin/checkEventNtuple +++ b/bin/checkEventNtuple @@ -24,7 +24,7 @@ def main(): h = f.Get("EventNtuple/version") print("{} contains EventNtuple v{:02.0f}_{:02.0f}_{:02.0f}".format(filename, h.GetBinContent(1), h.GetBinContent(2), h.GetBinContent(3))) else: - print("{} histogram does not exist in {} (it is v06_02_00 or older)".format(histname, filename)) + print("{} histogram does not exist in {} (it is either v06_02_00 or older)".format(histname, filename)) else: print("{}/ folder does not exist in {}".format(foldername, filename)) except OSError: diff --git a/utils/rooutil/inc/RooUtil.hh b/utils/rooutil/inc/RooUtil.hh index 312e095..504a41b 100644 --- a/utils/rooutil/inc/RooUtil.hh +++ b/utils/rooutil/inc/RooUtil.hh @@ -49,13 +49,13 @@ public: TFile* file = new TFile(filename.c_str(), "READ"); TH1I* hVersion = (TH1I*) file->Get("EventNtuple/version"); if (!hVersion) { - std::cout << "Warning: this EventNtuple file does not contain a version number. This is just a warning..." << std::endl; + std::cout << "Warning: this EventNtuple file does not contain a version number. It is either v06_02_00 or older. This is just a warning..." << std::endl; } else { majorVer = hVersion->GetBinContent(1); minorVer = hVersion->GetBinContent(2); patchVer = hVersion->GetBinContent(3); - std::cout << "EventNtuple v" << majorVer << "." << minorVer << "." << patchVer << std::endl; + std::cout << "EventNtuple v" << std::setw(2) << std::setfill('0') << majorVer << "_" << minorVer << "_" << patchVer << std::endl; } file->Close(); delete file;