Public Member Functions | Public Attributes | List of all members
Plot Struct Reference

====================================================================== /// More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-09-23/Calibration/calibana/DrawUtils.h"

Public Member Functions

 Plot ()
 
 Plot (TH1 *h_)
 
 Plot (TH1 *h_, std::string name_, std::string legLabel_)
 
 Plot (std::string file_, std::string name_, std::string legLabel_)
 

Public Attributes

std::string label
 
std::string fname
 
Binning bins
 
Var var
 
const char * savename
 
const char * XaxisLabel
 
int rebinAmt
 
int legSide
 
int yAxisLimit
 
std::string file
 
std::string name
 
TH1 * h
 
std::string type
 
std::string legLabel
 
int color
 
Cut cut
 
double yRangeLow
 
double yRangeHigh
 
std::string fLabelX
 
std::string fLabelY
 
std::string fName
 
Binning fBins
 
Var fVar
 
Cut fCut
 
double fYRangeLow
 
double fYRangeHigh
 

Detailed Description

====================================================================== ///

Definition at line 28 of file CutFlow_Data.C.

Constructor & Destructor Documentation

Plot::Plot ( )
inline

Definition at line 23 of file DrawUtils.h.

23  {
24  h=0;
25  }
TH1 * h
Definition: DrawUtils.h:19
Plot::Plot ( TH1 *  h_)
inline

Definition at line 26 of file DrawUtils.h.

26  {
27  h=h_;
28  if(h)
29  type=h->ClassName();
30  }
TH1 * h
Definition: DrawUtils.h:19
Plot::Plot ( TH1 *  h_,
std::string  name_,
std::string  legLabel_ 
)
inline

Definition at line 31 of file DrawUtils.h.

32  {
33  h=h_;
34  name=name_;
35  legLabel=legLabel_;
36  if(h)
37  type=h->ClassName();
38  }
const XML_Char * name
Definition: expat.h:151
std::string legLabel
Definition: DrawUtils.h:21
TH1 * h
Definition: DrawUtils.h:19
Plot::Plot ( std::string  file_,
std::string  name_,
std::string  legLabel_ 
)
inline

Definition at line 39 of file DrawUtils.h.

References om::cout, allTimeWatchdog::endl, MakeMiniprodValidationCuts::f, and h.

41  {
42  file=file_;
43  name=name_;
44  legLabel=legLabel_;
45  TFile * f = TFile::Open(file.c_str());
46  f->GetObject(name.c_str(),h);
47  if(!h){
48  std::cout << "did not find " << name
49  << " in " << f->GetName()
50  << std::endl;
51  std::abort();
52  } else {
53  h->SetDirectory(0);
54  type=h->ClassName();
55  if(h->GetEntries()==0){
56  std::cout << "Zero entries in " << name
57  << " from " << f->GetName()
58  << std::endl;
59  //std::abort(); // occasionally okay to have zero entries if not ratio denom
60  }
61  }
62  f->Close();
63  }
const XML_Char * name
Definition: expat.h:151
std::string legLabel
Definition: DrawUtils.h:21
TH1 * h
Definition: DrawUtils.h:19
std::string file
Definition: DrawUtils.h:17
OStream cout
Definition: OStream.cxx:6

Member Data Documentation

Binning Plot::bins
int Plot::color

Definition at line 22 of file DrawUtils.h.

Referenced by TB_WatchdogFx.Tier::getHist(), and WatchdogFx.Tier::getHist().

Cut Plot::cut

Definition at line 115 of file VarsAndCuts.h.

Binning Plot::fBins

Definition at line 115 of file VarsAndCuts_2019.h.

Cut Plot::fCut

Definition at line 117 of file VarsAndCuts_2019.h.

std::string Plot::file

Definition at line 17 of file DrawUtils.h.

Referenced by getData(), and getPredictions().

std::string Plot::fLabelX

Definition at line 112 of file VarsAndCuts_2019.h.

std::string Plot::fLabelY

Definition at line 113 of file VarsAndCuts_2019.h.

std::string Plot::fname
std::string Plot::fName

Definition at line 114 of file VarsAndCuts_2019.h.

Var Plot::fVar

Definition at line 116 of file VarsAndCuts_2019.h.

double Plot::fYRangeHigh

Definition at line 119 of file VarsAndCuts_2019.h.

double Plot::fYRangeLow

Definition at line 118 of file VarsAndCuts_2019.h.

TH1* Plot::h
std::string Plot::label
std::string Plot::legLabel

Definition at line 21 of file DrawUtils.h.

Referenced by DrawUtils::MakeLegend().

int Plot::legSide

Definition at line 84 of file make_DiF_plots.C.

std::string Plot::name
int Plot::rebinAmt

Definition at line 84 of file make_DiF_plots.C.

const char* Plot::savename

Definition at line 84 of file make_DiF_plots.C.

std::string Plot::type

Definition at line 20 of file DrawUtils.h.

Referenced by DrawUtils::DrawPlotStack(), and DrawUtils::MakeRatio().

Var Plot::var
const char* Plot::XaxisLabel

Definition at line 84 of file make_DiF_plots.C.

int Plot::yAxisLimit

Definition at line 84 of file make_DiF_plots.C.

double Plot::yRangeHigh

Definition at line 117 of file VarsAndCuts.h.

double Plot::yRangeLow

Definition at line 116 of file VarsAndCuts.h.


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