CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
PlotCompareUtility Class Reference

#include <PlotCompareUtility.h>

Public Types

enum  Axis { axisX, axisY }
 

Public Member Functions

HistoDataaddHistoData (std::string NewName, std::string RefName, int PlotType)
 
HistoDataaddHistoData (std::string Name, int PlotType)
 
HistoDataaddProjectionXData (HistoData *Parent, std::string Name, int PlotType, int Bin, TH1 *NewHisto, TH1 *RefHisto)
 
HistoDataaddProjectionYData (HistoData *Parent, std::string Name, int PlotType, int Bin, TH1 *NewHisto, TH1 *RefHisto)
 
void clearHistos ()
 
void clearProjectionsX (HistoData *Parent)
 
void clearProjectionsY (HistoData *Parent)
 
bool compare (HistoData *)
 
void dump ()
 
double getChi2Threshold () const
 
bool getFinalResult () const
 
std::vector< HistoData > * getHistos ()
 
double getKSThreshold () const
 
int getNumHistos () const
 
int getPlotsBottomMargin () const
 
int getPlotsHeight () const
 
int getPlotsLeftMargin () const
 
int getPlotsRightMargin () const
 
int getPlotsTopMargin () const
 
int getPlotsWidth () const
 
int getProjectionsBarsThickness () const
 
int getProjectionsBottomMargin () const
 
int getProjectionsHeight () const
 
int getProjectionsLeftMargin () const
 
int getProjectionsRightMargin () const
 
int getProjectionsTopMargin () const
 
int getProjectionsWidth () const
 
std::vector< HistoData > * getProjectionsX (HistoData *HD)
 
std::vector< HistoData > * getProjectionsY (HistoData *HD)
 
int getSummaryBarsThickness () const
 
int getSummaryBottomMargin () const
 
int getSummaryHeight () const
 
int getSummaryLeftMargin () const
 
int getSummaryRightMargin () const
 
int getSummaryTopMargin () const
 
int getSummaryWidth () const
 
double getThreshold () const
 
bool isValid () const
 
void makeDefaultPlots ()
 
void makeHTML (HistoData *)
 
void makePlots (HistoData *)
 
void makeSummary (std::string Name)
 
void makeSummaryHTML (std::string Name)
 
void makeSummaryPlot (std::string Name)
 
 PlotCompareUtility (std::string Reference, std::string New, std::string NewBasePath, std::string NewPrefix="", std::string RefBasePath="", std::string RefPrefix="")
 
void setChi2Threshold (double Threshold)
 
void setKSThreshold (double Threshold)
 
void setPlotsBottomMargin (int Pixels)
 
void setPlotsHeight (int Pixels)
 
void setPlotsLeftMargin (int Pixels)
 
void setPlotsRightMargin (int Pixels)
 
void setPlotsTopMargin (int Pixels)
 
void setPlotsWidth (int Pixels)
 
void setProjectionsBarsThickness (int Pixels)
 
void setProjectionsBottomMargin (int Pixels)
 
void setProjectionsHeight (int Pixels)
 
void setProjectionsiWidth (int Pixels)
 
void setProjectionsLeftMargin (int Pixels)
 
void setProjectionsRightMargin (int Pixels)
 
void setProjectionsTopMargin (int Pixels)
 
void setSummaryBarsThickness (int Pixels)
 
void setSummaryBottomMargin (int Pixels)
 
void setSummaryHeight (int Pixels)
 
void setSummaryLeftMargin (int Pixels)
 
void setSummaryRightMargin (int Pixels)
 
void setSummaryTopMargin (int Pixels)
 
void setSummaryWidth (int Pixels)
 
virtual ~PlotCompareUtility ()
 

Private Member Functions

void centerRebin (TH1 *, TH1 *)
 
template<int PlotType>
bool compare (HistoData *)
 
template<int PlotType>
void makeHTML (HistoData *)
 
template<int PlotType>
void makePlots (HistoData *)
 
