1 #include "run_index_list.h"
12 for (
auto&
r : list)
Add(
r);
48 TString separator = (no_commas ?
" " :
", ");
52 list +=
r.as_string();
131 while (!_list.
End()) {
133 if (
n.Contains(
"-")) {
136 for (
auto run : nl) {
137 runs_all_files.
Add(run);
140 else if (!
n.Contains(
".")) {
141 runs_all_files.
Add(
n.Atoi());
145 n.ReplaceAll(
".0",
".-1");
149 if (!runs_all_files.
IsEmpty()) {
151 for (
auto& run : full_list) {
152 if (runs_all_files.
Contains(run.run()))
184 if (tmp.Length() > maxlen) {
185 Int_t len_left = maxlen - 3;
186 Int_t len_start = len_left / 2;
187 Int_t len_end = len_left - len_start;
188 TString tmp2 = tmp(0, len_start);
190 tmp2 += tmp2(tmp2.
Length() - len_end, tmp2.
Length() - 1);
210 for (
auto& t : tmp) {
224 for (
auto&
r : *
this)
l.Add(
r.run());
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t b
Strings used to represent a set of ranges of values.
Bool_t Contains(Int_t val) const
returns kTRUE if the value 'val' is contained in the ranges defined by the number list
void Add(Int_t)
Add value 'n' to the list.
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
void Begin(TString delim) const
KVString Next(Bool_t strip_whitespace=kFALSE) const
List of runfiles specified by run number and file index ,.
TString AsString(Int_t maxlen=0) const
void SetListSelection(const TString &slist, const run_index_list &full_list)
std::set< run_index_t > fRunList
void Remove(const run_index_t &r)
void Inter(const run_index_list &)
void Add(const run_index_t &r)
TString GetList(bool no_commas=true) const
void SetList(const TString &slist)
KVNumberList GetRunNumberList() const
Returns just the list of run numbers.
bool Contains(const run_index_t &r) const
Specifies a runfile according to run number and file index ,.
Double_t Max(Double_t a, Double_t b)