TorCheck Class Reference

Inheritance diagram for TorCheck:
CanvasTab

List of all members.

Public Member Functions

 TorCheck (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 145 of file BDQViewer.cxx.


Constructor & Destructor Documentation

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

Definition at line 148 of file BDQViewer.cxx.

00148 : fText(text) {}


Member Function Documentation

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

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

Reimplemented from CanvasTab.

Definition at line 182 of file BDQViewer.cxx.

References fText.

00182                   {
00183         fText->Clear();
00184         fText->AddLine("(a) Proton count for each NuMI toroid.");
00185         fText->AddLine("(b) Relative differences between TORTGT and TRTGTD");
00186         fText->AddLine("(b) Relative differences between TOR101 and TR101D");
00187         fText->AddLine("These should all be w/in 1%.");
00188     }

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

Implement to get one-time notification of the canvas.

Reimplemented from CanvasTab.

Definition at line 150 of file BDQViewer.cxx.

References Form(), HistMan::Get(), and tor_names.

00150                                {
00151         HistMan file_hists("BDP Data Quality/File Hists");
00152         
00153         const char* tor_names[] = {
00154             "toroids",
00155             "tortgt_trtgtd",
00156             "tor101_tr101d",
00157             0
00158         };
00159         canvas->SetTitle("Toroid comparison plots");
00160         canvas->Divide(1,3);
00161         for (int ind=0; tor_names[ind]; ++ind) {
00162             cerr << "\"" << tor_names[ind] << "\"\n";
00163             canvas->cd(ind+1);
00164             if (ind) gPad->SetLogy();
00165             
00166             TH1F* h = file_hists.Get<TH1F>(tor_names[ind]);
00167 
00168             if (!h) {
00169                 cerr << "No such TH1F: " << tor_names[ind] << endl;
00170                 continue;
00171             }
00172             if (ind) 
00173                 h->SetXTitle(Form("%s differences (npot)",tor_names[ind]));
00174             else {
00175                 h->SetYTitle("Proton count (tera-protons)");
00176                 h->SetXTitle("Toroids (npot)");
00177             }
00178             h->DrawCopy();
00179         }       
00180     }


Member Data Documentation

TGTextView* TorCheck::fText [private]

Definition at line 146 of file BDQViewer.cxx.

Referenced by Expose().


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

Generated on 18 Jan 2018 for loon by  doxygen 1.6.1