public:
void Build();
void BuildTitle();
public:
void SetLabel(
Int_t col,
const char *label) { fLabels[col] = label; }
};
public:
public:
void Build();
};
{
for (int i = 0; i < fNFields; i++)
}
HtmlObjTable::~HtmlObjTable()
{
delete[] fValues;
delete[] fLabels;
}
void HtmlObjTable::Build()
{
fHtml = "<table width=100% border=1 cellspacing=0 cellpadding=0 bgcolor=f0f0f0> ",
BuildTitle();
if (fExpand && (fNFields > 0) && (
fNValues > 0)) {
}
fHtml += "</table>";
}
void HtmlObjTable::BuildTitle()
{
fHtml += "<tr><td colspan=";
fHtml +=
Form(
"%d>", fNFields + 1);
fHtml += "<table width=100% border=0 cellspacing=2 cellpadding=0 bgcolor=6e6ea0>";
fHtml += "<tr><td align=left>";
fHtml += "<font face=Verdana size=3 color=ffffff><b><i>";
fHtml += fName;
fHtml += "</i></b></font></td>";
fHtml += "<td>";
fHtml += "<td align=right> ";
fHtml += "<font face=Verdana size=3 color=ffffff><b><i>";
fHtml += "</i></b></font></td></tr>";
fHtml += "</table>";
fHtml += "</td></tr>";
}
void HtmlObjTable::BuildLabels()
{
fHtml += "<tr bgcolor=c0c0ff>";
fHtml += "<th> </th>";
for (i = 0; i < fNFields; i++) {
fHtml += "<th> ";
fHtml += fLabels[i];
fHtml += " </th>";
}
fHtml += "</tr>";
}
void HtmlObjTable::BuildTable()
{
if (i % 2)
fHtml += "<tr bgcolor=e0e0ff>";
else
fHtml += "<tr bgcolor=ffffff>";
name.ReplaceAll(
" ",
"_");
fHtml += "<td bgcolor=d0d0ff align=\"center\">";
fHtml += "<input type=\"checkbox\" name=\"";
fHtml +=
Form(
"[%d]\">", i);
fHtml += "</td>";
for (
int j = 0;
j < fNFields;
j++) {
fHtml += "<td width=";
fHtml +=
Form(
"%d%%", 100 / fNFields);
fHtml += " align=\"center\"";
fHtml += ">";
fHtml +=
Form(
"%1.4f", fValues[
j][i]);
fHtml += "</td>";
}
fHtml += "</tr> ";
}
}
HtmlSummary::HtmlSummary(
const char *title) :
fNTables(0), fTitle(title)
{
}
HtmlSummary::~HtmlSummary()
{
}
{
else
return table;
}
void HtmlSummary::Clear(
Option_t *option)
{
if (option && option[0] == 'D')
else
}
{
}
void HtmlSummary::Build()
{
GetTable(i)->Build();
fHtml += GetTable(i)->Html();
}
}
void HtmlSummary::MakeHeader()
{
fHeader = "<html><head><title>";
fHeader += fTitle;
fHeader += "</title></head><body>";
fHeader += "<center><h2><font color=#2222ee><i>";
fHeader += fTitle;
fHeader += "</i></font></h2></center>";
fHtml = fHeader;
}
void HtmlSummary::MakeFooter()
{
fFooter =
"<br><p><br><center><strong><font size=2 color=#2222ee>";
fFooter +=
"Example of using Html widget to display tabular data";
fFooter +=
"(c) 2007-2010 Bertrand Bellenot";
fFooter +=
"</font></strong></center></body></html>";
}
{
for (i =
mgr->BeginChildren(); i !=
mgr->EndChildren(); ++i) {
table->SetLabel(0, "Momentum");
table->SetLabel(1, "P_t");
table->SetLabel(2, "Phi");
table->SetLabel(3, "Theta");
table->SetLabel(4, "Eta");
k = 0;
table->SetValue(0, k,
p);
table->SetValue(1, k,
pt);
table->SetValue(2, k, phi);
table->SetValue(3, k, theta);
table->SetValue(4, k, eta);
++k;
}
}
}
}
}
#define ClassDef(name, id)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TEveManager * gEve
winID h TVirtualViewer3D TVirtualGLPainter p
static void Reset(const char *url, Bool_t hard=kFALSE)
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
Array of floats (32 bits per element).
void SetAt(Double_t v, Int_t i) override
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
Base class for event management and navigation.
TEveEventManager * GetCurrentEvent() const
TEvePointSet is a render-element holding a collection of 3D points with optional per-point TRef and a...
const char * GetElementTitle() const override
Virtual function for retrieving title of the render-element.
const char * GetElementName() const override
Virtual function for retrieving name of the element.
A list of tracks supporting change of common attributes and selection based on track parameters.
Visual representation of a track.
Mother of all ROOT objects.
void ToLower()
Change string to lower-case.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const