ATLAS Offline Software
Classes | Typedefs | Functions
TableUtils Namespace Reference

Classes

struct  MultiColumnTable
 
struct  Range
 
struct  Range2D
 
struct  StatTable
 

Typedefs

using SummandDefinition = std::pair< std::size_t, int >
 
using RatioDefinition = std::pair< std::vector< SummandDefinition >, std::vector< SummandDefinition > >
 

Functions

template<class T_Stream , typename T_Counter >
T_Stream & dumpTable (T_Stream &out, Range< T_Counter > counter, const Range< std::string > &label, const std::string &label_prefix, const std::size_t column_width, const std::size_t min_label_width, const bool dump_footer, const bool separate_last_row, const unsigned int precision)
 
template<class T_Stream , typename T_Counter >
T_Stream & dumpTable (T_Stream &out, Range2D< T_Counter > counter, const Range< std::string > &row_label, const Range< std::string > &column_label, const std::string &top_left_label, const std::string &label_prefix, const std::size_t column_width, const std::size_t min_label_width, const bool dump_header, const bool dump_footer, const bool separate_last_row, const std::vector< unsigned int > &precision)
 
template<typename T_index , class T_string >
std::vector< std::string > makeLabelVector (T_index n_entries, std::initializer_list< std::pair< T_index, T_string > > a_list)
 
template<class T_Collection >
std::size_t maxLabelWidth (const T_Collection &col)
 
constexpr std::size_t categoryStride ([[maybe_unused]] const std::size_t categories, [[maybe_unused]] const std::size_t sub_categories, [[maybe_unused]] const std::size_t n_counter)
 
constexpr std::size_t subCategoryStride ([[maybe_unused]] const std::size_t categories, [[maybe_unused]] const std::size_t sub_categories, [[maybe_unused]] const std::size_t n_counter)
 
constexpr std::size_t counterStride ([[maybe_unused]] const std::size_t categories, [[maybe_unused]] const std::size_t sub_categories, [[maybe_unused]] const std::size_t n_counter)
 
template<typename T_Output , typename T_Input , const std::size_t N>
std::vector< T_Output > createCounterArrayWithProjections (const std::size_t categories, const std::size_t sub_categories, const std::vector< std::array< T_Input, N > > &input_counts)
 
template<typename T >
RatioDefinition defineSimpleRatio (T numerator, T denominator)
 
template<typename T >
std::tuple< std::string, RatioDefinitiondefineSimpleRatio (std::string &&name, T numerator, T denominator)
 
template<typename T >
SummandDefinition defineSummand (T counter_idx, int multiplier)
 
std::size_t computeSum (const std::vector< SummandDefinition > &sum_def, std::size_t eta_offset, std::size_t row_stride, std::size_t seed_i, const std::vector< std::size_t > &stat)
 
float computeRatio (std::size_t numerator, std::size_t denominator)
 
float computeRatio (const RatioDefinition &ratio_def, std::size_t eta_offset, std::size_t row_stride, std::size_t seed_i, const std::vector< std::size_t > &stat)
 
std::tuple< std::string, RatioDefinitionmakeRatioDefinition (std::string &&name, std::vector< SummandDefinition > &&numerator, std::vector< SummandDefinition > &&denominator)
 
std::tuple< std::vector< std::string >, std::vector< RatioDefinition > > splitRatioDefinitionsAndLabels (std::initializer_list< std::tuple< std::string, RatioDefinition > > a_ratio_list)
 
constexpr std::size_t categoryStride ([[maybe_unused]] const std::size_t categories, [[maybe_unused]] const std::size_t sub_categories, [[maybe_unused]] const std::vector< RatioDefinition > &ratio_def)
 
std::size_t subCategoryStride ([[maybe_unused]] const std::size_t categories, [[maybe_unused]] const std::size_t sub_categories, [[maybe_unused]] const std::vector< RatioDefinition > &ratio_def)
 
