CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
HistoData Class Reference

#include <HistoData.h>

Public Member Functions

void clear ()
 
bool comparisonSuccess () const
 
void drawResult (TH1 *Summary, bool Vertical=true, bool SetLabels=false)
 
void dump ()
 
int getBin () const
 
float getChi2Score () const
 
bool getDoAllow1DRebinning () const
 
bool getDoAllow2DRebinningX () const
 
bool getDoAllow2DRebinningY () const
 
bool getDoDrawErrorBars () const
 
bool getDoProjectionsX () const
 
bool getDoProjectionsY () const
 
float getHighScore () const
 
bool getIsEmpty () const
 
float getKSScore () const
 
bool getLineUseFillColor () const
 
float getLowScore () const
 
int getMaxProjectionsX () const
 
int getMaxProjectionsY () const
 
std::string getName () const
 
TH1 * getNewHisto () const
 
TH1 * getRefHisto () const
 
bool getResult () const
 
std::string getResultImage () const
 
std::string getResultTarget () const
 
int getShadedFillColor () const
 
int getShadedFillStyle () const
 
int getShadedLineColor () const
 
int getSolidFillColor () const
 
int getSolidFillStyle () const
 
int getSolidLineColor () const
 
int getType () const
 
 HistoData (std::string Name, int PlotType, int Bin, std::string NewPath, TFile *NewFile, std::string RefPath, TFile *RefFile)
 
 HistoData (std::string Name, int PlotType, int Bin, TH1 *NewHisto, TH1 *RefHisto)
 
void setBin (int Bin)
 
void setChi2Score (float Score)
 
void setDoAllow1DRebinning (bool Toggle)
 
void setDoAllow2DRebinningX (bool Toggle)
 
void setDoAllow2DRebinningY (bool Toggle)
 
void setDoDrawErrorBars (bool Toggle)
 
void setDoProjectionsX (bool Toggle)
 
void setDoProjectionsY (bool Toggle)
 
void setHighScore (float Score)
 
void setIsEmpty (bool Toggle)
 
void setKSScore (float Score)
 
void setLineUseFillColor (bool Toggle)
 
void setLowScore (float Score)
 
void setMaxProjections (int Num)
 
void setMaxProjectionsX (bool Num)
 
void setMaxProjectionsY (bool Num)
 
void setName (std::string Name)
 
void setResult (bool Result)
 
void setResultImage (std::string Image)
 
void setResultTarget (std::string Target)
 
void setShadedFillColor (int Color)
 
void setShadedFillStyle (int Style)
 
void setShadedLineColor (int Color)
 
void setSolidFillColor (int Color)
 
void setSolidFillStyle (int Style)
 
void setSolidLineColor (int Color)
 
void setType (int PlotType)
 
virtual ~HistoData ()
 

Private Member Functions

void initialize ()
 

Private Attributes

int bin
 
float chi2Score
 
bool doAllow1DRebinning
 
bool doAllow2DRebinningX
 
bool doAllow2DRebinningY
 
bool doDrawErrorBars
 
bool doProjectionsX
 
bool doProjectionsY
 
int errorColor
 
int failColor
 
float highScore
 
bool isEmpty
 
float ksScore
 
bool lineUseFillColor
 
float lowScore
 
int maxProjectionsX
 
int maxProjectionsY
 
std::string name
 
TH1 * newHisto
 
int passColor
 
TH1 * refHisto
 
bool result
 
std::string resultImage
 
std::string resultTarget
 
int shadedFillColor
 
int shadedFillStyle
 
int shadedLineColor
 
int solidFillColor
 
int solidFillStyle
 
int solidLineColor
 
int type
 

Detailed Description

Definition at line 9 of file HistoData.h.

Constructor & Destructor Documentation

◆ HistoData() [1/2]

HistoData::HistoData ( std::string  Name,
int  PlotType,
int  Bin,
std::string  NewPath,
TFile *  NewFile,
std::string  RefPath,
TFile *  RefFile 
)

◆ HistoData() [2/2]

