CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions | Private Attributes

PlotCompareUtility Class Reference

#include <PlotCompareUtility.h>

List of all members.

Public Types

enum  Axis { axisX, axisY }

Public Member Functions

HistoDataAddHistoData (std::string Name)
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)
double Compare (TH1F *, TH1F *, int)
bool compare (HistoData *)
void dump ()
float GetChi2Threshold ()
double getChi2Threshold () const
std::string GetDataPath ()
bool getFinalResult () const
HistoDataGetHistoData (std::string Name)
HistoDataGetHistoData (int)
std::vector< HistoData > * getHistos ()
double getKSThreshold () const
float GetKSThreshold ()
TFile * GetNewFile ()
TObject * GetNewHisto (std::string Name)
int GetNumHistos ()
int getNumHistos () const
std::string GetPageTitle ()
int getPlotsBottomMargin () const
int getPlotsHeight () const
int getPlotsLeftMargin () const
int getPlotsRightMargin () const
int getPlotsTopMargin () const
int getPlotsWidth () const
std::string GetPrefix ()
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)
TFile * GetRefFile ()
TObject * GetRefHisto (std::string Name)
int GetStatus ()
TStyle GetStyle ()
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="")
 PlotCompareUtility (std::string Reference, std::string New, std::string DataPath, std::string Prefix="")
void SetChi2Threshold (float v)
void setChi2Threshold (double Threshold)
void SetDataPath (std::string v)
void setKSThreshold (double Threshold)
void SetKSThreshold (float v)
void SetPageTitle (std::string v)
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 SetStyle (TStyle v)
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 ()
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

std::string base_path
float chi2_threshold
double chi2Threshold
std::string comp_title
bool finalResult
std::vector< HistoData * > histo_d
std::vector< HistoDatahistos
float ks_threshold
double ksThreshold
TFile * new_file
std::string newBasePath
TFile * newFile
std::string newPrefix
int plotsBottomMargin
int plotsHeight
int plotsLeftMargin
int plotsRightMargin
int plotsTopMargin
int plotsWidth
std::string prefix
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
TFile * ref_file
std::string refBasePath
TFile * refFile
std::string refPrefix
int status
TStyle style
int summaryBarsThickness
int summaryBottomMargin
int summaryHeight
int summaryLeftMargin
int summaryRightMargin
int summaryTopMargin
int summaryWidth

Detailed Description

Definition at line 16 of file PlotCompareUtility.h.


Member Enumeration Documentation

Enumerator:
axisX 
axisY 

Definition at line 27 of file PlotCompareUtility.h.

{ axisX, axisY /*, axisZ -- maybe later? */ };

Constructor & Destructor Documentation

PlotCompareUtility::PlotCompareUtility ( std::string  Reference,
std::string  New,
std::string  DataPath,
std::string  Prefix = "" 
)
virtual PlotCompareUtility::~PlotCompareUtility ( ) [virtual]
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  Name)
HistoData* PlotCompareUtility::addHistoData ( std::string  NewName,
std::string  RefName,
int  PlotType 
)
HistoData* PlotCompareUtility::addHistoData ( std::string  Name,
int  PlotType 
) [inline]

Definition at line 93 of file PlotCompareUtility.h.

References addHistoData().

Referenced by addHistoData().