constexpr std::size_t ratioStride ([[maybe_unused]] const std::size_t categories, [[maybe_unused]] const std::size_t sub_categories, [[maybe_unused]] const std::vector< RatioDefinition > &ratio_def)
 
std::vector< float > computeRatios (const std::vector< RatioDefinition > &ratio_def, const std::size_t categories, const std::size_t sub_categories, const std::vector< std::size_t > &counter)
 
std::string makeBinLabel (const std::string &variable_name, const std::vector< float > &bins, std::size_t bin_i, bool abs_value=false, int precision=1)
 
std::string makeEtaBinLabel (const std::vector< float > &eta_bins, std::size_t eta_bin_i, bool abs_eta=false)
 

Typedef Documentation

◆ RatioDefinition

using TableUtils::RatioDefinition = typedef std::pair< std::vector< SummandDefinition >, std::vector< SummandDefinition > >

Definition at line 375 of file TableUtils.h.

◆ SummandDefinition

using TableUtils::SummandDefinition = typedef std::pair<std::size_t, int>

Definition at line 374 of file TableUtils.h.

Function Documentation

◆ categoryStride() [1/2]

constexpr std::size_t TableUtils::categoryStride ( [[maybe_unused] ] const std::size_t  categories,
[[maybe_unused] ] const std::size_t  sub_categories,
[[maybe_unused] ] const std::size_t  n_counter 
)
inlineconstexpr

Definition at line 297 of file TableUtils.h.

299  {
300  return 1;
301  }

◆ categoryStride() [2/2]

constexpr std::size_t TableUtils::categoryStride ( [[maybe_unused] ] const std::size_t  categories,
[[maybe_unused] ] const std::size_t  sub_categories,
[[maybe_unused] ] const std::vector< RatioDefinition > &  ratio_def 
)
inlineconstexpr

Definition at line 461 of file TableUtils.h.

463  {
464  return 1;
465  }

◆ computeRatio() [1/2]

float TableUtils::computeRatio ( const RatioDefinition ratio_def,
std::size_t  eta_offset,
std::size_t  row_stride,
std::size_t  seed_i,
const std::vector< std::size_t > &  stat 
)
inline

Definition at line 422 of file TableUtils.h.

426  {
427  std::size_t numerator=computeSum(ratio_def.first, eta_offset, row_stride, seed_i, stat);
428  std::size_t denominator=!ratio_def.second.empty()
429  ? computeSum(ratio_def.second, eta_offset, row_stride, seed_i, stat)
430  : 1;
431  return computeRatio(numerator,denominator);
432  }

◆ computeRatio() [2/2]

float TableUtils::computeRatio ( std::size_t  numerator,
std::size_t  denominator 
)
inline

Definition at line 412 of file TableUtils.h.

412  {
413  return numerator!=0 ? static_cast<float>(numerator/static_cast<double>(denominator)) : 0.f;
414  }

◆ computeRatios()

std::vector< float > TableUtils::computeRatios ( const std::vector< RatioDefinition > &  ratio_def,
const std::size_t  categories,
const std::size_t  sub_categories,
const std::vector< std::size_t > &  counter 
)

Definition at line 21 of file TableUtils.cxx.