HistoData::HistoData ( std::string  Name,
int  PlotType,
int  Bin,
TH1 *  NewHisto,
TH1 *  RefHisto 
)

◆ ~HistoData()

virtual HistoData::~HistoData ( )
inlinevirtual

Definition at line 14 of file HistoData.h.

14 {}

Member Function Documentation

◆ clear()

void HistoData::clear ( void  )
inline

Definition at line 95 of file HistoData.h.

References newHisto, and refHisto.

Referenced by SummaryGenerator::clearMap().

95  {
96  newHisto->Clear();
97  refHisto->Clear();
98  };
TH1 * refHisto
Definition: HistoData.h:108
TH1 * newHisto
Definition: HistoData.h:107

◆ comparisonSuccess()

bool HistoData::comparisonSuccess ( ) const
inline

Definition at line 37 of file HistoData.h.

References isEmpty, and lowScore.

37 { return lowScore != 10 && !isEmpty; }
float lowScore
Definition: HistoData.h:125
bool isEmpty
Definition: HistoData.h:128

◆ drawResult()

void HistoData::drawResult ( TH1 *  Summary,
bool  Vertical = true,
bool  SetLabels = false 
)

◆ dump()

void HistoData::dump ( )
inline

◆ getBin()

int HistoData::getBin ( ) const
inline

Definition at line 20 of file HistoData.h.

References bin.

20 { return bin; }

◆ getChi2Score()

float HistoData::getChi2Score ( ) const
inline

Definition at line 39 of file HistoData.h.

References chi2Score.

39 { return chi2Score; }
float chi2Score
Definition: HistoData.h:124

◆ getDoAllow1DRebinning()

bool HistoData::getDoAllow1DRebinning ( ) const
inline

Definition at line 28 of file HistoData.h.

References doAllow1DRebinning.

28 { return doAllow1DRebinning; }
bool doAllow1DRebinning
Definition: HistoData.h:111

◆ getDoAllow2DRebinningX()

bool HistoData::getDoAllow2DRebinningX ( ) const
inline

Definition at line 29 of file HistoData.h.

References doAllow2DRebinningX.

29 { return doAllow2DRebinningX; }
bool doAllow2DRebinningX
Definition: HistoData.h:115

◆ getDoAllow2DRebinningY()

bool HistoData::getDoAllow2DRebinningY ( ) const
inline

Definition at line 30 of file HistoData.h.

References doAllow2DRebinningY.

30 { return doAllow2DRebinningY; }
bool doAllow2DRebinningY
Definition: HistoData.h:116

◆ getDoDrawErrorBars()

bool HistoData::getDoDrawErrorBars ( ) const
inline

Definition at line 27 of file HistoData.h.

References doDrawErrorBars.

27 { return doDrawErrorBars; }
bool doDrawErrorBars
Definition: HistoData.h:112

◆ getDoProjectionsX()

bool HistoData::getDoProjectionsX ( ) const
inline

Definition at line 31 of file HistoData.h.

References doProjectionsX.

31 { return doProjectionsX; }
bool doProjectionsX
Definition: HistoData.h:119

◆ getDoProjectionsY()

bool HistoData::getDoProjectionsY ( ) const
inline

Definition at line 32 of file HistoData.h.

References doProjectionsY.

32 { return doProjectionsY; }
bool doProjectionsY
Definition: HistoData.h:120

◆ getHighScore()

float HistoData::getHighScore ( ) const
inline

Definition at line 41 of file HistoData.h.

References highScore.

41 { return highScore; }
float highScore
Definition: HistoData.h:126

◆ getIsEmpty()

bool HistoData::getIsEmpty ( ) const
inline

Definition at line 43 of file HistoData.h.

References isEmpty.

43 { return isEmpty; }
bool isEmpty
Definition: HistoData.h:128

◆ getKSScore()

float HistoData::getKSScore ( ) const
inline

Definition at line 38 of file HistoData.h.

References ksScore.

38 { return ksScore; }
float ksScore
Definition: HistoData.h:123

◆ getLineUseFillColor()

