Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PerTime Class Reference

Inheritance diagram for PerTime:

CanvasTab List of all members.

Public Member Functions

 PerTime (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

Constructor & Destructor Documentation

PerTime::PerTime TGTextView *  text  )  [inline]
 

Definition at line 67 of file BDQViewer.cxx.

References fText.

00067 : fText(text) {}


Member Function Documentation

void PerTime::Expose  )  [inline, virtual]
 

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

Reimplemented from CanvasTab.

Definition at line 90 of file BDQViewer.cxx.

References fText.

00090                   {
00091         fText->Clear();
00092         fText->AddLine("Number of protons and spills per hour and minute.  ");
00093         fText->AddLine("Any drop outs not associated with actual beam down time ");
00094         fText->AddLine("indicates a problem.");
00095     }

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

Implement to get one-time notification of the canvas.

Reimplemented from CanvasTab.

Definition at line 69 of file BDQViewer.cxx.

References HistMan::Get().

00069                                {
00070         HistMan file_hists("BDP Data Quality/File Hists");
00071         const char* per_names[] = {
00072             "npot_per_hour",
00073             "npot_per_min",
00074             "spills_per_hour",
00075             "spills_per_min",
00076             0
00077         };
00078         canvas->SetTitle("Per time plots");
00079         canvas->Divide(2,2);
00080         for (int ind=0; per_names[ind]; ++ind) {
00081             canvas->cd(ind+1);
00082             gPad->SetLogy();
00083             TH1F* h = file_hists.Get<TH1F>(per_names[ind]);
00084             if (!h) continue;
00085             h->SetXTitle("Time from start of file");
00086             h->DrawCopy();
00087         }
00088     }


Member Data Documentation

TGTextView* PerTime::fText [private]
 

Definition at line 64 of file BDQViewer.cxx.

Referenced by Expose(), and PerTime().


The documentation for this class was generated from the following file:
Generated on Mon Feb 15 11:10:01 2010 for loon by  doxygen 1.3.9.1