";
TString name = fName;
name.ReplaceAll(" ", "_");
// checkboxes
fHtml += "";
fHtml += " ",i);
fHtml += " ";
for (int j = 0; j < fNFields; j++) {
fHtml += "";
fHtml += Form("%1.4f", fValues[j][i]);
fHtml += " ";
}
fHtml += " ";
}
}
//______________________________________________________________________________
DelphesHtmlSummary::DelphesHtmlSummary(const char *title) : fNTables(0), fTitle(title)
{
// Constructor.
fObjTables = new TOrdCollection();
}
//______________________________________________________________________________
DelphesHtmlSummary::~DelphesHtmlSummary()
{
// Destructor.
Reset();
}
//______________________________________________________________________________
DelphesHtmlObjTable *DelphesHtmlSummary::AddTable(const char *name, Int_t nfields, Int_t nvals,
Bool_t exp, Option_t *option)
{
// Add a new table in our list of tables.
TString opt = option;
opt.ToLower();
DelphesHtmlObjTable *table = new DelphesHtmlObjTable(name, nfields, nvals, exp);
fNTables++;
if (opt.Contains("first"))
fObjTables->AddFirst(table);
else
fObjTables->Add(table);
return table;
}
//______________________________________________________________________________
void DelphesHtmlSummary::Clear(Option_t *option)
{
// Clear the table list.
if (option && option[0] == 'D')
fObjTables->Delete(option);
else
fObjTables->Clear(option);
fNTables = 0;
}
//______________________________________________________________________________
void DelphesHtmlSummary::Reset(Option_t *)
{
// Reset (delete) the table list;
delete fObjTables; fObjTables = 0;
fNTables = 0;
}
//______________________________________________________________________________
void DelphesHtmlSummary::Build()
{
// Build the summary.
MakeHeader();
for (int i=0;i