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::HistoData ( std::string  Name,
int  PlotType,
int  Bin,
std::string  NewPath,
TFile *  NewFile,
std::string  RefPath,
TFile *  RefFile 
)
HistoData::HistoData ( std::string  Name,
int  PlotType,
int  Bin,
TH1 *  NewHisto,
TH1 *  RefHisto 
)
virtual HistoData::~HistoData ( )
inlinevirtual

Definition at line 14 of file HistoData.h.

14 {}

Member Function Documentation

void HistoData::clear ( void  )
inline

Definition at line 95 of file HistoData.h.

References dump(), 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
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
void HistoData::drawResult ( TH1 *  Summary,
bool  Vertical = true,
bool  SetLabels = false 
)

Referenced by setShadedFillStyle().

void HistoData::dump ( )
inline

Referenced by clear().

int HistoData::getBin ( ) const
inline

Definition at line 20 of file HistoData.h.

References bin.

20 { return bin; }
float HistoData::getChi2Score ( ) const
inline

Definition at line 39 of file HistoData.h.

References chi2Score.

39 { return chi2Score; }
float chi2Score
Definition: HistoData.h:124
bool HistoData::getDoAllow1DRebinning ( ) const
inline

Definition at line 28 of file HistoData.h.

References doAllow1DRebinning.

28 { return doAllow1DRebinning; }
bool doAllow1DRebinning
Definition: HistoData.h:111
bool HistoData::getDoAllow2DRebinningX ( ) const
inline

Definition at line 29 of file HistoData.h.

References doAllow2DRebinningX.

29 { return doAllow2DRebinningX; }
bool doAllow2DRebinningX
Definition: HistoData.h:115
bool HistoData::getDoAllow2DRebinningY ( ) const
inline

Definition at line 30 of file HistoData.h.

References doAllow2DRebinningY.

30 { return doAllow2DRebinningY; }
bool doAllow2DRebinningY
Definition: HistoData.h:116
bool HistoData::getDoDrawErrorBars ( ) const
inline

Definition at line 27 of file HistoData.h.

References doDrawErrorBars.

27 { return doDrawErrorBars; }
bool doDrawErrorBars
Definition: HistoData.h:112
bool HistoData::getDoProjectionsX ( ) const
inline

Definition at line 31 of file HistoData.h.

References doProjectionsX.

31 { return doProjectionsX; }
bool doProjectionsX
Definition: HistoData.h:119
bool HistoData::getDoProjectionsY ( ) const
inline

Definition at line 32 of file HistoData.h.

References doProjectionsY.

32 { return doProjectionsY; }
bool doProjectionsY
Definition: HistoData.h:120
float HistoData::getHighScore ( ) const
inline

Definition at line 41 of file HistoData.h.

References highScore.

Referenced by PlotCompareUtility::compare().

41 { return highScore; }
float highScore
Definition: HistoData.h:126
bool HistoData::getIsEmpty ( ) const
inline

Definition at line 43 of file HistoData.h.

References isEmpty.

43 { return isEmpty; }
bool isEmpty
Definition: HistoData.h:128
float HistoData::getKSScore ( ) const
inline

Definition at line 38 of file HistoData.h.

References ksScore.

38 { return ksScore; }
float ksScore
Definition: HistoData.h:123
bool HistoData::getLineUseFillColor ( ) const
inline

Definition at line 46 of file HistoData.h.

References lineUseFillColor.

46 { return lineUseFillColor; }
bool lineUseFillColor
Definition: HistoData.h:134
float HistoData::getLowScore ( ) const
inline

Definition at line 40 of file HistoData.h.

References lowScore.

Referenced by PlotCompareUtility::compare().

40 { return lowScore; }
float lowScore
Definition: HistoData.h:125
int HistoData::getMaxProjectionsX ( ) const
inline

Definition at line 33 of file HistoData.h.

References maxProjectionsX.

33 { return maxProjectionsX; }
int maxProjectionsX
Definition: HistoData.h:117
int HistoData::getMaxProjectionsY ( ) const
inline

Definition at line 34 of file HistoData.h.

References maxProjectionsY.

34 { return maxProjectionsY; }
int maxProjectionsY
Definition: HistoData.h:118
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
TH1* HistoData::getNewHisto ( ) const
inline

Definition at line 21 of file HistoData.h.

References newHisto.

21 { return newHisto; }
TH1 * newHisto
Definition: HistoData.h:107
TH1* HistoData::getRefHisto ( ) const
inline

Definition at line 22 of file HistoData.h.

References refHisto.

22 { return refHisto; }
TH1 * refHisto
Definition: HistoData.h:108
bool HistoData::getResult ( ) const
inline

Definition at line 42 of file HistoData.h.

References result.

42 { return result; }
bool result
Definition: HistoData.h:127
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
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
int HistoData::getShadedFillColor ( ) const
inline

Definition at line 51 of file HistoData.h.

References shadedFillColor.

51 { return shadedFillColor; }
int shadedFillColor
Definition: HistoData.h:133
int HistoData::getShadedFillStyle ( ) const
inline

Definition at line 52 of file HistoData.h.

References shadedFillStyle.

52 { return shadedFillStyle; }
int shadedFillStyle
Definition: HistoData.h:133
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
int HistoData::getSolidFillColor ( ) const
inline

Definition at line 48 of file HistoData.h.

References solidFillColor.

48 { return solidFillColor; }
int solidFillColor
Definition: HistoData.h:132
int HistoData::getSolidFillStyle ( ) const
inline

Definition at line 49 of file HistoData.h.