void renormalize (TH1 *, TH1 *)
 

Private Attributes

double chi2Threshold
 
bool finalResult
 
std::vector< HistoDatahistos
 
double ksThreshold
 
std::string newBasePath
 
TFile * newFile
 
std::string newPrefix
 
int plotsBottomMargin
 
int plotsHeight
 
int plotsLeftMargin
 
int plotsRightMargin
 
int plotsTopMargin
 
int plotsWidth
 
int projectionsBarsThickness
 
int projectionsBottomMargin
 
int projectionsHeight
 
int projectionsLeftMargin
 
int projectionsRightMargin
 
int projectionsTopMargin
 
int projectionsWidth
 
std::map< HistoData
*, std::vector< HistoData > > 
projectionsX
 
std::map< HistoData
*, std::vector< HistoData > > 
projectionsY
 
std::string refBasePath
 
TFile * refFile
 
std::string refPrefix
 
int summaryBarsThickness
 
int summaryBottomMargin
 
int summaryHeight
 
int summaryLeftMargin
 
int summaryRightMargin
 
int summaryTopMargin
 
int summaryWidth
 

Detailed Description

Definition at line 17 of file PlotCompareUtility.h.

Member Enumeration Documentation

Enumerator
axisX 
axisY 

Definition at line 31 of file PlotCompareUtility.h.

Constructor & Destructor Documentation

PlotCompareUtility::PlotCompareUtility ( std::string  Reference,
std::string  New,
std::string  NewBasePath,
std::string  NewPrefix = "",
std::string  RefBasePath = "",
std::string  RefPrefix = "" 
)
virtual PlotCompareUtility::~PlotCompareUtility ( )
virtual

Member Function Documentation

HistoData* PlotCompareUtility::addHistoData ( std::string  NewName,
std::string  RefName,
int  PlotType 
)
HistoData* PlotCompareUtility::addHistoData ( std::string  Name,
int  PlotType 
)
inline

Definition at line 98 of file PlotCompareUtility.h.

References addHistoData().

Referenced by addHistoData().

98 { return addHistoData(Name, Name, PlotType); }
PlotType
HistoData * addHistoData(std::string NewName, std::string RefName, int PlotType)
HistoData* PlotCompareUtility::addProjectionXData ( HistoData Parent,
std::string  Name,
int  PlotType,
int  Bin,
TH1 *  NewHisto,
TH1 *  RefHisto 
)
HistoData* PlotCompareUtility::addProjectionYData ( HistoData Parent,
std::string  Name,
int  PlotType,
int  Bin,
TH1 *  NewHisto,
TH1 *  RefHisto 
)
void PlotCompareUtility::centerRebin ( TH1 *  ,
TH1 *   
)
private
void PlotCompareUtility::clearHistos ( )
inline

Definition at line 103 of file PlotCompareUtility.h.

References histos.

103 { histos.clear(); }
std::vector< HistoData > histos
void PlotCompareUtility::clearProjectionsX ( HistoData Parent)
inline

Definition at line 104 of file PlotCompareUtility.h.

References projectionsX.

104 { projectionsX[Parent].clear(); }
std::map< HistoData *, std::vector< HistoData > > projectionsX
void PlotCompareUtility::clearProjectionsY ( HistoData Parent)
inline

Definition at line 105 of file PlotCompareUtility.h.

References projectionsY.

105 { projectionsY[Parent].clear(); }
std::map< HistoData *, std::vector< HistoData > > projectionsY
bool PlotCompareUtility::compare< Plot2D > ( HistoData HD)
inline

Definition at line 18 of file Plot1D.h.

References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, and postprocess-scan-build::href.

