30 Bool_t EventRunCut::Init(Int_t format_id) {
31 std::vector<int> runs;
32 if (fListFile.Length() == 0 && fRuns.size() == 0) {
33 Cout::PrintInfo(Form(
"Lack of run list in %s", this->ClassName()), EInfo::kWarning);
37 if (fListFile.EndsWith(
".xml")) {
40 if (fLabel.Length() > 0) {
42 if (root ==
nullptr) {
43 Cout::PrintInfo(Form(
"Lack of runs %s in file %s", fLabel.Data(), fListFile.Data()), EInfo::kWarning);
47 TString name =
"bad_runs";
48 if (fMode == EMode::kGood) { name =
"good_runs"; }
51 if (xmlRuns ==
nullptr) {
52 Cout::PrintInfo(Form(
"Lack of run list in file %s", fListFile.Data()), EInfo::kWarning);
57 runs.push_back(val.Atoi());
74 return EventExpCut::Init(format_id);