/*
* Delphes: a framework for fast simulation of a generic collider experiment
* Copyright (C) 2012-2014 Universite catholique de Louvain (UCL), Belgium
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
#include "display/DelphesHtmlSummary.h"
#include "TGHtml.h"
#include "TEveElement.h"
#include "TEveManager.h"
#include "TEveEventManager.h"
#include "TEvePointSet.h"
#include "TEveTrack.h"
//==============================================================================
DelphesHtmlSummary *fgDelphesHtmlSummary = 0;
TGHtml *fgHtml = 0;
//==============================================================================
//______________________________________________________________________________
DelphesHtmlObjTable::DelphesHtmlObjTable(const char *name, Int_t nfields, Int_t nvals, Bool_t exp) :
fName(name), fNValues(nvals), fNFields(nfields), fExpand(exp)
{
// Constructor.
fValues = new TArrayF[fNFields];
for (int i=0;i 0) && (fNValues > 0)) {
BuildLabels();
BuildTable();
}
fHtml += "";
}
//______________________________________________________________________________
void DelphesHtmlObjTable::BuildTitle()
{
// Build table title.
fHtml += "
"; // for the check boxes
for (i=0;i ";
fHtml += fLabels[i];
fHtml += " "; // for the check boxes
}
fHtml += "
";
}
//______________________________________________________________________________
void DelphesHtmlObjTable::BuildTable()
{
// Build part of table with values.
for (int i = 0; i < fNValues; i++) {
if (i%2)
fHtml += "