25  {
26  std::vector<float> ratio;
27  if (counter.size() % (categories*sub_categories) ) {
28  std::stringstream msg;
29  msg << "Category and sub category dimensions " << categories << " * " << sub_categories
30  << " not a common factor of the input counter vector "
31  << counter.size();
32  throw std::logic_error(msg.str());
33  }
34  std::size_t n_counter = counter.size() / (categories*sub_categories);
35  ratio.resize( categories * ratio_def.size() * sub_categories);
36 
37  std::size_t input_counter_stride=categories;
38  std::size_t input_sub_category_stride = categories * n_counter;
39  std::size_t ratio_stride = categories;
40  std::size_t ratio_sub_category_stride = ratio_stride * ratio_def.size();
41 
42  for (std::size_t sub_category_i=0; sub_category_i < sub_categories; ++sub_category_i) {
43  for (std::size_t ratio_i=0; ratio_i<ratio_def.size(); ++ratio_i) {
44  for (std::size_t category_i=0; category_i<categories; ++category_i) {
45  std::size_t ratio_dest_idx = sub_category_i * ratio_sub_category_stride + ratio_stride * ratio_i + category_i;
46  assert(ratio_dest_idx < ratio.size());
47  assert( sub_category_i * input_sub_category_stride < counter.size() );
48  assert( sub_category_i * input_sub_category_stride + n_counter * input_counter_stride <= counter.size() );
49  ratio[ratio_dest_idx] = computeRatio( ratio_def.at(ratio_i),
50  sub_category_i * input_sub_category_stride,
51  input_counter_stride,
52  category_i,
53  counter);
54  }
55  }
56  }
57  return ratio;
58  }

◆ computeSum()

std::size_t TableUtils::computeSum ( const std::vector< SummandDefinition > &  sum_def,
std::size_t  eta_offset,
std::size_t  row_stride,
std::size_t  seed_i,
const std::vector< std::size_t > &  stat 
)

Definition at line 8 of file TableUtils.cxx.

12  {
13  std::size_t sum=0;
14  for (const SummandDefinition &summand : sum_def ) {
15  assert( eta_offset + row_stride * summand.first + seed_i < stat.size() );
16  sum += stat[eta_offset + row_stride * summand.first + seed_i ] * summand.second;
17  }
18  return sum;
19  }

◆ counterStride()

constexpr std::size_t TableUtils::counterStride ( [[maybe_unused] ] const std::size_t  categories,
[[maybe_unused] ] const std::size_t  sub_categories,
[[maybe_unused] ] const std::size_t  n_counter 
)
inlineconstexpr

Definition at line 307 of file TableUtils.h.

309  {
310  return (categories+1);
311  }

◆ createCounterArrayWithProjections()

template<typename T_Output , typename T_Input , const std::size_t N>
std::vector<T_Output> TableUtils::createCounterArrayWithProjections ( const std::size_t  categories,
const std::size_t  sub_categories,
const std::vector< std::array< T_Input, N > > &  input_counts 
)

Definition at line 320 of file TableUtils.h.

322  {
323  if (categories*sub_categories!= input_counts.size()) {
324  std::stringstream msg;
325  msg << "Category dimensions (" << categories << " * " << sub_categories << "="
326  << (categories * sub_categories) << ") and input counter container size "
327  << input_counts.size() << " do not match.";
328  throw std::logic_error(msg.str());
329  }
330  std::vector<T_Output> output_counts;
331  output_counts.resize((categories+1) * (sub_categories+1) * N);
332  const std::size_t sub_category_stride = subCategoryStride(categories, sub_categories, N);
333  const std::size_t counter_stride = counterStride(categories, sub_categories, N);
334  const std::size_t category_stride = categoryStride(categories, sub_categories, N);
335  // project seeds
336  for (std::size_t sub_category_i=0;
337  sub_category_i < sub_categories;
338  ++sub_category_i) {
339  for (std::size_t category_i=0; category_i<categories; ++category_i) {
340  std::size_t src_idx = category_i * sub_categories + sub_category_i;
341  std::size_t dest_idx_base = sub_category_i * sub_category_stride + 0 * counter_stride;
342  std::size_t dest_idx_project_categories_base = dest_idx_base;
343  dest_idx_base += category_i * category_stride;
344  dest_idx_project_categories_base += categories * category_stride;
345 
346  for (std::size_t counter_i=0; counter_i<N; ++counter_i) {
347  std::size_t dest_idx=dest_idx_base + counter_i * counter_stride;
348  assert( src_idx < input_counts.size() && counter_i < input_counts[src_idx].size());
349  assert( dest_idx < output_counts.size());
350  output_counts[dest_idx] = input_counts[src_idx][counter_i];
351  assert( dest_idx_project_categories_base + counter_i * counter_stride < output_counts.size());
352  output_counts[dest_idx_project_categories_base + counter_i * counter_stride] += output_counts[dest_idx];
353  }
354  }
355  }
356  // project eta bins
357  for (std::size_t category_i=0; category_i<=categories; ++category_i) {
358  for (std::size_t counter_i=0; counter_i<N; ++counter_i) {
359  std::size_t dest_idx_base = 0 * sub_category_stride + counter_i * counter_stride + category_i;
360  std::size_t dest_idx_project_sub_categories = sub_categories * sub_category_stride + dest_idx_base;
361  assert( dest_idx_project_sub_categories < output_counts.size() );
362  for (std::size_t sub_category_i=0;
363  sub_category_i<sub_categories;
364  ++sub_category_i) {
365  std::size_t sub_category_idx = dest_idx_base + sub_category_i * sub_category_stride;
366  assert( sub_category_idx < output_counts.size() );
367  output_counts[dest_idx_project_sub_categories] += output_counts[sub_category_idx];
368  }
369  }
370  }
371  return output_counts;
372  }

