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.

95  {
96  newHisto->Clear();
97  refHisto->Clear();
98  };

References newHisto, and refHisto.

Referenced by SummaryGenerator::clearMap().

◆ comparisonSuccess()

bool HistoData::comparisonSuccess ( ) const
inline

Definition at line 37 of file HistoData.h.

37 { return lowScore != 10 && !isEmpty; }

References isEmpty, and lowScore.

◆ 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.

20 { return bin; }

References bin.

◆ getChi2Score()

float HistoData::getChi2Score ( ) const
inline

Definition at line 39 of file HistoData.h.

39 { return chi2Score; }

References chi2Score.

Referenced by PlotCompareUtility::makePlots().

◆ getDoAllow1DRebinning()

bool HistoData::getDoAllow1DRebinning ( ) const
inline

Definition at line 28 of file HistoData.h.

28 { return doAllow1DRebinning; }

References doAllow1DRebinning.

Referenced by PlotCompareUtility::compare().

◆ getDoAllow2DRebinningX()

bool HistoData::getDoAllow2DRebinningX ( ) const
inline

Definition at line 29 of file HistoData.h.

29 { return doAllow2DRebinningX; }

References doAllow2DRebinningX.

Referenced by PlotCompareUtility::compare().

◆ getDoAllow2DRebinningY()

bool HistoData::getDoAllow2DRebinningY ( ) const
inline

Definition at line 30 of file HistoData.h.

30 { return doAllow2DRebinningY; }

References doAllow2DRebinningY.

Referenced by PlotCompareUtility::compare().

◆ getDoDrawErrorBars()

bool HistoData::getDoDrawErrorBars ( ) const
inline

Definition at line 27 of file HistoData.h.

27 { return doDrawErrorBars; }

References doDrawErrorBars.

Referenced by PlotCompareUtility::makePlots().

◆ getDoProjectionsX()

bool HistoData::getDoProjectionsX ( ) const
inline

Definition at line 31 of file HistoData.h.

31 { return doProjectionsX; }

References doProjectionsX.

Referenced by PlotCompareUtility::compare().

◆ getDoProjectionsY()

bool HistoData::getDoProjectionsY ( ) const
inline

Definition at line 32 of file HistoData.h.

32 { return doProjectionsY; }

References doProjectionsY.

Referenced by PlotCompareUtility::compare().

◆ getHighScore()

float HistoData::getHighScore ( ) const
inline

Definition at line 41 of file HistoData.h.

41 { return highScore; }

References highScore.

Referenced by PlotCompareUtility::compare().

◆ getIsEmpty()

bool HistoData::getIsEmpty ( ) const
inline

Definition at line 43 of file HistoData.h.

43 { return isEmpty; }

References isEmpty.

Referenced by PlotCompareUtility::makePlots().

◆ getKSScore()

float HistoData::getKSScore ( ) const
inline

Definition at line 38 of file HistoData.h.

38 { return ksScore; }

References ksScore.

Referenced by PlotCompareUtility::makePlots().

◆ getLineUseFillColor()

bool HistoData::getLineUseFillColor ( ) const
inline

Definition at line 46 of file HistoData.h.

46 { return lineUseFillColor; }

References lineUseFillColor.

◆ getLowScore()

float HistoData::getLowScore ( ) const
inline

Definition at line 40 of file HistoData.h.

40 { return lowScore; }

References lowScore.

◆ getMaxProjectionsX()

int HistoData::getMaxProjectionsX ( ) const
inline

Definition at line 33 of file HistoData.h.

33 { return maxProjectionsX; }

References maxProjectionsX.

Referenced by PlotCompareUtility::compare().

◆ getMaxProjectionsY()

int HistoData::getMaxProjectionsY ( ) const
inline

Definition at line 34 of file HistoData.h.

34 { return maxProjectionsY; }

References maxProjectionsY.

Referenced by PlotCompareUtility::compare().

◆ getName()

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

◆ getNewHisto()

TH1* HistoData::getNewHisto ( ) const
inline

Definition at line 21 of file HistoData.h.

21 { return newHisto; }

References newHisto.

Referenced by PlotCompareUtility::compare(), and PlotCompareUtility::makePlots().

◆ getRefHisto()

TH1* HistoData::getRefHisto ( ) const
inline

Definition at line 22 of file HistoData.h.

22 { return refHisto; }

References refHisto.

Referenced by PlotCompareUtility::compare(), PlotCompareUtility::makeHTML(), and PlotCompareUtility::makePlots().

◆ getResult()

bool HistoData::getResult ( ) const
inline

Definition at line 42 of file HistoData.h.

42 { return result; }

References result.

◆ getResultImage()

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

Definition at line 23 of file HistoData.h.

23 { return resultImage; }

References resultImage.

Referenced by PlotCompareUtility::makePlots().

◆ getResultTarget()

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

Definition at line 24 of file HistoData.h.

24 { return resultTarget; }

References resultTarget.

Referenced by PlotCompareUtility::makePlots().

◆ getShadedFillColor()

int HistoData::getShadedFillColor ( ) const
inline

