690 if folder
is None: folder = cls.plotsdirname()
691 if folder.startswith(
"/castor/" ):
692 folder =
"rfio:%(file)s"%repMap
693 elif folder.startswith(
"/store/" ):
694 folder =
"root://eoscms.cern.ch//eos/cms%(file)s"%repMap
696 if cls.__summaryitems
is None or cls.__lastfolder != folder:
697 cls.__lastfolder = folder
698 cls.__summaryitems = cls.getsummaryitems(folder)
700 summaryitems = cls.__summaryitems
703 raise AllInOneError(
"No summary items!")
704 size = {len(_.values(latex))
for _
in summaryitems}
706 raise AllInOneError(
"Some summary items have different numbers of values\n{}".
format(size))
710 columnwidths = ([
max(len(_.name(latex))
for _
in summaryitems)]
711 + [
max(len(_.value(i, latex))
for _
in summaryitems)
for i
in range(size)])
713 columnwidths = [
max(len(entry)
for entry
in [_.name(latex)] + _.values(latex))
for _
in summaryitems]
719 row = join.join(
"{{:{}}}".
format(width)
for width
in columnwidths)
722 rows = [row.format(*[_.name(latex)]+_.values(latex))
for _
in summaryitems]
725 rows.append(row.format(*(_.name
for _
in summaryitems)))
726 for i
in range(size):
727 rows.append(row.format(*(_.value(i, latex)
for _
in summaryitems)))
733 result = join.join(rows)
735 result = (
r"\begin{{tabular}}{{{}}}".
format(
"|" +
"|".
join(
"c"*(len(columnwidths))) +
"|") +
"\n"