5 #include "TGTextEntry.h" 6 #include "TGFileDialog.h" 18 TGCompositeFrame(win, w, h, opt),
21 TGLayoutHints*
xx =
new TGLayoutHints(kLHintsExpandX);
36 fApplyOptions->SetToolTipText(
"Apply chosen comparison options now");
38 this,
"HandleApplyOptions()");
48 TGLayoutHints* fCompWhichLayout =
new TGLayoutHints(kLHintsTop|kLHintsLeft);
57 "HandleCompareWhichButtons()");
86 TGLayoutHints*
xx =
new TGLayoutHints(kLHintsExpandX);
89 TGLayoutHints* yy =
new TGLayoutHints(kLHintsRight);
94 this,
"HandleFileBrowse()");
107 TGLayoutHints*
xx =
new TGLayoutHints(kLHintsExpandX);
117 TGLayoutHints* fCompHowLayout =
new TGLayoutHints(kLHintsTop|kLHintsLeft);
126 "HandleCompareHowButtons()");
137 TGLayoutHints* fCompNormLayout =
new TGLayoutHints(kLHintsTop|kLHintsLeft);
146 "HandleCompareNormButtons()");
156 TGButton* btn = (TGButton*)gTQSender;
157 id = btn->WidgetId();
168 TGButton* btn = (TGButton*)gTQSender;
169 id = btn->WidgetId();
181 TGButton* btn = (TGButton*)gTQSender;
182 id = btn->WidgetId();
201 const char *filetypes[] = {
"All ROOT files",
"*.root",
202 "End subrun files",
"*endsubrun*.root",
203 "End run files",
"*endrun*.root",
207 fi.fFileTypes = filetypes;
210 fi.fIniDir = StrDup(
".");
211 new TGFileDialog(gClient->GetRoot(),
new TGMainFrame(gClient->GetRoot(), 400, 220), kFDOpen, &fi);
212 if(fi.fFilename != 0) {
213 printf(
"Open file: %s\n", fi.fFilename);
266 sprintf(buff,
"look back %d",
i+1);
unsigned int fLookBack
How many copies to save in history.
void HandleCompareNormButtons(int i=-1)
unsigned int fWhich
Which histo. to compare to?
void HandleCompareWhichButtons(int i=-1)
void SetCompareNorm(unsigned int i)
const HistoData * LookUp(const char *nm) const
static const unsigned int kRefFileInitID
static const unsigned int kCurrentHistogramID
static const char * CompareTo(unsigned int i)
TGGroupFrame * fCompareHowFrame
void HandleCompareHowButtons(int i=-1)
void SetReferenceFile(const char *RefFile)
void SetCompareWhich(unsigned int i)
Class to read, hold, and deliver histogram data.
void GUIModelDataIssue(const GUIModelData &m, unsigned int which)
static const unsigned int kComparisonUpdateID
ComparisonOptions fComparisonOpt
static GUIModel & Instance()
TGHorizontalFrame * fReferenceFile
void LayoutReferenceFile()
printf("%d Experimental points found\n", nlines)
void Publish(unsigned int which) const
TGGroupFrame * fCompareNormFrame
ComparisonBox(const TGWindow *win, unsigned int w, unsigned int h, unsigned int opt)
unsigned int fMethod
How to show the comparison?
TGRadioButton * fCompareHowButtons[ComparisonOptions::kMaxCompHow]
static const char * CompareMethod(unsigned int i)
const char * Current() const
static const unsigned int kComparisonOptionsID
TGRadioButton * fCompareWhichButtons[ComparisonOptions::kMaxCompWhich]
CurrentHistogram fCurrentHistogram
const TGPicture * FolderExplore()
static const char * CompareNormalize(unsigned int i)
TGTextEntry * fReferenceFileText
void SetCompareMethod(unsigned int i)
TGRadioButton * fCompareNormButtons[ComparisonOptions::kMaxCompNorm]
TGGroupFrame * fCompareWhichFrame
TGPictureButton * fReferenceFileBrowse
static HistoTable & Instance(const char *f=0, Detector_t d=kALLDET)
unsigned int fNormalize
How to normalize the histos?
void HandleApplyOptions()
Online Monitoring package header.
TGTextButton * fApplyOptions