{ return addHistoData(Name,Name,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 96 of file PlotCompareUtility.h.

References histos.

{ histos.clear(); }
void PlotCompareUtility::clearProjectionsX ( HistoData Parent) [inline]

Definition at line 97 of file PlotCompareUtility.h.

References projectionsX.

{ projectionsX[Parent].clear(); }
void PlotCompareUtility::clearProjectionsY ( HistoData Parent) [inline]

Definition at line 98 of file PlotCompareUtility.h.

References projectionsY.

{ projectionsY[Parent].clear(); }
double PlotCompareUtility::Compare ( TH1F *  ,
TH1F *  ,
int   
)
bool PlotCompareUtility::compare< Plot2D > ( HistoData HD)

Definition at line 18 of file Plot1D.h.

References dtNoiseDBValidation_cfg::cerr, and NULL.

                                                      {

  // get the reference and comparison histograms
  TH1F *href = (TH1F *)HD->getRefHisto();
  TH1F *hnew = (TH1F *)HD->getNewHisto();

  // do not run comparisons if either histogram is empty/broken
  if (hnew == NULL || href == NULL || hnew->GetEntries() <= 1 || href->GetEntries() <= 1) {
    //std::cerr << HD->getName() << " error: unable to retrieve histogram (or no entries)\n";
    HD->setIsEmpty(true); return false;
  }

  // rebin histograms and center on common range
  if (HD->getDoAllow1DRebinning()) centerRebin(href,hnew);

  // run statistical comparisons
  double ksScore = hnew->KolmogorovTest(href,"D");
  double chi2Score = hnew->Chi2Test(href,"uup");

  // renormalize histograms for common display
  renormalize(href,hnew);

  // set ks/chi2 and determine high/low scores
  HD->setKSScore(ksScore); HD->setChi2Score(chi2Score);
  if (ksThreshold > 0 && chi2Threshold > 0) {
    HD->setLowScore(ksScore < chi2Score ? ksScore : chi2Score);
    HD->setHighScore(ksScore > chi2Score ? ksScore : chi2Score); 
  } 
  else if (ksThreshold > 0) {  HD->setLowScore(ksScore); HD->setHighScore(ksScore); }
  else if (chi2Threshold > 0) { HD->setLowScore(chi2Score); HD->setHighScore(chi2Score); }
  else std::cerr << "error: no test performed? chi2Threshold and ksThreshold <= 0\n";

  // check overall result
  bool passed = (ksScore >= ksThreshold && chi2Score >= chi2Threshold);
  HD->setResult(passed);
//  if (!passed) std::cout << "NOTPASSED!!!!"; else std::cout << "YESPASSED!";
  // returns true on test passed and false on test failed
  HD->setIsEmpty(false);
  return passed;

}
template<int PlotType>
bool PlotCompareUtility::compare ( HistoData ) [private]
void PlotCompareUtility::dump ( )
float PlotCompareUtility::GetChi2Threshold ( ) [inline]

Definition at line 37 of file PlotCompareUtility.h.

References chi2_threshold.

{ return chi2_threshold; }
double PlotCompareUtility::getChi2Threshold ( ) const [inline]

Definition at line 39 of file PlotCompareUtility.h.

References chi2Threshold.

{ return chi2Threshold; }
std::string PlotCompareUtility::GetDataPath ( ) [inline]

Definition at line 38 of file PlotCompareUtility.h.

References base_path.

{ return base_path; }
bool PlotCompareUtility::getFinalResult ( ) const [inline]

Definition at line 41 of file PlotCompareUtility.h.

References finalResult.

{ return finalResult; }
HistoData* PlotCompareUtility::GetHistoData ( std::string  Name)
HistoData* PlotCompareUtility::GetHistoData ( int  )
std::vector<HistoData>* PlotCompareUtility::getHistos ( void  ) [inline]

Definition at line 30 of file PlotCompareUtility.h.

References histos.

{ return &histos; }
float PlotCompareUtility::GetKSThreshold ( ) [inline]

Definition at line 36 of file PlotCompareUtility.h.

References ks_threshold.

{ return ks_threshold; }
double PlotCompareUtility::getKSThreshold ( ) const [inline]

Definition at line 38 of file PlotCompareUtility.h.

References ksThreshold.

{ return ksThreshold; }
TFile* PlotCompareUtility::GetNewFile ( ) [inline]

Definition at line 32 of file PlotCompareUtility.h.

References new_file.

{ return new_file; }
TObject* PlotCompareUtility::GetNewHisto ( std::string  Name)
int PlotCompareUtility::GetNumHistos ( )
int PlotCompareUtility::getNumHistos ( ) const [inline]

Definition at line 33 of file PlotCompareUtility.h.

References histos.

{ return histos.size(); } 
std::string PlotCompareUtility::GetPageTitle ( ) [inline]

Definition at line 40 of file PlotCompareUtility.h.

References comp_title.

{ return comp_title; }
int PlotCompareUtility::getPlotsBottomMargin ( ) const [inline]

Definition at line 63 of file PlotCompareUtility.h.

References plotsBottomMargin.

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

Definition at line 58 of file PlotCompareUtility.h.

References plotsHeight.

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

Definition at line 61 of file PlotCompareUtility.h.

References plotsLeftMargin.

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

Definition at line 62 of file PlotCompareUtility.h.

References plotsRightMargin.

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

Definition at line 60 of file PlotCompareUtility.h.

References plotsTopMargin.

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

Definition at line 59 of file PlotCompareUtility.h.

References plotsWidth.

{ return plotsWidth; }
std::string PlotCompareUtility::GetPrefix ( ) [inline]

Definition at line 42 of file PlotCompareUtility.h.

References prefix.

{ return prefix; }
int PlotCompareUtility::getProjectionsBarsThickness ( ) const [inline]

Definition at line 53 of file PlotCompareUtility.h.

References projectionsBarsThickness.

int PlotCompareUtility::getProjectionsBottomMargin ( ) const [inline]

Definition at line 57 of file PlotCompareUtility.h.

References projectionsBottomMargin.

int PlotCompareUtility::getProjectionsHeight ( ) const [inline]

Definition at line 51 of file PlotCompareUtility.h.

References projectionsHeight.

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

Definition at line 55 of file PlotCompareUtility.h.

References projectionsLeftMargin.

int PlotCompareUtility::getProjectionsRightMargin ( ) const [inline]

Definition at line 56 of file PlotCompareUtility.h.

References projectionsRightMargin.

int PlotCompareUtility::getProjectionsTopMargin ( ) const [inline]

Definition at line 54 of file PlotCompareUtility.h.

References projectionsTopMargin.

int PlotCompareUtility::getProjectionsWidth ( ) const [inline]

Definition at line 52 of file PlotCompareUtility.h.

References projectionsWidth.

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

Definition at line 31 of file PlotCompareUtility.h.

References projectionsX.

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

Definition at line 32 of file PlotCompareUtility.h.

References projectionsY.

{ return &projectionsY[HD]; }
TFile* PlotCompareUtility::GetRefFile ( ) [inline]

Definition at line 33 of file PlotCompareUtility.h.

References ref_file.

{ return ref_file; }
TObject* PlotCompareUtility::GetRefHisto ( std::string  Name)
int PlotCompareUtility::GetStatus ( ) [inline]

Definition at line 41 of file PlotCompareUtility.h.

References status.

{ return status; }
TStyle PlotCompareUtility::GetStyle ( ) [inline]

Definition at line 39 of file PlotCompareUtility.h.

References style.

{ return style; }
int PlotCompareUtility::getSummaryBarsThickness ( ) const [inline]

Definition at line 46 of file PlotCompareUtility.h.

References summaryBarsThickness.

int PlotCompareUtility::getSummaryBottomMargin ( ) const [inline]

Definition at line 50 of file PlotCompareUtility.h.

References summaryBottomMargin.

{ return summaryBottomMargin; }
int PlotCompareUtility::getSummaryHeight ( ) const [inline]

Definition at line 45 of file PlotCompareUtility.h.

References summaryHeight.

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

Definition at line 48 of file PlotCompareUtility.h.

References summaryLeftMargin.

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

Definition at line 49 of file PlotCompareUtility.h.

References summaryRightMargin.

{ return summaryRightMargin; }
int PlotCompareUtility::getSummaryTopMargin ( ) const [inline]

Definition at line 47 of file PlotCompareUtility.h.

References summaryTopMargin.

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

Definition at line 44 of file PlotCompareUtility.h.

References summaryWidth.

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

Definition at line 135 of file Plot1D.h.

                                                       {

  /* HTML is not presently required for 1D histograms -- do nothing

  // create HTML support code for this HistoData
  std::string Name = hd->getName();
  std::string gifName = Name + "_Results.gif";
  std::string html = Name + "_Results.html";
  ofstream fout(html.c_str());

  // simply link to the appropriate image overlay
  fout << "<html><body><img src=\"" << gifName << "\"></body></html>" << endl;
  
  // close the file
  fout.close();

  */

}
template<int PlotType>
void PlotCompareUtility::makeHTML ( HistoData ) [private]
void PlotCompareUtility::makePlots< Plot2D > ( HistoData HD)

Definition at line 61 of file Plot1D.h.

References dtNoiseDBValidation_cfg::cerr, WDecay::kNone, and indexGen::title.

                                                        {

  std::cerr << HD->getName() << "makePlots<Plot1D>\n";

  // do not make any new plot if empty
  if (HD->getIsEmpty()) {
    HD->setResultImage("NoData_Results.gif");
    HD->setResultTarget("NoData_Results.gif");
    return;
  }

  // get the reference and comparison histograms
  TH1F *href = (TH1F *)HD->getRefHisto();
  TH1F *hnew = (TH1F *)HD->getNewHisto();

  // set drawing options on the reference histogram
  href->SetStats(0);
  href->SetLineWidth(2);
  href->SetLineColor(14);
  href->SetMarkerColor(14);
  href->SetFillColor(18);

  // set drawing options on the new histogram
  hnew->SetStats(0);
  hnew->SetLineWidth(2);
  hnew->SetLineColor(HD->getShadedLineColor());
  hnew->SetFillStyle(HD->getShadedFillStyle());
  hnew->SetFillColor(HD->getShadedFillColor());

  // place the test results as the title
  TString title = HD->getName();
  if (ksThreshold > 0) title += " KS Score = "; title += HD->getKSScore();
  if (chi2Threshold > 0) title += " Chi^2 Score = "; title += HD->getChi2Score();

  // the canvas is rescaled during gif conversion, so add padding to Canvas dimensions
  int plotsCanvasWidth = plotsWidth + 4;
  int plotsCanvasHeight = plotsHeight + 28;

  // setup canvas for displaying the compared histograms
  TCanvas hCanvas("hCanvas","hCanvas",plotsCanvasWidth,plotsCanvasHeight);
  hCanvas.SetTopMargin(float(plotsTopMargin) / plotsHeight);
  hCanvas.SetLeftMargin(float(plotsLeftMargin) / plotsWidth);
  hCanvas.SetRightMargin(float(plotsRightMargin) / plotsWidth);
  hCanvas.SetBottomMargin(float(plotsBottomMargin) / plotsHeight);
  hCanvas.SetFrameFillColor(10);
  hCanvas.SetGrid();
  hCanvas.SetLogy(1);
  hCanvas.Draw();

  TText canvasTitle(0.1,0.97,title.Data());
  canvasTitle.Draw("SAME");

  // draw the histograms
  href->Draw();
  hnew->Draw("SAME");
  if (HD->getDoDrawErrorBars()) hnew->Draw("E1SAME");

  // draw a legend
  TLegend legend(0.15,0.01,0.3, 0.08);
  legend.AddEntry(hnew,"New","lF");
  legend.AddEntry(href,"Reference","lF");
  legend.SetFillColor(kNone);
  legend.Draw("SAME");

  // create the plots overlay image
  std::string gifName = HD->getName() + "_Results.gif";
  if (HD->getResultImage() == "") HD->setResultImage(gifName);
  if (HD->getResultTarget() == "") HD->setResultTarget(gifName);
  std::cerr << "About to print" << gifName << "\n";
  hCanvas.Print(gifName.c_str());

}
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 67 of file PlotCompareUtility.h.

References chi2Threshold.

{ chi2Threshold = Threshold; }
void PlotCompareUtility::SetChi2Threshold ( float  v) [inline]

Definition at line 26 of file PlotCompareUtility.h.

References chi2_threshold, and v.

void PlotCompareUtility::SetDataPath ( std::string  v) [inline]

Definition at line 27 of file PlotCompareUtility.h.

References base_path, and v.

{ base_path = v; }
void PlotCompareUtility::SetKSThreshold ( float  v) [inline]

Definition at line 25 of file PlotCompareUtility.h.

References ks_threshold, and v.

{ ks_threshold = v; } 
void PlotCompareUtility::setKSThreshold ( double  Threshold) [inline]

Definition at line 66 of file PlotCompareUtility.h.

References ksThreshold.

{ ksThreshold = Threshold; }
void PlotCompareUtility::SetPageTitle ( std::string  v) [inline]

Definition at line 29 of file PlotCompareUtility.h.

References comp_title, and v.

{ comp_title = v; }
void PlotCompareUtility::setPlotsBottomMargin ( int  Pixels) [inline]

Definition at line 89 of file PlotCompareUtility.h.

References plotsBottomMargin.

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

Definition at line 84 of file PlotCompareUtility.h.

References plotsHeight.

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

Definition at line 87 of file PlotCompareUtility.h.

References plotsLeftMargin.

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

Definition at line 88 of file PlotCompareUtility.h.

References plotsRightMargin.

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

Definition at line 86 of file PlotCompareUtility.h.

References plotsTopMargin.

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

Definition at line 85 of file PlotCompareUtility.h.

References plotsWidth.

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

Definition at line 79 of file PlotCompareUtility.h.

References projectionsBarsThickness.

void PlotCompareUtility::setProjectionsBottomMargin ( int  Pixels) [inline]

Definition at line 83 of file PlotCompareUtility.h.

References projectionsBottomMargin.

void PlotCompareUtility::setProjectionsHeight ( int  Pixels) [inline]

Definition at line 78 of file PlotCompareUtility.h.

References projectionsHeight.

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

Definition at line 77 of file PlotCompareUtility.h.

References projectionsWidth.

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

Definition at line 81 of file PlotCompareUtility.h.

References projectionsLeftMargin.

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

Definition at line 82 of file PlotCompareUtility.h.

References projectionsRightMargin.

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

Definition at line 80 of file PlotCompareUtility.h.

References projectionsTopMargin.

{ projectionsTopMargin = Pixels; }
void PlotCompareUtility::SetStyle ( TStyle  v) [inline]

Definition at line 28 of file PlotCompareUtility.h.

References style, and v.

{ style = v; }
void PlotCompareUtility::setSummaryBarsThickness ( int  Pixels) [inline]

Definition at line 72 of file PlotCompareUtility.h.

References summaryBarsThickness.

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

Definition at line 76 of file PlotCompareUtility.h.

References summaryBottomMargin.

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

Definition at line 71 of file PlotCompareUtility.h.

References summaryHeight.

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

Definition at line 74 of file PlotCompareUtility.h.

References summaryLeftMargin.

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

Definition at line 75 of file PlotCompareUtility.h.

References summaryRightMargin.

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

Definition at line 73 of file PlotCompareUtility.h.

References summaryTopMargin.

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

Definition at line 70 of file PlotCompareUtility.h.

References summaryWidth.

{ summaryWidth = Pixels; }

Member Data Documentation

std::string PlotCompareUtility::base_path [private]

Definition at line 64 of file PlotCompareUtility.h.

Referenced by GetDataPath(), and SetDataPath().

Definition at line 61 of file PlotCompareUtility.h.

Referenced by GetChi2Threshold(), and SetChi2Threshold().

Definition at line 131 of file PlotCompareUtility.h.

Referenced by getChi2Threshold(), and setChi2Threshold().

std::string PlotCompareUtility::comp_title [private]

Definition at line 70 of file PlotCompareUtility.h.

Referenced by GetPageTitle(), and SetPageTitle().

Definition at line 167 of file PlotCompareUtility.h.

Referenced by getFinalResult().

std::vector<HistoData *> PlotCompareUtility::histo_d [private]

Definition at line 53 of file PlotCompareUtility.h.

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

Definition at line 117 of file PlotCompareUtility.h.

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

Definition at line 60 of file PlotCompareUtility.h.

Referenced by GetKSThreshold(), and SetKSThreshold().

Definition at line 130 of file PlotCompareUtility.h.

Referenced by getKSThreshold(), and setKSThreshold().

TFile* PlotCompareUtility::new_file [private]

Definition at line 57 of file PlotCompareUtility.h.

Referenced by GetNewFile().

std::string PlotCompareUtility::newBasePath [private]

Definition at line 124 of file PlotCompareUtility.h.

TFile* PlotCompareUtility::newFile [private]

Definition at line 123 of file PlotCompareUtility.h.

std::string PlotCompareUtility::newPrefix [private]

Definition at line 125 of file PlotCompareUtility.h.

Definition at line 164 of file PlotCompareUtility.h.

Referenced by getPlotsBottomMargin(), and setPlotsBottomMargin().

Definition at line 160 of file PlotCompareUtility.h.

Referenced by getPlotsHeight(), and setPlotsHeight().

Definition at line 162 of file PlotCompareUtility.h.

Referenced by getPlotsLeftMargin(), and setPlotsLeftMargin().

Definition at line 163 of file PlotCompareUtility.h.

Referenced by getPlotsRightMargin(), and setPlotsRightMargin().

Definition at line 161 of file PlotCompareUtility.h.

Referenced by getPlotsTopMargin(), and setPlotsTopMargin().

Definition at line 159 of file PlotCompareUtility.h.

Referenced by getPlotsWidth(), and setPlotsWidth().

std::string PlotCompareUtility::prefix [private]

Definition at line 67 of file PlotCompareUtility.h.

Referenced by GetPrefix().

Definition at line 156 of file PlotCompareUtility.h.

Referenced by getProjectionsBottomMargin(), and setProjectionsBottomMargin().

Definition at line 151 of file PlotCompareUtility.h.

Referenced by getProjectionsHeight(), and setProjectionsHeight().

Definition at line 154 of file PlotCompareUtility.h.

Referenced by getProjectionsLeftMargin(), and setProjectionsLeftMargin().

Definition at line 155 of file PlotCompareUtility.h.

Referenced by getProjectionsRightMargin(), and setProjectionsRightMargin().

Definition at line 153 of file PlotCompareUtility.h.

Referenced by getProjectionsTopMargin(), and setProjectionsTopMargin().

Definition at line 150 of file PlotCompareUtility.h.

Referenced by getProjectionsWidth(), and setProjectionsiWidth().

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

Definition at line 118 of file PlotCompareUtility.h.

Referenced by clearProjectionsX(), and getProjectionsX().

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

Definition at line 119 of file PlotCompareUtility.h.

Referenced by clearProjectionsY(), and getProjectionsY().

TFile* PlotCompareUtility::ref_file [private]

Definition at line 56 of file PlotCompareUtility.h.

Referenced by GetRefFile().

std::string PlotCompareUtility::refBasePath [private]

Definition at line 126 of file PlotCompareUtility.h.

TFile* PlotCompareUtility::refFile [private]

Definition at line 122 of file PlotCompareUtility.h.

std::string PlotCompareUtility::refPrefix [private]

Definition at line 127 of file PlotCompareUtility.h.

Definition at line 76 of file PlotCompareUtility.h.

Referenced by GetStatus().

TStyle PlotCompareUtility::style [private]

Definition at line 73 of file PlotCompareUtility.h.

Referenced by GetStyle(), and SetStyle().

Definition at line 143 of file PlotCompareUtility.h.

Referenced by getSummaryBarsThickness(), and setSummaryBarsThickness().

Definition at line 147 of file PlotCompareUtility.h.

Referenced by getSummaryBottomMargin(), and setSummaryBottomMargin().

Definition at line 142 of file PlotCompareUtility.h.

Referenced by getSummaryHeight(), and setSummaryHeight().

Definition at line 145 of file PlotCompareUtility.h.

Referenced by getSummaryLeftMargin(), and setSummaryLeftMargin().

Definition at line 146 of file PlotCompareUtility.h.

Referenced by getSummaryRightMargin(), and setSummaryRightMargin().

Definition at line 144 of file PlotCompareUtility.h.

Referenced by getSummaryTopMargin(), and setSummaryTopMargin().

Definition at line 141 of file PlotCompareUtility.h.

Referenced by getSummaryWidth(), and setSummaryWidth().