18  {
19  // get the reference and comparison histograms
20  TH1F *href = (TH1F *)HD->getRefHisto();
21  TH1F *hnew = (TH1F *)HD->getNewHisto();
22 
23  // do not run comparisons if either histogram is empty/broken
24  if (hnew == nullptr || href == nullptr || hnew->GetEntries() <= 1 || href->GetEntries() <= 1) {
25  // std::cerr << HD->getName() << " error: unable to retrieve histogram (or
26  // no entries)\n";
27  HD->setIsEmpty(true);
28  return false;
29  }
30 
31  // rebin histograms and center on common range
32  if (HD->getDoAllow1DRebinning())
33  centerRebin(href, hnew);
34 
35  // run statistical comparisons
36  double ksScore = hnew->KolmogorovTest(href, "D");
37  double chi2Score = hnew->Chi2Test(href, "uup");
38 
39  // renormalize histograms for common display
40  renormalize(href, hnew);
41 
42  // set ks/chi2 and determine high/low scores
43  HD->setKSScore(ksScore);
44  HD->setChi2Score(chi2Score);
45  if (ksThreshold > 0 && chi2Threshold > 0) {
46  HD->setLowScore(ksScore < chi2Score ? ksScore : chi2Score);
47  HD->setHighScore(ksScore > chi2Score ? ksScore : chi2Score);
48  } else if (ksThreshold > 0) {
49  HD->setLowScore(ksScore);
50  HD->setHighScore(ksScore);
51  } else if (chi2Threshold > 0) {
52  HD->setLowScore(chi2Score);
53  HD->setHighScore(chi2Score);
54  } else
55  std::cerr << "error: no test performed? chi2Threshold and ksThreshold <= 0\n";
56 
57  // check overall result
58  bool passed = (ksScore >= ksThreshold && chi2Score >= chi2Threshold);
59  HD->setResult(passed);
60  // if (!passed) std::cout << "NOTPASSED!!!!"; else std::cout << "YESPASSED!";
61  // returns true on test passed and false on test failed
62  HD->setIsEmpty(false);
63  return passed;
64 }
void renormalize(TH1 *, TH1 *)
void setResult(bool Result)
bool getDoAllow1DRebinning() const
Definition: HistoData.h:28
TH1 * getRefHisto() const
Definition: HistoData.h:22
void setIsEmpty(bool Toggle)
Definition: HistoData.h:82
void setKSScore(float Score)
Definition: HistoData.h:77
void setChi2Score(float Score)
Definition: HistoData.h:78
void setHighScore(float Score)
Definition: HistoData.h:80
TH1 * getNewHisto() const
Definition: HistoData.h:21
void centerRebin(TH1 *, TH1 *)
void setLowScore(float Score)
Definition: HistoData.h:79
template<int PlotType>
bool PlotCompareUtility::compare ( HistoData )
private
void PlotCompareUtility::dump ( )
double PlotCompareUtility::getChi2Threshold ( ) const
inline

Definition at line 44 of file PlotCompareUtility.h.

References chi2Threshold.

44 { return chi2Threshold; }
bool PlotCompareUtility::getFinalResult ( ) const
inline

Definition at line 46 of file PlotCompareUtility.h.

References finalResult.

46 { return finalResult; }
std::vector<HistoData>* PlotCompareUtility::getHistos ( )
inline

Definition at line 34 of file PlotCompareUtility.h.

References histos.

34 { return &histos; }
std::vector< HistoData > histos
double PlotCompareUtility::getKSThreshold ( ) const
inline

Definition at line 43 of file PlotCompareUtility.h.

References ksThreshold.

43 { return ksThreshold; }
int PlotCompareUtility::getNumHistos ( ) const
inline

Definition at line 37 of file PlotCompareUtility.h.

References histos.

37 { return histos.size(); }
std::vector< HistoData > histos
int PlotCompareUtility::getPlotsBottomMargin ( ) const
inline

Definition at line 68 of file PlotCompareUtility.h.

References plotsBottomMargin.

68 { return plotsBottomMargin; }
int PlotCompareUtility::getPlotsHeight ( ) const
inline

Definition at line 63 of file PlotCompareUtility.h.

References plotsHeight.

63 { return plotsHeight; }
int PlotCompareUtility::getPlotsLeftMargin ( ) const
inline

