29   void SetLabel(
Int_t col, 
const char *label) { fLabels[col] = label; }
 
   77   fValues = 
new TArrayF[fNFields];
 
   78   for (
int i = 0; i < fNFields; i++)
 
   79      fValues[i].Set(
nvals);
 
   80   fLabels = 
new TString[fNFields];
 
   84HtmlObjTable::~HtmlObjTable()
 
   93void HtmlObjTable::Build()
 
   97   fHtml = 
"<table width=100% border=1 cellspacing=0 cellpadding=0 bgcolor=f0f0f0> ",
 
  100   if (fExpand && (fNFields > 0) && (
fNValues > 0)) {
 
  109void HtmlObjTable::BuildTitle()
 
  113   fHtml += 
"<tr><td colspan=";
 
  114   fHtml += 
Form(
"%d>", fNFields + 1);
 
  115   fHtml += 
"<table width=100% border=0 cellspacing=2 cellpadding=0 bgcolor=6e6ea0>";
 
  116   fHtml += 
"<tr><td align=left>";
 
  117   fHtml += 
"<font face=Verdana size=3 color=ffffff><b><i>";
 
  119   fHtml += 
"</i></b></font></td>";
 
  121   fHtml += 
"<td align=right> ";
 
  122   fHtml += 
"<font face=Verdana size=3 color=ffffff><b><i>";
 
  124   fHtml += 
"</i></b></font></td></tr>";
 
  126   fHtml += 
"</td></tr>";
 
  130void HtmlObjTable::BuildLabels()
 
  135   fHtml += 
"<tr bgcolor=c0c0ff>";
 
  136   fHtml += 
"<th> </th>"; 
 
  137   for (i = 0; i < fNFields; i++) {
 
  146void HtmlObjTable::BuildTable()
 
  150   for (
int i = 0; i < 
fNValues; i++) {
 
  152         fHtml += 
"<tr bgcolor=e0e0ff>";
 
  154         fHtml += 
"<tr bgcolor=ffffff>";
 
  157      name.ReplaceAll(
" ", 
"_");
 
  159      fHtml += 
"<td bgcolor=d0d0ff align=\"center\">";
 
  160      fHtml += 
"<input type=\"checkbox\" name=\"";
 
  162      fHtml += 
Form(
"[%d]\">", i);
 
  165      for (
int j = 0; 
j < fNFields; 
j++) {
 
  166         fHtml += 
"<td width=";
 
  167         fHtml += 
Form(
"%d%%", 100 / fNFields);
 
  168         fHtml += 
" align=\"center\"";
 
  170         fHtml += 
Form(
"%1.4f", fValues[
j][i]);
 
  178HtmlSummary::HtmlSummary(
const char *title) : 
fNTables(0), fTitle(title)
 
  186HtmlSummary::~HtmlSummary()
 
  210void HtmlSummary::Clear(
Option_t *option)
 
  214   if (option && option[0] == 
'D')
 
  232void HtmlSummary::Build()
 
  237   for (
int i = 0; i < 
fNTables; i++) {
 
  238      GetTable(i)->Build();
 
  239      fHtml += GetTable(i)->Html();
 
  245void HtmlSummary::MakeHeader()
 
  249   fHeader = 
"<html><head><title>";
 
  251   fHeader += 
"</title></head><body>";
 
  252   fHeader += 
"<center><h2><font color=#2222ee><i>";
 
  254   fHeader += 
"</i></font></h2></center>";
 
  259void HtmlSummary::MakeFooter()
 
  263   fFooter = 
"<br><p><br><center><strong><font size=2 color=#2222ee>";
 
  264   fFooter += 
"Example of using Html widget to display tabular data";
 
  266   fFooter += 
"(c) 2007-2010 Bertrand Bellenot";
 
  267   fFooter += 
"</font></strong></center></body></html>";
 
  286      for (i = 
mgr->BeginChildren(); i != 
mgr->EndChildren(); ++i) {
 
  303            table->SetLabel(0, 
"Momentum");
 
  304            table->SetLabel(1, 
"P_t");
 
  305            table->SetLabel(2, 
"Phi");
 
  306            table->SetLabel(3, 
"Theta");
 
  307            table->SetLabel(4, 
"Eta");
 
  311               table->SetValue(0, k, 
p);
 
  313               table->SetValue(1, k, 
pt);
 
  315               table->SetValue(2, k, phi);
 
  317               table->SetValue(3, k, theta);
 
  319               table->SetValue(4, k, eta);
 
bool Bool_t
Boolean (0=false, 1=true) (bool)
 
int Int_t
Signed integer 4 bytes (int)
 
float Float_t
Float 4 bytes (float)
 
constexpr Ssiz_t kNPOS
The equivalent of std::string::npos for the ROOT class TString.
 
const char Option_t
Option string (const char)
 
#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
 
void Reset(Option_t *option="") override
 
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