◆ defineSimpleRatio() [1/2]

template<typename T >
std::tuple< std::string, RatioDefinition > TableUtils::defineSimpleRatio ( std::string &&  name,
numerator,
denominator 
)
inline

Definition at line 390 of file TableUtils.h.

390  {
391  return std::make_pair( std::move(name), defineSimpleRatio(numerator, denominator) );
392  }

◆ defineSimpleRatio() [2/2]

template<typename T >
RatioDefinition TableUtils::defineSimpleRatio ( numerator,
denominator 
)
inline

Definition at line 382 of file TableUtils.h.

382  {
383  return std::make_pair( std::vector< SummandDefinition > { std::make_pair(static_cast<std::size_t>(numerator),1)},
384  std::vector< SummandDefinition > { std::make_pair(static_cast<std::size_t>(denominator),1)});
385  }

◆ defineSummand()

template<typename T >
SummandDefinition TableUtils::defineSummand ( counter_idx,
int  multiplier 
)
inline

Definition at line 400 of file TableUtils.h.

400  {
401  return std::make_pair(static_cast<std::size_t>(counter_idx), multiplier) ;
402  }

◆ dumpTable() [1/2]

template<class T_Stream , typename T_Counter >
T_Stream& TableUtils::dumpTable ( T_Stream &  out,
Range2D< T_Counter >  counter,
const Range< std::string > &  row_label,
const Range< std::string > &  column_label,
const std::string &  top_left_label,
const std::string &  label_prefix,
const std::size_t  column_width,
const std::size_t  min_label_width,
const bool  dump_header,
const bool  dump_footer,
const bool  separate_last_row,
const std::vector< unsigned int > &  precision 
)

Definition at line 151 of file TableUtils.h.