Definition at line 66 of file PlotCompareUtility.h.

References plotsLeftMargin.

66 { return plotsLeftMargin; }
int PlotCompareUtility::getPlotsRightMargin ( ) const
inline

Definition at line 67 of file PlotCompareUtility.h.

References plotsRightMargin.

67 { return plotsRightMargin; }
int PlotCompareUtility::getPlotsTopMargin ( ) const
inline

Definition at line 65 of file PlotCompareUtility.h.

References plotsTopMargin.

65 { return plotsTopMargin; }
int PlotCompareUtility::getPlotsWidth ( ) const
inline

Definition at line 64 of file PlotCompareUtility.h.

References plotsWidth.

64 { return plotsWidth; }
int PlotCompareUtility::getProjectionsBarsThickness ( ) const
inline

Definition at line 58 of file PlotCompareUtility.h.

References projectionsBarsThickness.

int PlotCompareUtility::getProjectionsBottomMargin ( ) const
inline

Definition at line 62 of file PlotCompareUtility.h.

References projectionsBottomMargin.

int PlotCompareUtility::getProjectionsHeight ( ) const
inline

Definition at line 56 of file PlotCompareUtility.h.

References projectionsHeight.

56 { return projectionsHeight; }
int PlotCompareUtility::getProjectionsLeftMargin ( ) const
inline

Definition at line 60 of file PlotCompareUtility.h.

References projectionsLeftMargin.

int PlotCompareUtility::getProjectionsRightMargin ( ) const
inline

Definition at line 61 of file PlotCompareUtility.h.

References projectionsRightMargin.

int PlotCompareUtility::getProjectionsTopMargin ( ) const
inline

Definition at line 59 of file PlotCompareUtility.h.

References projectionsTopMargin.

int PlotCompareUtility::getProjectionsWidth ( ) const
inline

Definition at line 57 of file PlotCompareUtility.h.

References projectionsWidth.

57 { return projectionsWidth; }
std::vector<HistoData>* PlotCompareUtility::getProjectionsX ( HistoData HD)
inline

Definition at line 35 of file PlotCompareUtility.h.

References projectionsX.

35 { return &projectionsX[HD]; }
std::map< HistoData *, std::vector< HistoData > > projectionsX
std::vector<HistoData>* PlotCompareUtility::getProjectionsY ( HistoData HD)
inline

Definition at line 36 of file PlotCompareUtility.h.

References projectionsY.

36 { return &projectionsY[HD]; }
std::map< HistoData *, std::vector< HistoData > > projectionsY
int PlotCompareUtility::getSummaryBarsThickness ( ) const
inline

Definition at line 51 of file PlotCompareUtility.h.

References summaryBarsThickness.

int PlotCompareUtility::getSummaryBottomMargin ( ) const
inline

Definition at line 55 of file PlotCompareUtility.h.

References summaryBottomMargin.

int PlotCompareUtility::getSummaryHeight ( ) const
inline

Definition at line 50 of file PlotCompareUtility.h.

References summaryHeight.

50 { return summaryHeight; }
int PlotCompareUtility::getSummaryLeftMargin ( ) const
inline

Definition at line 53 of file PlotCompareUtility.h.

References summaryLeftMargin.

53 { return summaryLeftMargin; }
int PlotCompareUtility::getSummaryRightMargin ( ) const
inline

Definition at line 54 of file PlotCompareUtility.h.

References summaryRightMargin.

int PlotCompareUtility::getSummaryTopMargin ( ) const
inline

Definition at line 52 of file PlotCompareUtility.h.

References summaryTopMargin.

52 { return summaryTopMargin; }
int PlotCompareUtility::getSummaryWidth ( ) const
inline

Definition at line 49 of file PlotCompareUtility.h.

References summaryWidth.

49 { return summaryWidth; }
double PlotCompareUtility::getThreshold ( ) const
bool PlotCompareUtility::isValid ( ) const
void PlotCompareUtility::makeDefaultPlots ( )
void PlotCompareUtility::makeHTML< Plot2D > ( HistoData HD)
inline