bool HistoData::getLineUseFillColor ( ) const
inline

Definition at line 46 of file HistoData.h.

References lineUseFillColor.

46 { return lineUseFillColor; }
bool lineUseFillColor
Definition: HistoData.h:134

◆ getLowScore()

float HistoData::getLowScore ( ) const
inline

Definition at line 40 of file HistoData.h.

References lowScore.

40 { return lowScore; }
float lowScore
Definition: HistoData.h:125

◆ getMaxProjectionsX()

int HistoData::getMaxProjectionsX ( ) const
inline

Definition at line 33 of file HistoData.h.

References maxProjectionsX.

33 { return maxProjectionsX; }
int maxProjectionsX
Definition: HistoData.h:117

◆ getMaxProjectionsY()

int HistoData::getMaxProjectionsY ( ) const
inline

Definition at line 34 of file HistoData.h.

References maxProjectionsY.

34 { return maxProjectionsY; }
int maxProjectionsY
Definition: HistoData.h:118

◆ getName()

std::string HistoData::getName ( void  ) const
inline

Definition at line 17 of file HistoData.h.

References name.

Referenced by plotting.Plot::draw().

17 { return name; }
std::string name
Definition: HistoData.h:103

◆ getNewHisto()

TH1* HistoData::getNewHisto ( ) const
inline

Definition at line 21 of file HistoData.h.

References newHisto.

21 { return newHisto; }
TH1 * newHisto
Definition: HistoData.h:107

◆ getRefHisto()

TH1* HistoData::getRefHisto ( ) const
inline

Definition at line 22 of file HistoData.h.

References refHisto.

22 { return refHisto; }
TH1 * refHisto
Definition: HistoData.h:108

◆ getResult()

bool HistoData::getResult ( ) const
inline

Definition at line 42 of file HistoData.h.

References result.

42 { return result; }
bool result
Definition: HistoData.h:127

◆ getResultImage()

std::string HistoData::getResultImage ( ) const
inline

Definition at line 23 of file HistoData.h.

References resultImage.

23 { return resultImage; }
std::string resultImage
Definition: HistoData.h:109

◆ getResultTarget()

std::string HistoData::getResultTarget ( ) const
inline

Definition at line 24 of file HistoData.h.

References resultTarget.

24 { return resultTarget; }
std::string resultTarget
Definition: HistoData.h:110

◆ getShadedFillColor()

int HistoData::getShadedFillColor ( ) const
inline

Definition at line 51 of file HistoData.h.

References shadedFillColor.

51 { return shadedFillColor; }
int shadedFillColor
Definition: HistoData.h:133

◆ getShadedFillStyle()

int HistoData::getShadedFillStyle ( ) const
inline

Definition at line 52 of file HistoData.h.

References shadedFillStyle.

52 { return shadedFillStyle; }
int shadedFillStyle
Definition: HistoData.h:133

◆ getShadedLineColor()

int HistoData::getShadedLineColor ( ) const
inline

Definition at line 50 of file HistoData.h.

References lineUseFillColor, shadedFillColor, and shadedLineColor.

bool lineUseFillColor
Definition: HistoData.h:134
int shadedLineColor
Definition: HistoData.h:133
int shadedFillColor
Definition: HistoData.h:133

◆ getSolidFillColor()

int HistoData::getSolidFillColor ( ) const
inline

Definition at line 48 of file HistoData.h.

References solidFillColor.

48 { return solidFillColor; }
int solidFillColor
Definition: HistoData.h:132

◆ getSolidFillStyle()

int HistoData::getSolidFillStyle ( ) const
inline

Definition at line 49 of file HistoData.h.

References solidFillStyle.

49 { return solidFillStyle; }
int solidFillStyle
Definition: HistoData.h:132

◆ getSolidLineColor()

int HistoData::getSolidLineColor ( ) const
inline

Definition at line 47 of file HistoData.h.

References lineUseFillColor, solidFillColor, and solidLineColor.

