5 #include "TGTextView.h" 19 fText =
new TGText(
"Histogram caption");
21 gClient->GetFont(
"-adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-iso8859-1");
22 this->SetFont(f->GetFontStruct());
37 if (this->
GetLock()==
false)
return;
44 std::ostringstream oss;
47 oss <<
"Histogram " << hname <<
":\n\n";
52 static const unsigned int kNcharPerLine = 40;
57 if (i>kNcharPerLine && *c==
' ') { oss <<
'\n'; i=0; }
73 oss <<
"\n" << hd->
fLookBack <<
" copies saved in history.\n\n";
76 oss <<
"1D Histogram\n" 77 << hd->
fNx <<
" bins between " 78 <<
"x=" << hd->
fX1 <<
" and " 79 <<
"x=" << hd->
fX2 <<
"\n";
82 oss <<
"2D Histogram\n" 83 << hd->
fNx <<
" bins between " 84 <<
"x=" << hd->
fX1 <<
" and " 85 <<
"x=" << hd->
fX2 <<
"\n" 86 << hd->
fNy <<
" bins between " 87 <<
"y=" << hd->
fY1 <<
" and " 88 <<
"y=" << hd->
fY2 <<
"\n";
92 this->LoadBuffer(oss.str().c_str());
double fX1
Low edge of x range.
unsigned int fLookBack
How many copies to save in history.
const HistoData * LookUp(const char *nm) const
void GUIModelDataIssue(const GUIModelData &d, unsigned int which)
static const unsigned int kCurrentHistogramID
std::string fCaption
What does this histogram show?
int fNx
Number of bins in x.
Base class for subscribers to ticker updates.
Class to read, hold, and deliver histogram data.
double fY2
High edge of y range.
TGText * fText
The text inside the box.
double fX2
High edge of x range.
const char * Current() const
CurrentHistogram fCurrentHistogram
Histo_t fType
What kind of histogram is this?
double fNy
Number of bins in y.
static HistoTable & Instance(const char *f=0, Detector_t d=kALLDET)
unsigned int fReset
Reset schedule (see TickerSubscriber.h)
double fY1
Low edge of y range.
Online Monitoring package header.