References solidFillStyle.

49 { return solidFillStyle; }
int solidFillStyle
Definition: HistoData.h:132
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
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
void HistoData::initialize ( )
private
void HistoData::setBin ( int  Bin)
inline

Definition at line 58 of file HistoData.h.

References bin.

58 { bin = Bin; }
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
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
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
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
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
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
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
void HistoData::setHighScore ( float  Score)
inline

Definition at line 80 of file HistoData.h.

References highScore, and setResult().

80 { highScore = Score; }
float highScore
Definition: HistoData.h:126
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
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
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
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
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
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
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
void HistoData::setName ( std::string  Name)
inline

Definition at line 55 of file HistoData.h.

References globaldigis_analyze_cfi::Name, and name.

void HistoData::setResult ( bool  Result)

Referenced by setHighScore().

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
void HistoData::setResultTarget ( std::string  Target)
inline

Definition at line 60 of file HistoData.h.

References resultTarget, and Target.

60 { resultTarget = Target; }
TFile * Target
std::string resultTarget
Definition: HistoData.h:110
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
void HistoData::setShadedFillStyle ( int  Style)
inline

Definition at line 91 of file HistoData.h.

References drawResult(), shadedFillStyle, and ValidateTausOnQCD_cff::Summary.

Referenced by PlotCompareUtility::makePlots().

int shadedFillStyle
Definition: HistoData.h:133
Definition: Style.py:1
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
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
void HistoData::setSolidFillStyle ( int  Style)
inline

Definition at line 88 of file HistoData.h.

References solidFillStyle.

88 { solidFillStyle = Style; }
int solidFillStyle
Definition: HistoData.h:132
Definition: Style.py:1
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
void HistoData::setType ( int  PlotType)
inline

Definition at line 57 of file HistoData.h.

57 { type = PlotType; }
type
Definition: HCALResponse.h:21
PlotType

Member Data Documentation

int HistoData::bin
private

Definition at line 106 of file HistoData.h.

Referenced by getBin(), and setBin().

float HistoData::chi2Score
private

Definition at line 124 of file HistoData.h.

Referenced by getChi2Score(), and setChi2Score().

bool HistoData::doAllow1DRebinning
private

Definition at line 111 of file HistoData.h.

Referenced by getDoAllow1DRebinning(), and setDoAllow1DRebinning().

bool HistoData::doAllow2DRebinningX
private

Definition at line 115 of file HistoData.h.

Referenced by getDoAllow2DRebinningX(), and setDoAllow2DRebinningX().

bool HistoData::doAllow2DRebinningY
private

Definition at line 116 of file HistoData.h.

Referenced by getDoAllow2DRebinningY(), and setDoAllow2DRebinningY().

bool HistoData::doDrawErrorBars
private

Definition at line 112 of file HistoData.h.

Referenced by getDoDrawErrorBars(), and setDoDrawErrorBars().

bool HistoData::doProjectionsX
private

Definition at line 119 of file HistoData.h.

Referenced by getDoProjectionsX(), and setDoProjectionsX().

bool HistoData::doProjectionsY
private

Definition at line 120 of file HistoData.h.

Referenced by getDoProjectionsY(), and setDoProjectionsY().

int HistoData::errorColor
private

Definition at line 131 of file HistoData.h.

int HistoData::failColor
private

Definition at line 131 of file HistoData.h.

float HistoData::highScore
private

Definition at line 126 of file HistoData.h.

Referenced by getHighScore(), and setHighScore().

bool HistoData::isEmpty
private

Definition at line 128 of file HistoData.h.

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

float HistoData::ksScore
private

Definition at line 123 of file HistoData.h.

Referenced by getKSScore(), and setKSScore().

bool HistoData::lineUseFillColor
private
float HistoData::lowScore
private

Definition at line 125 of file HistoData.h.

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

int HistoData::maxProjectionsX
private

Definition at line 117 of file HistoData.h.

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

int HistoData::maxProjectionsY
private

Definition at line 118 of file HistoData.h.

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

std::string HistoData::name
private
TH1* HistoData::newHisto
private

Definition at line 107 of file HistoData.h.

Referenced by clear(), and getNewHisto().

int HistoData::passColor
private

Definition at line 131 of file HistoData.h.

TH1* HistoData::refHisto
private

Definition at line 108 of file HistoData.h.

Referenced by clear(), and getRefHisto().

bool HistoData::result
private

Definition at line 127 of file HistoData.h.

Referenced by getResult().

std::string HistoData::resultImage
private

Definition at line 109 of file HistoData.h.

Referenced by getResultImage(), and setResultImage().

std::string HistoData::resultTarget
private

Definition at line 110 of file HistoData.h.

Referenced by getResultTarget(), and setResultTarget().

int HistoData::shadedFillColor
private

Definition at line 133 of file HistoData.h.

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

int HistoData::shadedFillStyle
private

Definition at line 133 of file HistoData.h.

Referenced by getShadedFillStyle(), and setShadedFillStyle().

int HistoData::shadedLineColor
private

Definition at line 133 of file HistoData.h.

Referenced by getShadedLineColor(), and setShadedLineColor().

int HistoData::solidFillColor
private

Definition at line 132 of file HistoData.h.

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

int HistoData::solidFillStyle
private

Definition at line 132 of file HistoData.h.

Referenced by getSolidFillStyle(), and setSolidFillStyle().

int HistoData::solidLineColor
private

Definition at line 132 of file HistoData.h.

Referenced by getSolidLineColor(), and setSolidLineColor().

int HistoData::type
private