bool lineUseFillColor
Definition: HistoData.h:134
int solidLineColor
Definition: HistoData.h:132
int solidFillColor
Definition: HistoData.h:132

◆ getType()

int HistoData::getType ( void  ) const
inline

Definition at line 19 of file HistoData.h.

References type.

19 { return type; }
int type
Definition: HistoData.h:105

◆ initialize()

void HistoData::initialize ( )
private

◆ setBin()

void HistoData::setBin ( int  Bin)
inline

Definition at line 58 of file HistoData.h.

References bin.

58 { bin = Bin; }

◆ setChi2Score()

void HistoData::setChi2Score ( float  Score)
inline

Definition at line 78 of file HistoData.h.

References chi2Score.

78 { chi2Score = Score; }
float chi2Score
Definition: HistoData.h:124

◆ setDoAllow1DRebinning()

void HistoData::setDoAllow1DRebinning ( bool  Toggle)
inline

Definition at line 64 of file HistoData.h.

References doAllow1DRebinning.

64 { doAllow1DRebinning = Toggle; }
bool doAllow1DRebinning
Definition: HistoData.h:111

◆ setDoAllow2DRebinningX()

void HistoData::setDoAllow2DRebinningX ( bool  Toggle)
inline

Definition at line 65 of file HistoData.h.

References doAllow2DRebinningX.

65 { doAllow2DRebinningX = Toggle; }
bool doAllow2DRebinningX
Definition: HistoData.h:115

◆ setDoAllow2DRebinningY()

void HistoData::setDoAllow2DRebinningY ( bool  Toggle)
inline

Definition at line 66 of file HistoData.h.

References doAllow2DRebinningY.

66 { doAllow2DRebinningY = Toggle; }
bool doAllow2DRebinningY
Definition: HistoData.h:116

◆ setDoDrawErrorBars()

void HistoData::setDoDrawErrorBars ( bool  Toggle)
inline

Definition at line 63 of file HistoData.h.

References doDrawErrorBars.

63 { doDrawErrorBars = Toggle; }
bool doDrawErrorBars
Definition: HistoData.h:112

◆ setDoProjectionsX()

void HistoData::setDoProjectionsX ( bool  Toggle)
inline

Definition at line 67 of file HistoData.h.

References doProjectionsX.

67 { doProjectionsX = Toggle; }
bool doProjectionsX
Definition: HistoData.h:119

◆ setDoProjectionsY()

void HistoData::setDoProjectionsY ( bool  Toggle)
inline

Definition at line 68 of file HistoData.h.

References doProjectionsY.

68 { doProjectionsY = Toggle; }
bool doProjectionsY
Definition: HistoData.h:120

◆ setHighScore()

void HistoData::setHighScore ( float  Score)
inline

Definition at line 80 of file HistoData.h.

References highScore.

80 { highScore = Score; }
float highScore
Definition: HistoData.h:126

◆ setIsEmpty()

void HistoData::setIsEmpty ( bool  Toggle)
inline

Definition at line 82 of file HistoData.h.

References isEmpty.

Referenced by PlotCompareUtility::makePlots().

82 { isEmpty = Toggle; }
bool isEmpty
Definition: HistoData.h:128

◆ setKSScore()

void HistoData::setKSScore ( float  Score)
inline

Definition at line 77 of file HistoData.h.

References ksScore.

77 { ksScore = Score; }
float ksScore
Definition: HistoData.h:123

◆ setLineUseFillColor()

void HistoData::setLineUseFillColor ( bool  Toggle)
inline

Definition at line 85 of file HistoData.h.

References lineUseFillColor.

85 { lineUseFillColor = Toggle; }
bool lineUseFillColor
Definition: HistoData.h:134

◆ setLowScore()

void HistoData::setLowScore ( float  Score)
inline

Definition at line 79 of file HistoData.h.

References lowScore.

79 { lowScore = Score; }
float lowScore
Definition: HistoData.h:125

◆ setMaxProjections()

void HistoData::setMaxProjections ( int  Num)
inline

Definition at line 69 of file HistoData.h.

