1 #include "run_index_list.h"
13 for (
auto&
r : list)
Add(
r);
49 TString separator = (no_commas ?
" " :
", ");
50 for (
auto&
r : fRunList) {
53 list +=
r.as_string();
132 while (!_list.
End()) {
134 if (
n.Contains(
"-")) {
137 for (
auto run : nl) {
138 runs_all_files.
Add(run);
141 else if (!
n.Contains(
".")) {
142 runs_all_files.
Add(
n.Atoi());
146 n.ReplaceAll(
".0",
".-1");
150 if (!runs_all_files.
IsEmpty()) {
152 for (
auto& run : full_list) {
153 if (runs_all_files.
Contains(run.run()))
185 if (tmp.Length() > maxlen) {
186 Int_t len_left = maxlen - 3;
187 Int_t len_start = len_left / 2;
188 Int_t len_end = len_left - len_start;
189 TString tmp2 = tmp(0, len_start);
191 tmp2 += tmp2(tmp2.
Length() - len_end, tmp2.
Length() - 1);
211 for (
auto& t : tmp) {
225 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)
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)