162  {
163  if (counter && row_label && column_label
164  && counter.equalSize(row_label)
165  && counter.nColumns() == column_label.size()) {
166  std::size_t max_size =std::max(top_left_label.size(), static_cast<std::size_t>(min_label_width));
167  for (const std::string &name : row_label ) {
168  max_size = std::max(max_size, name.size() + label_prefix.size());
169  }
170  std::size_t the_width = column_width;
171  for (const std::string &name : column_label ) {
172  the_width = std::max(the_width, name.size());
173  }
174  std::size_t total_size =max_size+2*2;
175  for (std::size_t column_i=0; column_i<column_label.size(); ++column_i) {
176  total_size += the_width + 3;
177  }
178  std::string line(total_size, '-');
179  std::size_t pos=0;
180  line[pos]='|';
181  pos += max_size+3;
182  for (std::size_t column_i=0; column_i<column_label.size(); ++column_i) {
183  line[pos]='|';
184  pos += the_width + 3;
185  }
186  line[line.size()-1]='|';
187  if (dump_header) {
188  out << line << std::endl << "| " << std::setw(max_size) << top_left_label << " |" << std::left;
189  for (const std::string &header : column_label ) {
190  out << " " << std::setw(the_width) << header << " |";
191  }
192  out << std::right << std::endl;
193  }
194  out << line << std::endl;
195  std::size_t idx=0;
196  std::string empty;
197  auto default_precision = out.precision();
198  for (const Range<T_Counter> &a_row : counter) {
199  if (separate_last_row && idx+1 == row_label.size()) {
200  out << line << std::endl;
201  }
202  assert( idx < row_label.size());
203  out << "| " << (label_prefix.empty() ? std::left : std::right)
204  << std::setw(label_prefix.size()) << ( idx==0 ? label_prefix : empty)
205  << std::setw(max_size-label_prefix.size()) << row_label[idx] << std::right << " |";
206  unsigned int col_i=0;
207  for (const T_Counter &a : a_row) {
208  out << " "
209  << std::setprecision( (col_i < precision.size()
210  && precision[col_i] != std::numeric_limits<unsigned int>::max())
211  ? precision[col_i]
212  : default_precision)
213  << std::setw(the_width) << a << " |";
214  ++col_i;
215  }
216  out << std::endl;
217  ++idx;
218  }
219  out << std::setprecision(default_precision);
220  if (dump_footer) {
221  out << line;
222  }
223  }
224  return out;
225  }

◆ dumpTable() [2/2]

template<class T_Stream , typename T_Counter >
T_Stream& TableUtils::dumpTable ( T_Stream &  out,
Range< T_Counter >  counter,
const Range< std::string > &  label,
const std::string &  label_prefix,
const std::size_t  column_width,
const std::size_t  min_label_width,
const bool  dump_footer,
const bool  separate_last_row,
const unsigned int  precision 
)

Definition at line 103 of file TableUtils.h.

111  {
112  if (counter && label && counter.equalSize(label)) {
113  std::size_t max_size =min_label_width;
114  for (const std::string &name : label ) {
115  max_size = std::max(max_size, name.size());
116  }
117  const std::size_t total_size =max_size+3+2*2+column_width;
118  std::string line(total_size, '-');
119  std::array<std::size_t,3> vertical_line_pos{0u, max_size+3, line.size()-1};
120  for (std::size_t pos : vertical_line_pos) {
121  line[pos]='|';
122  }
123  out << line << std::endl;
124  std::size_t idx=0;
125  std::string empty;
126  auto default_precision = out.precision();
127  for (const T_Counter &a : counter) {
128  if (separate_last_row && idx+1 == label.size()) {
129  out << line << std::endl;
130  }
131  assert( idx < label.size());
132  out << "| " << (label_prefix.empty() ? std::left : std::right)
133  << std::setw(label_prefix.size()) << ( idx==0 ? label_prefix : empty)
134  << std::setw(max_size-label_prefix.size()) << label[idx] << std::right
135  << std::setprecision( precision != std::numeric_limits<unsigned int>::max() ? precision : default_precision)
136  << " | " << std::setw(column_width) << a << " |" << std::endl;
137  ++idx;
138  }
139  out << std::setprecision(default_precision);
140  if (dump_footer) {
141  out << line << std::endl;
142  }
143  }
144  return out;
145  }

◆ makeBinLabel()

std::string TableUtils::makeBinLabel ( const std::string &  variable_name,
const std::vector< float > &  bins,
std::size_t  bin_i,
bool  abs_value = false,
int  precision = 1 
)
inline

Definition at line 483 of file TableUtils.h.

487  {
488  std::stringstream range_label;
489  range_label << std::fixed << std::setprecision(precision);
490  if (bin_i==bins.size()+1) {
491  range_label << " All " << variable_name;
492  }
493  else {
494  if (bin_i==0) {
495  std::stringstream value_str;
496  value_str << std::fixed << std::setprecision(precision) << 0.;
497  range_label << std::setw(4) << (abs_value ? value_str.str().c_str() : "-inf") << "-";
498  }
499  else {
500  range_label << std::setw(4) << bins.at(bin_i-1) <<"-";
501  }
502  if (bin_i>=bins.size()) {
503  range_label << std::setw(4) << "+inf";
504  }
505  else {
506  range_label << std::setw(4) << bins.at(bin_i);
507  }
508  }
509  return range_label.str();
510  }

