DevCount Class Reference

Inheritance diagram for DevCount:
CanvasTab

List of all members.

Public Member Functions

 DevCount (TGTextView *text)
void Init (TCanvas *canvas)
 Implement to get one-time notification of the canvas.
void Expose ()
 Notified each time the tab this canvas is in is selected.

Private Attributes

TGTextView * fText

Detailed Description

Definition at line 191 of file BDQViewer.cxx.


Constructor & Destructor Documentation

DevCount::DevCount ( TGTextView *  text  )  [inline]

Definition at line 194 of file BDQViewer.cxx.

00194 : fText(text) {}


Member Function Documentation

void DevCount::Expose (  )  [inline, virtual]

Notified each time the tab this canvas is in is selected.

Reimplemented from CanvasTab.

Definition at line 221 of file BDQViewer.cxx.

References fText.

00221                   {
00222         fText->Clear();
00223         fText->AddLine("(a) Number of spills in which various important device exist.");
00224         fText->AddLine("Any droupouts more than about 1% should be noted.");
00225         fText->AddLine("(b) Total RawBeamMonBlocks in \"mom\".  Should be one.");
00226         fText->AddLine("Multiple blocks indicate serious problem!");
00227         fText->AddLine("(c) \"Unique\" blocks.  When multiple blocks happen they");
00228         fText->AddLine("can be somewhat filtered.  Should always be 1.");
00229     }

void DevCount::Init ( TCanvas *  canvas  )  [inline, virtual]

Implement to get one-time notification of the canvas.

Reimplemented from CanvasTab.

Definition at line 196 of file BDQViewer.cxx.

References HistMan::Get().

00196                                {
00197         HistMan file_hists("BDP Data Quality/File Hists");
00198         canvas->SetTitle("Device Counts");
00199         canvas->Divide(1,2);
00200         canvas->cd(1);
00201         TH1F* h = file_hists.Get<TH1F>("dev_count");
00202         if (h) h->DrawCopy();
00203         else cerr << "Can't get \"dev_count\" histogram\n";
00204 
00205         canvas->cd(2);
00206         TVirtualPad* pad = gPad;
00207         pad->Divide(2,1);
00208 
00209         pad->cd(1);
00210         TH1I* hi = file_hists.Get<TH1I>("total_blocks");
00211         if (hi) hi->DrawCopy();
00212         else cerr << "Can't get \"total_blocks\" histogram\n";
00213 
00214         pad->cd(2);
00215         hi = file_hists.Get<TH1I>("unique_blocks");
00216         if (hi) hi->DrawCopy();
00217         else cerr << "Can't get \"unique_blocks\" histogram\n";
00218         
00219 
00220     }


Member Data Documentation

TGTextView* DevCount::fText [private]

Definition at line 192 of file BDQViewer.cxx.

Referenced by Expose().


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

Generated on 24 Jul 2018 for loon by  doxygen 1.6.1