Definition at line 51 of file HistoData.h.

51 { return shadedFillColor; }

References shadedFillColor.

Referenced by PlotCompareUtility::makePlots().

◆ getShadedFillStyle()

int HistoData::getShadedFillStyle ( ) const
inline

Definition at line 52 of file HistoData.h.

52 { return shadedFillStyle; }

References shadedFillStyle.

Referenced by PlotCompareUtility::makePlots().

◆ getShadedLineColor()

int HistoData::getShadedLineColor ( ) const
inline

Definition at line 50 of file HistoData.h.

References lineUseFillColor, shadedFillColor, and shadedLineColor.

Referenced by PlotCompareUtility::makePlots().

◆ getSolidFillColor()

int HistoData::getSolidFillColor ( ) const
inline

Definition at line 48 of file HistoData.h.

48 { return solidFillColor; }

References solidFillColor.

◆ getSolidFillStyle()

int HistoData::getSolidFillStyle ( ) const
inline

Definition at line 49 of file HistoData.h.

49 { return solidFillStyle; }

References solidFillStyle.

◆ getSolidLineColor()

int HistoData::getSolidLineColor ( ) const
inline

Definition at line 47 of file HistoData.h.

References lineUseFillColor, solidFillColor, and solidLineColor.

◆ getType()

int HistoData::getType ( void  ) const
inline

Definition at line 19 of file HistoData.h.

19 { return type; }

References type.

◆ initialize()

void HistoData::initialize ( )
private

◆ setBin()

void HistoData::setBin ( int  Bin)
inline

Definition at line 58 of file HistoData.h.

58 { bin = Bin; }

References bin.

◆ setChi2Score()

void HistoData::setChi2Score ( float  Score)
inline

Definition at line 78 of file HistoData.h.

78 { chi2Score = Score; }

References chi2Score.

Referenced by PlotCompareUtility::compare().

◆ setDoAllow1DRebinning()

void HistoData::setDoAllow1DRebinning ( bool  Toggle)
inline

Definition at line 64 of file HistoData.h.

64 { doAllow1DRebinning = Toggle; }

References doAllow1DRebinning.

◆ setDoAllow2DRebinningX()

void HistoData::setDoAllow2DRebinningX ( bool  Toggle)
inline

Definition at line 65 of file HistoData.h.

65 { doAllow2DRebinningX = Toggle; }

References doAllow2DRebinningX.

◆ setDoAllow2DRebinningY()

void HistoData::setDoAllow2DRebinningY ( bool  Toggle)
inline

Definition at line 66 of file HistoData.h.

66 { doAllow2DRebinningY = Toggle; }

References doAllow2DRebinningY.

◆ setDoDrawErrorBars()

void HistoData::setDoDrawErrorBars ( bool  Toggle)
inline

Definition at line 63 of file HistoData.h.

63 { doDrawErrorBars = Toggle; }

References doDrawErrorBars.

◆ setDoProjectionsX()

void HistoData::setDoProjectionsX ( bool  Toggle)
inline

Definition at line 67 of file HistoData.h.

67 { doProjectionsX = Toggle; }

References doProjectionsX.

◆ setDoProjectionsY()

void HistoData::setDoProjectionsY ( bool  Toggle)
inline

Definition at line 68 of file HistoData.h.

68 { doProjectionsY = Toggle; }

References doProjectionsY.

◆ setHighScore()

void HistoData::setHighScore ( float  Score)
inline

Definition at line 80 of file HistoData.h.

80 { highScore = Score; }

References highScore.

Referenced by PlotCompareUtility::compare().

◆ setIsEmpty()

void HistoData::setIsEmpty ( bool  Toggle)
inline

Definition at line 82 of file HistoData.h.

82 { isEmpty = Toggle; }

References isEmpty.

Referenced by PlotCompareUtility::compare(), and PlotCompareUtility::makePlots().

◆ setKSScore()

void HistoData::setKSScore ( float  Score)
inline

Definition at line 77 of file HistoData.h.

77 { ksScore = Score; }

References ksScore.

Referenced by PlotCompareUtility::compare().

◆ setLineUseFillColor()

void HistoData::setLineUseFillColor ( bool  Toggle)
inline

Definition at line 85 of file HistoData.h.

85 { lineUseFillColor = Toggle; }

References lineUseFillColor.

◆ setLowScore()

void HistoData::setLowScore ( float  Score)
inline

Definition at line 79 of file HistoData.h.

79 { lowScore = Score; }

References lowScore.

Referenced by PlotCompareUtility::compare().

◆ setMaxProjections()

void HistoData::setMaxProjections ( int  Num)
inline

Definition at line 69 of file HistoData.h.

69  {
70  maxProjectionsX = Num;
71  maxProjectionsY = Num;
72  }

References maxProjectionsX, and maxProjectionsY.

◆ setMaxProjectionsX()

void HistoData::setMaxProjectionsX ( bool  Num)
inline

Definition at line 73 of file HistoData.h.

73 { maxProjectionsX = Num; }

References maxProjectionsX.