Definition at line 149 of file Plot1D.h.

149  {
150  /* HTML is not presently required for 1D histograms -- do nothing
151 
152  // create HTML support code for this HistoData
153  std::string Name = hd->getName();
154  std::string gifName = Name + "_Results.gif";
155  std::string html = Name + "_Results.html";
156  ofstream fout(html.c_str());
157 
158  // simply link to the appropriate image overlay
159  fout << "<html><body><img src=\"" << gifName << "\"></body></html>" << endl;
160 
161  // close the file
162  fout.close();
163 
164  */
165 }
template<int PlotType>
void PlotCompareUtility::makeHTML ( HistoData )
private
void PlotCompareUtility::makePlots< Plot2D > ( HistoData HD)
inline

Definition at line 67 of file Plot1D.h.

References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, postprocess-scan-build::href, WDecay::kNone, compareTotals::legend, AlCaHLTBitMon_QueryRunRegistry::string, and runGCPTkAlMap::title.

67  {
68  std::cerr << HD->getName() << "makePlots<Plot1D>\n";
69 
70  // do not make any new plot if empty
71  if (HD->getIsEmpty()) {
72  HD->setResultImage("NoData_Results.gif");
73  HD->setResultTarget("NoData_Results.gif");
74  return;
75  }
76 
77  // get the reference and comparison histograms
78  TH1F *href = (TH1F *)HD->getRefHisto();
79  TH1F *hnew = (TH1F *)HD->getNewHisto();
80 
81  // set drawing options on the reference histogram
82  href->SetStats(false);
83  href->SetLineWidth(2);
84  href->SetLineColor(14);
85  href->SetMarkerColor(14);
86  href->SetFillColor(18);
87 
88  // set drawing options on the new histogram
89  hnew->SetStats(false);
90  hnew->SetLineWidth(2);
91  hnew->SetLineColor(HD->getShadedLineColor());
92  hnew->SetFillStyle(HD->getShadedFillStyle());
93  hnew->SetFillColor(HD->getShadedFillColor());
94 
95  // place the test results as the title
96  TString title = HD->getName();
97  if (ksThreshold > 0) {
98  title += " KS Score = ";
99  title += HD->getKSScore();
100  }
101  if (chi2Threshold > 0) {
102  title += " Chi^2 Score = ";
103  title += HD->getChi2Score();
104  }
105 
106  // the canvas is rescaled during gif conversion, so add padding to Canvas
107  // dimensions
108  int plotsCanvasWidth = plotsWidth + 4;
109  int plotsCanvasHeight = plotsHeight + 28;
110 
111  // setup canvas for displaying the compared histograms
112  TCanvas hCanvas("hCanvas", "hCanvas", plotsCanvasWidth, plotsCanvasHeight);
113  hCanvas.SetTopMargin(float(plotsTopMargin) / plotsHeight);
114  hCanvas.SetLeftMargin(float(plotsLeftMargin) / plotsWidth);
115  hCanvas.SetRightMargin(float(plotsRightMargin) / plotsWidth);
116  hCanvas.SetBottomMargin(float(plotsBottomMargin) / plotsHeight);
117  hCanvas.SetFrameFillColor(10);
118  hCanvas.SetGrid();
119  hCanvas.SetLogy(1);
120  hCanvas.Draw();
121 
122  TText canvasTitle(0.1, 0.97, title.Data());
123  canvasTitle.Draw("SAME");
124 
125  // draw the histograms
126  href->Draw();
127  hnew->Draw("SAME");
128  if (HD->getDoDrawErrorBars())
129  hnew->Draw("E1SAME");
130 
131  // draw a legend
132  TLegend legend(0.15, 0.01, 0.3, 0.08);
133  legend.AddEntry(hnew, "New", "lF");
134  legend.AddEntry(href, "Reference", "lF");
135  legend.SetFillColor(kNone);
136  legend.Draw("SAME");
137 
138  // create the plots overlay image
139  std::string gifName = HD->getName() + "_Results.gif";
140  if (HD->getResultImage().empty())
141  HD->setResultImage(gifName);
142  if (HD->getResultTarget().empty())
143  HD->setResultTarget(gifName);
144  std::cerr << "About to print" << gifName << "\n";
145  hCanvas.Print(gifName.c_str());
146 }
float getKSScore() const
Definition: HistoData.h:38
std::string getName() const
Definition: HistoData.h:17
int getShadedLineColor() const
Definition: HistoData.h:50
void setResultTarget(std::string Target)
Definition: HistoData.h:60
bool getDoDrawErrorBars() const
Definition: HistoData.h:27
TH1 * getRefHisto() const
Definition: HistoData.h:22
float getChi2Score() const
Definition: HistoData.h:39
bool getIsEmpty() const
Definition: HistoData.h:43
void setResultImage(std::string Image)
Definition: HistoData.h:59
int getShadedFillStyle() const
Definition: HistoData.h:52
TH1 * getNewHisto() const
Definition: HistoData.h:21
std::string getResultImage() const
Definition: HistoData.h:23
std::string getResultTarget() const
Definition: HistoData.h:24
int getShadedFillColor() const
Definition: HistoData.h:51
template<int PlotType>
void PlotCompareUtility::makePlots ( HistoData )
private
void PlotCompareUtility::makeSummary ( std::string  Name)
void PlotCompareUtility::makeSummaryHTML ( std::string  Name)
void PlotCompareUtility::makeSummaryPlot ( std::string  Name)
void PlotCompareUtility::renormalize ( TH1 *  ,
TH1 *   
)
private
void PlotCompareUtility::setChi2Threshold ( double  Threshold)
inline