References maxProjectionsX, and maxProjectionsY.

69  {
70  maxProjectionsX = Num;
71  maxProjectionsY = Num;
72  }
int maxProjectionsY
Definition: HistoData.h:118
int maxProjectionsX
Definition: HistoData.h:117

◆ setMaxProjectionsX()

void HistoData::setMaxProjectionsX ( bool  Num)
inline

Definition at line 73 of file HistoData.h.

References maxProjectionsX.

73 { maxProjectionsX = Num; }
int maxProjectionsX
Definition: HistoData.h:117

◆ setMaxProjectionsY()

void HistoData::setMaxProjectionsY ( bool  Num)
inline

Definition at line 74 of file HistoData.h.

References maxProjectionsY.

74 { maxProjectionsY = Num; }
int maxProjectionsY
Definition: HistoData.h:118

◆ setName()

void HistoData::setName ( std::string  Name)
inline

Definition at line 55 of file HistoData.h.

References SiStripClientConfig_Tier0_cff::Name, and name.

◆ setResult()

void HistoData::setResult ( bool  Result)

◆ setResultImage()

void HistoData::setResultImage ( std::string  Image)
inline

Definition at line 59 of file HistoData.h.

References resultImage.

59 { resultImage = Image; }
std::string resultImage
Definition: HistoData.h:109

◆ setResultTarget()

void HistoData::setResultTarget ( std::string  Target)
inline

Definition at line 60 of file HistoData.h.

References resultTarget.

60 { resultTarget = Target; }
std::string resultTarget
Definition: HistoData.h:110

◆ setShadedFillColor()

void HistoData::setShadedFillColor ( int  Color)
inline

Definition at line 90 of file HistoData.h.

References shadedFillColor.

Referenced by PlotCompareUtility::makePlots().

90 { shadedFillColor = Color; }
int shadedFillColor
Definition: HistoData.h:133

◆ setShadedFillStyle()

void HistoData::setShadedFillStyle ( int  Style)
inline

◆ setShadedLineColor()

void HistoData::setShadedLineColor ( int  Color)
inline

Definition at line 89 of file HistoData.h.

References shadedLineColor.

Referenced by PlotCompareUtility::makePlots().

89 { shadedLineColor = Color; }
int shadedLineColor
Definition: HistoData.h:133

◆ setSolidFillColor()

void HistoData::setSolidFillColor ( int  Color)
inline

Definition at line 87 of file HistoData.h.

References solidFillColor.

87 { solidFillColor = Color; }
int solidFillColor
Definition: HistoData.h:132

◆ setSolidFillStyle()

void HistoData::setSolidFillStyle ( int  Style)
inline

◆ setSolidLineColor()

void HistoData::setSolidLineColor ( int  Color)
inline

Definition at line 86 of file HistoData.h.

References solidLineColor.

86 { solidLineColor = Color; }
int solidLineColor
Definition: HistoData.h:132

◆ setType()

void HistoData::setType ( int  PlotType)
inline

Definition at line 57 of file HistoData.h.

Member Data Documentation

◆ bin

int HistoData::bin
private

Definition at line 106 of file HistoData.h.

Referenced by getBin(), and setBin().

◆ chi2Score

float HistoData::chi2Score
private

Definition at line 124 of file HistoData.h.

Referenced by getChi2Score(), and setChi2Score().

◆ doAllow1DRebinning

bool HistoData::doAllow1DRebinning
private

Definition at line 111 of file HistoData.h.

Referenced by getDoAllow1DRebinning(), and setDoAllow1DRebinning().

◆ doAllow2DRebinningX

bool HistoData::doAllow2DRebinningX
private

Definition at line 115 of file HistoData.h.

Referenced by getDoAllow2DRebinningX(), and setDoAllow2DRebinningX().

◆ doAllow2DRebinningY

bool HistoData::doAllow2DRebinningY
private

Definition at line 116 of file HistoData.h.

Referenced by getDoAllow2DRebinningY(), and setDoAllow2DRebinningY().

◆ doDrawErrorBars

