BDQViewer Class Reference

Viewer of BDataQualityModule plots. More...

#include <BDQViewer.h>

List of all members.

Public Member Functions

 BDQViewer (const char *filename)
void CloseWindow ()
void DoTab (Int_t tab)

Private Attributes

TGMainFrame * fMain
TGTextView * fText
CanvasTabsfCTabs

Detailed Description

Viewer of BDataQualityModule plots.

Author:
(last to touch it)
Author
bv
Version:
Revision
1.1
Date:
Date
2005/12/06 23:00:27

Contact: bv@bnl.gov

Created on: Tue Dec 6 14:35:23 2005

Id
BDQViewer.h,v 1.1 2005/12/06 23:00:27 bv Exp

Definition at line 36 of file BDQViewer.h.


Constructor & Destructor Documentation

BDQViewer::BDQViewer ( const char *  filename  ) 

Definition at line 233 of file BDQViewer.cxx.

References CanvasTabs::AdoptTab(), DbCheck::Expose(), fCTabs, fMain, fText, and CanvasTabs::GetTabs().

00234 {
00235     fMain = new TGMainFrame(0, 800,800);
00236     fMain->SetCleanup(kDeepCleanup);
00237     fMain->Connect("CloseWindow()", "BDQViewer", this, "CloseWindow()");
00238     
00239     fMain->SetWindowName("GuiTest Signal/Slots");
00240     
00241     fCTabs = new CanvasTabs(fMain);
00242 
00243     TGTab& tab = fCTabs->GetTabs();
00244     tab.Connect("Selected(Int_t)", "BDQViewer", this, "DoTab(Int_t)");
00245 
00246     TFile f(filename);
00247     HistMan io(f);
00248 
00249     fText = new TGTextView(fMain,800,150,"");
00250 
00251     DbCheck* dbcheck  = new DbCheck(fText);
00252     fCTabs->AdoptTab("SpillTimeND check",dbcheck);
00253     fCTabs->AdoptTab("File based spill dT",new Earliest(fText));
00254     fCTabs->AdoptTab("#POT per time",new PerTime(fText));
00255     fCTabs->AdoptTab("Toroid comparisons",new TorCheck(fText));
00256     fCTabs->AdoptTab("Device counts",new DevCount(fText));
00257     dbcheck->Expose();
00258 
00259     TGLayoutHints* lh = new TGLayoutHints(kLHintsBottom | kLHintsLeft |
00260                                           kLHintsExpandX, 5, 5, 5, 5);
00261     fMain->AddFrame(fText,lh);
00262 
00263     fMain->Resize(800,800);
00264     fMain->Layout();
00265     fMain->MapSubwindows();
00266     fMain->MapWindow();
00267     
00268     //fMain->Print();
00269 }


Member Function Documentation

void BDQViewer::CloseWindow (  ) 

Definition at line 275 of file BDQViewer.cxx.

00276 {
00277     gApplication->Terminate();
00278 }

void BDQViewer::DoTab ( Int_t  tab  ) 

Definition at line 271 of file BDQViewer.cxx.

00272 {
00273 }


Member Data Documentation

Definition at line 42 of file BDQViewer.h.

Referenced by BDQViewer().

TGMainFrame* BDQViewer::fMain [private]

Definition at line 39 of file BDQViewer.h.

Referenced by BDQViewer().

TGTextView* BDQViewer::fText [private]

Definition at line 40 of file BDQViewer.h.

Referenced by BDQViewer().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1