Definition at line 72 of file PlotCompareUtility.h.

References chi2Threshold.

72 { chi2Threshold = Threshold; }
void PlotCompareUtility::setKSThreshold ( double  Threshold)
inline

Definition at line 71 of file PlotCompareUtility.h.

References ksThreshold.

71 { ksThreshold = Threshold; }
void PlotCompareUtility::setPlotsBottomMargin ( int  Pixels)
inline

Definition at line 94 of file PlotCompareUtility.h.

References plotsBottomMargin.

94 { plotsBottomMargin = Pixels; }
void PlotCompareUtility::setPlotsHeight ( int  Pixels)
inline

Definition at line 89 of file PlotCompareUtility.h.

References plotsHeight.

89 { plotsHeight = Pixels; }
void PlotCompareUtility::setPlotsLeftMargin ( int  Pixels)
inline

Definition at line 92 of file PlotCompareUtility.h.

References plotsLeftMargin.

92 { plotsLeftMargin = Pixels; }
void PlotCompareUtility::setPlotsRightMargin ( int  Pixels)
inline

Definition at line 93 of file PlotCompareUtility.h.

References plotsRightMargin.

93 { plotsRightMargin = Pixels; }
void PlotCompareUtility::setPlotsTopMargin ( int  Pixels)
inline

Definition at line 91 of file PlotCompareUtility.h.

References plotsTopMargin.

91 { plotsTopMargin = Pixels; }
void PlotCompareUtility::setPlotsWidth ( int  Pixels)
inline

Definition at line 90 of file PlotCompareUtility.h.

References plotsWidth.

90 { plotsWidth = Pixels; }
void PlotCompareUtility::setProjectionsBarsThickness ( int  Pixels)
inline

Definition at line 84 of file PlotCompareUtility.h.

References projectionsBarsThickness.

void PlotCompareUtility::setProjectionsBottomMargin ( int  Pixels)
inline

Definition at line 88 of file PlotCompareUtility.h.

References projectionsBottomMargin.

88 { projectionsBottomMargin = Pixels; }
void PlotCompareUtility::setProjectionsHeight ( int  Pixels)
inline

Definition at line 83 of file PlotCompareUtility.h.

References projectionsHeight.