◆ makeEtaBinLabel()

std::string TableUtils::makeEtaBinLabel ( const std::vector< float > &  eta_bins,
std::size_t  eta_bin_i,
bool  abs_eta = false 
)
inline

Definition at line 512 of file TableUtils.h.

514  {
515  return TableUtils::makeBinLabel("eta",eta_bins, eta_bin_i,abs_eta, 1);
516  }

◆ makeLabelVector()

template<typename T_index , class T_string >
std::vector<std::string> TableUtils::makeLabelVector ( T_index  n_entries,
std::initializer_list< std::pair< T_index, T_string > >  a_list 
)

Definition at line 273 of file TableUtils.h.

275  {
276  std::vector<std::string> labels;
277  labels.resize( n_entries );
278  if (a_list.size() != n_entries) {
279  throw std::logic_error("Expected number of entries and elements in the initializer lists do not match.");
280  }
281  for ( auto elm : a_list) {
282  labels.at(elm.first) = std::move(elm.second);
283  }
284  return labels;
285  }

◆ makeRatioDefinition()

std::tuple< std::string, RatioDefinition> TableUtils::makeRatioDefinition ( std::string &&  name,
std::vector< SummandDefinition > &&  numerator,
std::vector< SummandDefinition > &&  denominator 
)
inline

Definition at line 436 of file TableUtils.h.

438  {
439  return std::make_tuple(std::move(name),
440  std::make_pair(std::move(numerator),
441  std::move(denominator)));
442  }

◆ maxLabelWidth()

template<class T_Collection >
std::size_t TableUtils::maxLabelWidth ( const T_Collection &  col)

Definition at line 288 of file TableUtils.h.

288  {
289  std::size_t max_width=0u;
290  for (const auto &elm : col ) {
291  max_width = std::max( max_width, elm.size());
292  }
293  return max_width;
294  }

◆ ratioStride()

constexpr std::size_t TableUtils::ratioStride ( [[maybe_unused] ] const std::size_t  categories,
[[maybe_unused] ] const std::size_t  sub_categories,
[[maybe_unused] ] const std::vector< RatioDefinition > &  ratio_def 
)
inlineconstexpr

Definition at line 471 of file TableUtils.h.

473  {
474  return (categories);
475  }

◆ splitRatioDefinitionsAndLabels()

std::tuple<std::vector<std::string>, std::vector<RatioDefinition> > TableUtils::splitRatioDefinitionsAndLabels ( std::initializer_list< std::tuple< std::string, RatioDefinition > >  a_ratio_list)
inline

Definition at line 446 of file TableUtils.h.

447  {
448  std::tuple< std::vector<std::string>, std::vector<RatioDefinition> > splitted;
449  std::get<0>(splitted).reserve( a_ratio_list.size() );
450  for ( auto a_ratio : a_ratio_list) {
451  std::get<0>(splitted).emplace_back( std::move(std::get<0>(a_ratio)) );
452  }
453  std::get<1>(splitted).reserve( a_ratio_list.size() );
454  for ( auto a_ratio : a_ratio_list) {
455  std::get<1>(splitted).emplace_back( std::move(std::get<1>(a_ratio)) );
456  }
457  return splitted;
458  }

◆ subCategoryStride() [1/2]

constexpr std::size_t TableUtils::subCategoryStride ( [[maybe_unused] ] const std::size_t  categories,
[[maybe_unused] ] const std::size_t  sub_categories,
[[maybe_unused] ] const std::size_t  n_counter 
)
inlineconstexpr

Definition at line 302 of file TableUtils.h.

304  {
305  return (categories+1) * n_counter;
306  }