bool HistoData::doDrawErrorBars
private

Definition at line 112 of file HistoData.h.

Referenced by getDoDrawErrorBars(), and setDoDrawErrorBars().

◆ doProjectionsX

bool HistoData::doProjectionsX
private

Definition at line 119 of file HistoData.h.

Referenced by getDoProjectionsX(), and setDoProjectionsX().

◆ doProjectionsY

bool HistoData::doProjectionsY
private

Definition at line 120 of file HistoData.h.

Referenced by getDoProjectionsY(), and setDoProjectionsY().

◆ errorColor

int HistoData::errorColor
private

Definition at line 131 of file HistoData.h.

◆ failColor

int HistoData::failColor
private

Definition at line 131 of file HistoData.h.

◆ highScore

float HistoData::highScore
private

Definition at line 126 of file HistoData.h.

Referenced by getHighScore(), and setHighScore().

◆ isEmpty

bool HistoData::isEmpty
private

Definition at line 128 of file HistoData.h.

Referenced by plotting.Plot::clone(), comparisonSuccess(), getIsEmpty(), and setIsEmpty().

◆ ksScore

float HistoData::ksScore
private

Definition at line 123 of file HistoData.h.

Referenced by getKSScore(), and setKSScore().

◆ lineUseFillColor

bool HistoData::lineUseFillColor
private

◆ lowScore

float HistoData::lowScore
private

Definition at line 125 of file HistoData.h.

Referenced by comparisonSuccess(), getLowScore(), and setLowScore().

◆ maxProjectionsX

int HistoData::maxProjectionsX
private

Definition at line 117 of file HistoData.h.

Referenced by getMaxProjectionsX(), setMaxProjections(), and setMaxProjectionsX().

◆ maxProjectionsY

int HistoData::maxProjectionsY
private

Definition at line 118 of file HistoData.h.

Referenced by getMaxProjectionsY(), setMaxProjections(), and setMaxProjectionsY().

◆ name

std::string HistoData::name
private

◆ newHisto

TH1* HistoData::newHisto
private

Definition at line 107 of file HistoData.h.

Referenced by clear(), and getNewHisto().

◆ passColor

int HistoData::passColor
private

Definition at line 131 of file HistoData.h.

◆ refHisto

TH1* HistoData::refHisto
private

Definition at line 108 of file HistoData.h.

Referenced by clear(), and getRefHisto().

◆ result

bool HistoData::result
private

Definition at line 127 of file HistoData.h.

Referenced by getResult().

◆ resultImage

std::string HistoData::resultImage
private

Definition at line 109 of file HistoData.h.

Referenced by getResultImage(), and setResultImage().

◆ resultTarget

std::string HistoData::resultTarget
private

Definition at line 110 of file HistoData.h.

Referenced by getResultTarget(), and setResultTarget().

◆ shadedFillColor

int HistoData::shadedFillColor
private

Definition at line 133 of file HistoData.h.

Referenced by getShadedFillColor(), getShadedLineColor(), and setShadedFillColor().

◆ shadedFillStyle

int HistoData::shadedFillStyle
private

Definition at line 133 of file HistoData.h.

Referenced by getShadedFillStyle(), and setShadedFillStyle().

◆ shadedLineColor

int HistoData::shadedLineColor
private

Definition at line 133 of file HistoData.h.

Referenced by getShadedLineColor(), and setShadedLineColor().

◆ solidFillColor

int HistoData::solidFillColor
private

Definition at line 132 of file HistoData.h.

Referenced by getSolidFillColor(), getSolidLineColor(), and setSolidFillColor().

◆ solidFillStyle

int HistoData::solidFillStyle
private

Definition at line 132 of file HistoData.h.

Referenced by getSolidFillStyle(), and setSolidFillStyle().

◆ solidLineColor

int HistoData::solidLineColor
private

Definition at line 132 of file HistoData.h.

Referenced by getSolidLineColor(), and setSolidLineColor().

◆ type

int HistoData::type
private

Definition at line 105 of file HistoData.h.

Referenced by getType().