83 { projectionsHeight = Pixels; }
void PlotCompareUtility::setProjectionsiWidth ( int  Pixels)
inline

Definition at line 82 of file PlotCompareUtility.h.

References projectionsWidth.

82 { projectionsWidth = Pixels; }
void PlotCompareUtility::setProjectionsLeftMargin ( int  Pixels)
inline

Definition at line 86 of file PlotCompareUtility.h.

References projectionsLeftMargin.

86 { projectionsLeftMargin = Pixels; }
void PlotCompareUtility::setProjectionsRightMargin ( int  Pixels)
inline

Definition at line 87 of file PlotCompareUtility.h.

References projectionsRightMargin.

87 { projectionsRightMargin = Pixels; }
void PlotCompareUtility::setProjectionsTopMargin ( int  Pixels)
inline

Definition at line 85 of file PlotCompareUtility.h.

References projectionsTopMargin.

85 { projectionsTopMargin = Pixels; }
void PlotCompareUtility::setSummaryBarsThickness ( int  Pixels)
inline

Definition at line 77 of file PlotCompareUtility.h.

References summaryBarsThickness.

77 { summaryBarsThickness = Pixels; }
void PlotCompareUtility::setSummaryBottomMargin ( int  Pixels)
inline

Definition at line 81 of file PlotCompareUtility.h.

References summaryBottomMargin.

81 { summaryBottomMargin = Pixels; }
void PlotCompareUtility::setSummaryHeight ( int  Pixels)
inline

Definition at line 76 of file PlotCompareUtility.h.

References summaryHeight.

76 { summaryHeight = Pixels; }
void PlotCompareUtility::setSummaryLeftMargin ( int  Pixels)
inline

Definition at line 79 of file PlotCompareUtility.h.

References summaryLeftMargin.

79 { summaryLeftMargin = Pixels; }
void PlotCompareUtility::setSummaryRightMargin ( int  Pixels)
inline

Definition at line 80 of file PlotCompareUtility.h.

References summaryRightMargin.

80 { summaryRightMargin = Pixels; }
void PlotCompareUtility::setSummaryTopMargin ( int  Pixels)
inline

Definition at line 78 of file PlotCompareUtility.h.

References summaryTopMargin.

78 { summaryTopMargin = Pixels; }
void PlotCompareUtility::setSummaryWidth ( int  Pixels)
inline

Definition at line 75 of file PlotCompareUtility.h.

References summaryWidth.

75 { summaryWidth = Pixels; }

Member Data Documentation

double PlotCompareUtility::chi2Threshold
private

Definition at line 137 of file PlotCompareUtility.h.

Referenced by getChi2Threshold(), and setChi2Threshold().

bool PlotCompareUtility::finalResult
private

Definition at line 176 of file PlotCompareUtility.h.

Referenced by getFinalResult().

std::vector<HistoData> PlotCompareUtility::histos
private

Definition at line 123 of file PlotCompareUtility.h.

Referenced by clearHistos(), getHistos(), and getNumHistos().

double PlotCompareUtility::ksThreshold
private

Definition at line 136 of file PlotCompareUtility.h.

Referenced by getKSThreshold(), and setKSThreshold().

std::string PlotCompareUtility::newBasePath
private

Definition at line 130 of file PlotCompareUtility.h.

TFile* PlotCompareUtility::newFile
private

Definition at line 129 of file PlotCompareUtility.h.

std::string PlotCompareUtility::newPrefix
private

Definition at line 131 of file PlotCompareUtility.h.

int PlotCompareUtility::plotsBottomMargin
private

Definition at line 173 of file PlotCompareUtility.h.

Referenced by getPlotsBottomMargin(), and setPlotsBottomMargin().

int PlotCompareUtility::plotsHeight
private

Definition at line 169 of file PlotCompareUtility.h.

Referenced by getPlotsHeight(), and setPlotsHeight().

int PlotCompareUtility::plotsLeftMargin
private

Definition at line 171 of file PlotCompareUtility.h.

