NCDataQualityPlot Class Reference

Modification of a TH1D. More...

#include <NCDataQualityPlot.h>

List of all members.

Public Member Functions

 NCDataQualityPlot ()
 NCDataQualityPlot (int k, TString type)
virtual ~NCDataQualityPlot ()
TH1_ADD_RETTYPE Add (const TH1 *h1, Double_t c1=1)
 Silently ignore adding null histogram.
TH1_ADD_RETTYPE Add (TF1 *f1, Double_t c1=1, Option_t *option="")
TH1_ADD_RETTYPE Add (const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1)

Detailed Description

Modification of a TH1D.

Definition at line 146 of file NCDataQualityPlot.h.


Constructor & Destructor Documentation

NCDataQualityPlot::NCDataQualityPlot (  )  [inline]

Definition at line 149 of file NCDataQualityPlot.h.

00149 {} // Need a default constructor as held in an array

NCDataQualityPlot::NCDataQualityPlot ( int  k,
TString  type 
)

Definition at line 22 of file NCDataQualityPlot.cxx.

References DQDef::bins, kDQEventsVsTime, kDQMonths, kDQPOTVsTime, kDQVars, and Munits::m.

00022                                                        :
00023   TH1D(kDQVars[k].name+type, "", kDQVars[k].bins, kDQVars[k].start, kDQVars[k].end)
00024 {
00025   GetXaxis()->SetTitle(kDQVars[k].title);
00026   GetYaxis()->SetTitle((k == kDQPOTVsTime) ? "10^{12} POT" : "Events");
00027 
00028   GetXaxis()->CenterTitle();
00029   GetYaxis()->CenterTitle();
00030 
00031   const bool isFuncOfTime = (k == kDQEventsVsTime || k == kDQPOTVsTime);
00032 
00033   if(isFuncOfTime){
00034     for(int m = 0; m < kDQVars[k].bins; ++m)
00035       GetXaxis()->SetBinLabel(m+1, kDQMonths[m]);
00036   }
00037 }

virtual NCDataQualityPlot::~NCDataQualityPlot (  )  [inline, virtual]

Definition at line 151 of file NCDataQualityPlot.h.

00151 {};


Member Function Documentation

void NCDataQualityPlot::Add ( const TH1 *  h1,
const TH1 *  h2,
Double_t  c1 = 1,
Double_t  c2 = 1 
)

Definition at line 80 of file NCDataQualityPlot.cxx.

References Add().

00082 {
00083   TH1::Add(h1, h2, c1, c2);
00084 }

void NCDataQualityPlot::Add ( TF1 *  f1,
Double_t  c1 = 1,
Option_t *  option = "" 
)

And thus need to override the other versions, otherwise we get compiler warnings about hiding them.

Definition at line 75 of file NCDataQualityPlot.cxx.

References Add().

00076 {
00077   TH1::Add(f1, c1, option);
00078 }

void NCDataQualityPlot::Add ( const TH1 *  h1,
Double_t  c1 = 1 
)

Silently ignore adding null histogram.

RWH 2012-04-17 return type changed.

Definition at line 68 of file NCDataQualityPlot.cxx.

Referenced by Add(), and NCDataQualityModule::CombineDataQualityPlots().

00069 {
00070   if (h1) TH1::Add(h1, c1);
00071 }


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1