◆ setMaxProjectionsY()

void HistoData::setMaxProjectionsY ( bool  Num)
inline

Definition at line 74 of file HistoData.h.

74 { maxProjectionsY = Num; }

References maxProjectionsY.

◆ setName()

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

Definition at line 55 of file HistoData.h.

55 { name = Name; }

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.

59 { resultImage = Image; }

References resultImage.

Referenced by PlotCompareUtility::makePlots().

◆ setResultTarget()

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

Definition at line 60 of file HistoData.h.

60 { resultTarget = Target; }

References resultTarget, and Target.

Referenced by PlotCompareUtility::makeHTML(), and PlotCompareUtility::makePlots().

◆ setShadedFillColor()

void HistoData::setShadedFillColor ( int  Color)
inline

Definition at line 90 of file HistoData.h.

90 { shadedFillColor = Color; }

References shadedFillColor.

Referenced by PlotCompareUtility::makePlots().

◆ setShadedFillStyle()

void HistoData::setShadedFillStyle ( int  Style)
inline

Definition at line 91 of file HistoData.h.

References shadedFillStyle, and hlx_dqm_sourceclient_cfi::Style.

Referenced by PlotCompareUtility::makePlots().

◆ setShadedLineColor()

void HistoData::setShadedLineColor ( int  Color)
inline

Definition at line 89 of file HistoData.h.

89 { shadedLineColor = Color; }

References shadedLineColor.

Referenced by PlotCompareUtility::makePlots().

◆ setSolidFillColor()

void HistoData::setSolidFillColor ( int  Color)
inline

Definition at line 87 of file HistoData.h.

87 { solidFillColor = Color; }

References solidFillColor.

◆ setSolidFillStyle()

void HistoData::setSolidFillStyle ( int  Style)
inline

Definition at line 88 of file HistoData.h.

88 { solidFillStyle = Style; }

References solidFillStyle, and hlx_dqm_sourceclient_cfi::Style.

◆ setSolidLineColor()

void HistoData::setSolidLineColor ( int  Color)
inline

Definition at line 86 of file HistoData.h.

86 { solidLineColor = Color; }

References solidLineColor.

◆ setType()

void HistoData::setType ( int  PlotType)
inline

Definition at line 57 of file HistoData.h.

57 { type = PlotType; }

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().

HistoData::doProjectionsX
bool doProjectionsX
Definition: HistoData.h:119
Target
TFile * Target
Definition: compareAlignments.cc:26
HistoData::resultImage
std::string resultImage
Definition: HistoData.h:109
SiStripClientConfig_Tier0_cff.Name
Name
Definition: SiStripClientConfig_Tier0_cff.py:13
HistoData::name
std::string name
Definition: HistoData.h:103
HistoData::bin
int bin
Definition: HistoData.h:106
HistoData::doDrawErrorBars
bool doDrawErrorBars
Definition: HistoData.h:112
HistoData::chi2Score
float chi2Score
Definition: HistoData.h:124
HistoData::highScore
float highScore
Definition: HistoData.h:126
HistoData::shadedFillStyle
int shadedFillStyle
Definition: HistoData.h:133
HistoData::maxProjectionsX
int maxProjectionsX
Definition: HistoData.h:117
HistoData::isEmpty
bool isEmpty
Definition: HistoData.h:128
HistoData::maxProjectionsY
int maxProjectionsY
Definition: HistoData.h:118
HistoData::doProjectionsY
bool doProjectionsY
Definition: HistoData.h:120
HistoData::solidFillStyle
int solidFillStyle
Definition: HistoData.h:132
HistoData::type
int type
Definition: HistoData.h:105
HistoData::solidLineColor
int solidLineColor
Definition: HistoData.h:132
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
HistoData::ksScore
float ksScore
Definition: HistoData.h:123
HistoData::refHisto
TH1 * refHisto
Definition: HistoData.h:108
HistoData::lowScore
float lowScore
Definition: HistoData.h:125
HistoData::lineUseFillColor
bool lineUseFillColor
Definition: HistoData.h:134
hlx_dqm_sourceclient_cfi.Style
Style
Definition: hlx_dqm_sourceclient_cfi.py:9
HistoData::solidFillColor
int solidFillColor
Definition: HistoData.h:132
HistoData::doAllow2DRebinningX
bool doAllow2DRebinningX
Definition: HistoData.h:115
HistoData::doAllow2DRebinningY
bool doAllow2DRebinningY
Definition: HistoData.h:116
PlotType
PlotType
Definition: trackSplitPlot.h:33
HistoData::resultTarget
std::string resultTarget
Definition: HistoData.h:110
HistoData::newHisto
TH1 * newHisto
Definition: HistoData.h:107
HistoData::doAllow1DRebinning
bool doAllow1DRebinning
Definition: HistoData.h:111
HistoData::result
bool result
Definition: HistoData.h:127
HistoData::shadedFillColor
int shadedFillColor
Definition: HistoData.h:133
HistoData::shadedLineColor
int shadedLineColor
Definition: HistoData.h:133