Referenced by getPlotsLeftMargin(), and setPlotsLeftMargin().

int PlotCompareUtility::plotsRightMargin
private

Definition at line 172 of file PlotCompareUtility.h.

Referenced by getPlotsRightMargin(), and setPlotsRightMargin().

int PlotCompareUtility::plotsTopMargin
private

Definition at line 170 of file PlotCompareUtility.h.

Referenced by getPlotsTopMargin(), and setPlotsTopMargin().

int PlotCompareUtility::plotsWidth
private

Definition at line 168 of file PlotCompareUtility.h.

Referenced by getPlotsWidth(), and setPlotsWidth().

int PlotCompareUtility::projectionsBarsThickness
private
int PlotCompareUtility::projectionsBottomMargin
private

Definition at line 165 of file PlotCompareUtility.h.

Referenced by getProjectionsBottomMargin(), and setProjectionsBottomMargin().

int PlotCompareUtility::projectionsHeight
private

Definition at line 160 of file PlotCompareUtility.h.

Referenced by getProjectionsHeight(), and setProjectionsHeight().

int PlotCompareUtility::projectionsLeftMargin
private

Definition at line 163 of file PlotCompareUtility.h.

Referenced by getProjectionsLeftMargin(), and setProjectionsLeftMargin().

int PlotCompareUtility::projectionsRightMargin
private

Definition at line 164 of file PlotCompareUtility.h.

Referenced by getProjectionsRightMargin(), and setProjectionsRightMargin().

int PlotCompareUtility::projectionsTopMargin
private

Definition at line 162 of file PlotCompareUtility.h.

Referenced by getProjectionsTopMargin(), and setProjectionsTopMargin().

int PlotCompareUtility::projectionsWidth
private

Definition at line 159 of file PlotCompareUtility.h.

Referenced by getProjectionsWidth(), and setProjectionsiWidth().

std::map<HistoData *, std::vector<HistoData> > PlotCompareUtility::projectionsX
private

Definition at line 124 of file PlotCompareUtility.h.

Referenced by clearProjectionsX(), and getProjectionsX().

std::map<HistoData *, std::vector<HistoData> > PlotCompareUtility::projectionsY
private

Definition at line 125 of file PlotCompareUtility.h.

Referenced by clearProjectionsY(), and getProjectionsY().

std::string PlotCompareUtility::refBasePath
private

Definition at line 132 of file PlotCompareUtility.h.

TFile* PlotCompareUtility::refFile
private

Definition at line 128 of file PlotCompareUtility.h.

std::string PlotCompareUtility::refPrefix
private

Definition at line 133 of file PlotCompareUtility.h.

int PlotCompareUtility::summaryBarsThickness
private

Definition at line 152 of file PlotCompareUtility.h.

Referenced by getSummaryBarsThickness(), and setSummaryBarsThickness().

int PlotCompareUtility::summaryBottomMargin
private

Definition at line 156 of file PlotCompareUtility.h.

Referenced by getSummaryBottomMargin(), and setSummaryBottomMargin().

int PlotCompareUtility::summaryHeight
private

Definition at line 151 of file PlotCompareUtility.h.

Referenced by getSummaryHeight(), and setSummaryHeight().

int PlotCompareUtility::summaryLeftMargin
private

Definition at line 154 of file PlotCompareUtility.h.

Referenced by getSummaryLeftMargin(), and setSummaryLeftMargin().

int PlotCompareUtility::summaryRightMargin
private

Definition at line 155 of file PlotCompareUtility.h.

Referenced by getSummaryRightMargin(), and setSummaryRightMargin().

int PlotCompareUtility::summaryTopMargin
private

Definition at line 153 of file PlotCompareUtility.h.

Referenced by getSummaryTopMargin(), and setSummaryTopMargin().

int PlotCompareUtility::summaryWidth
private

Definition at line 150 of file PlotCompareUtility.h.

Referenced by getSummaryWidth(), and setSummaryWidth().