◆ subCategoryStride() [2/2]

std::size_t TableUtils::subCategoryStride ( [[maybe_unused] ] const std::size_t  categories,
[[maybe_unused] ] const std::size_t  sub_categories,
[[maybe_unused] ] const std::vector< RatioDefinition > &  ratio_def 
)
inline

Definition at line 466 of file TableUtils.h.

468  {
469  return (categories) * ratio_def.size();
470  }
checkFileSG.line
line
Definition: checkFileSG.py:75
header
Definition: hcg.cxx:526
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
PlotCalibFromCool.label
label
Definition: PlotCalibFromCool.py:78
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
TableUtils::categoryStride
constexpr std::size_t categoryStride([[maybe_unused]] const std::size_t categories, [[maybe_unused]] const std::size_t sub_categories, [[maybe_unused]] const std::vector< RatioDefinition > &ratio_def)
Definition: TableUtils.h:461
JetTiledMap::N
@ N
Definition: TiledEtaPhiMap.h:44
empty
bool empty(TH1 *h)
Definition: computils.cxx:295
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:77
TableUtils::Range::size
std::size_t size() const
Definition: TableUtils.h:45
TableUtils::computeSum
std::size_t computeSum(const std::vector< SummandDefinition > &sum_def, std::size_t eta_offset, std::size_t row_stride, std::size_t seed_i, const std::vector< std::size_t > &stat)
Definition: TableUtils.cxx:8
beamspotnt.labels
list labels
Definition: bin/beamspotnt.py:1447
TableUtils::counterStride
constexpr std::size_t counterStride([[maybe_unused]] const std::size_t categories, [[maybe_unused]] const std::size_t sub_categories, [[maybe_unused]] const std::size_t n_counter)
Definition: TableUtils.h:307
convertTimingResiduals.sum
sum
Definition: convertTimingResiduals.py:55
TableUtils::makeBinLabel
std::string makeBinLabel(const std::string &variable_name, const std::vector< float > &bins, std::size_t bin_i, bool abs_value=false, int precision=1)
Definition: TableUtils.h:483
chainDump.column_width
column_width
Definition: chainDump.py:17
plotting.yearwise_luminosity_vs_mu.bins
bins
Definition: yearwise_luminosity_vs_mu.py:30
ReadTripsProbsFromCool.denominator
denominator
Definition: ReadTripsProbsFromCool.py:96
beamspotman.stat
stat
Definition: beamspotman.py:266
TableUtils::computeRatio
float computeRatio(const RatioDefinition &ratio_def, std::size_t eta_offset, std::size_t row_stride, std::size_t seed_i, const std::vector< std::size_t > &stat)
Definition: TableUtils.h:422
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
Range
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
Definition: DetectorDescription/Identifier/Identifier/Range.h:29
query_example.col
col
Definition: query_example.py:7
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
mergePhysValFiles.categories
list categories
Definition: PhysicsAnalysis/JetTagging/JetTagValidation/JetTagDQA/scripts/mergePhysValFiles.py:18
a
TList * a
Definition: liststreamerinfos.cxx:10
python.compareTCTs.ratio
ratio
Definition: compareTCTs.py:295
TableUtils::defineSimpleRatio
std::tuple< std::string, RatioDefinition > defineSimpleRatio(std::string &&name, T numerator, T denominator)
Definition: TableUtils.h:390
TableUtils::subCategoryStride
std::size_t subCategoryStride([[maybe_unused]] const std::size_t categories, [[maybe_unused]] const std::size_t sub_categories, [[maybe_unused]] const std::vector< RatioDefinition > &ratio_def)
Definition: TableUtils.h:466
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
test_pyathena.counter
counter
Definition: test_pyathena.py:15
TableUtils::SummandDefinition
std::pair< std::size_t, int > SummandDefinition
Definition: TableUtils.h:374
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
TableUtils::computeRatio
float computeRatio(std::size_t numerator, std::size_t denominator)
Definition: TableUtils.h:412