CMS 3D CMS Logo

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

#include <HistoData.h>

Public Member Functions

void Clear ()
 
void clear ()
 
bool comparisonSuccess () const
 
void drawResult (TH1 *Summary, bool Vertical=true, bool SetLabels=false)
 
void Dump ()
 
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 ()
 
std::string getName () const
 
TH1 * getNewHisto () const
 
int GetNumber ()
 
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
 
unsigned short GetType ()
 
int getType () const
 
std::string GetValueX ()
 
 HistoData (std::string Name, int Number)
 
 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 (unsigned short Type)
 
void setType (int PlotType)
 
void SetValueX (std::string Value)
 
void SetValueY (std::string Value)
 
virtual ~HistoData ()
 
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 number
 
int passColor
 
TH1 * refHisto
 
bool result
 
std::string resultImage
 
std::string resultTarget
 
int shadedFillColor
 
int shadedFillStyle
 
int shadedLineColor
 
int solidFillColor
 
int solidFillStyle
 
int solidLineColor
 
unsigned short type
 
int type
 
std::string x_value
 
std::string y_value
 

Detailed Description

Definition at line 6 of file HistoData.h.

Constructor & Destructor Documentation

HistoData::HistoData ( std::string  Name,
int  Number 
)
virtual HistoData::~HistoData ( )
virtual
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 15 of file HistoData.h.

15 {}

Member Function Documentation

void HistoData::Clear ( )
inline

Definition at line 32 of file HistoData.h.

32 { memset(this,0,sizeof(struct HistoData)); }
void HistoData::clear ( void  )
inline

Definition at line 93 of file HistoData.h.

Referenced by SummaryGenerator::clearMap().

93 { memset(this,0,sizeof(*this)); }
bool HistoData::comparisonSuccess ( ) const
inline

Definition at line 38 of file HistoData.h.

References isEmpty, and lowScore.

38 { return lowScore != 10 && !isEmpty; }
float lowScore
Definition: HistoData.h:121
bool isEmpty
Definition: HistoData.h:124
void HistoData::drawResult ( TH1 *  Summary,
bool  Vertical = true,
bool  SetLabels = false 
)
void HistoData::Dump ( )
void HistoData::dump ( )
inline
int HistoData::getBin ( void  ) const
inline

Definition at line 21 of file HistoData.h.

References bin.

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

Definition at line 40 of file HistoData.h.

References chi2Score.

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

Definition at line 29 of file HistoData.h.

References doAllow1DRebinning.

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

Definition at line 30 of file HistoData.h.

References doAllow2DRebinningX.

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

Definition at line 31 of file HistoData.h.

References doAllow2DRebinningY.

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

Definition at line 28 of file HistoData.h.

References doDrawErrorBars.

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

Definition at line 32 of file HistoData.h.

References doProjectionsX.

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

Definition at line 33 of file HistoData.h.

References doProjectionsY.

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

Definition at line 42 of file HistoData.h.

References highScore.

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

Definition at line 44 of file HistoData.h.

References isEmpty.

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

Definition at line 39 of file HistoData.h.

References ksScore.

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

Definition at line 47 of file HistoData.h.

References lineUseFillColor.

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

Definition at line 41 of file HistoData.h.

References lowScore.

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

Definition at line 34 of file HistoData.h.

References maxProjectionsX.

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

Definition at line 35 of file HistoData.h.

References maxProjectionsY.

35 { return maxProjectionsY; }
int maxProjectionsY
Definition: HistoData.h:114
std::string HistoData::GetName ( )
inline

Definition at line 13 of file HistoData.h.

References name.

13 { return name; }
std::string name
Definition: HistoData.h:37
std::string HistoData::getName ( void  ) const
inline

Definition at line 18 of file HistoData.h.

References name.

18 { return name; }
std::string name
Definition: HistoData.h:37
TH1* HistoData::getNewHisto ( ) const
inline

Definition at line 22 of file HistoData.h.

References newHisto.

22 { return newHisto; }
TH1 * newHisto
Definition: HistoData.h:103
int HistoData::GetNumber ( )
inline

Definition at line 16 of file HistoData.h.

References number.

16 { return number; }
int number
Definition: HistoData.h:39
TH1* HistoData::getRefHisto ( ) const
inline

Definition at line 23 of file HistoData.h.

References refHisto.

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

Definition at line 43 of file HistoData.h.

References result.

43 { return result; }
bool result
Definition: HistoData.h:123
std::string HistoData::getResultImage ( ) const
inline

Definition at line 24 of file HistoData.h.

References resultImage.

24 { return resultImage; }
std::string resultImage
Definition: HistoData.h:105
std::string HistoData::getResultTarget ( ) const
inline

Definition at line 25 of file HistoData.h.

References resultTarget.

25 { return resultTarget; }
std::string resultTarget
Definition: HistoData.h:106
int HistoData::getShadedFillColor ( ) const
inline

Definition at line 52 of file HistoData.h.

References shadedFillColor.

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

Definition at line 53 of file HistoData.h.

References shadedFillStyle.

53 { return shadedFillStyle; }
int shadedFillStyle
Definition: HistoData.h:129
int HistoData::getShadedLineColor ( ) const
inline

Definition at line 51 of file HistoData.h.

References lineUseFillColor, shadedFillColor, and shadedLineColor.

bool lineUseFillColor
Definition: HistoData.h:130
int shadedLineColor
Definition: HistoData.h:129
int shadedFillColor
Definition: HistoData.h:129
int HistoData::getSolidFillColor ( ) const
inline

Definition at line 49 of file HistoData.h.

References solidFillColor.

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

Definition at line 50 of file HistoData.h.

References solidFillStyle.

50 { return solidFillStyle; }
int solidFillStyle
Definition: HistoData.h:128
int HistoData::getSolidLineColor ( ) const
inline

Definition at line 48 of file HistoData.h.

References lineUseFillColor, solidFillColor, and solidLineColor.

bool lineUseFillColor
Definition: HistoData.h:130
int solidLineColor
Definition: HistoData.h:128
int solidFillColor
Definition: HistoData.h:128
unsigned short HistoData::GetType ( )
inline

Definition at line 15 of file HistoData.h.

References type.

15 { return type; }
unsigned short type
Definition: HistoData.h:40
int HistoData::getType ( void  ) const
inline

Definition at line 20 of file HistoData.h.

References type.

20 { return type; }
unsigned short type
Definition: HistoData.h:40
std::string HistoData::GetValueX ( )
inline

Definition at line 14 of file HistoData.h.

References x_value.

14 { return x_value; }
std::string x_value
Definition: HistoData.h:38
void HistoData::initialize ( )
private
void HistoData::setBin ( int  Bin)
inline

Definition at line 59 of file HistoData.h.

References bin.

59 { bin = Bin; }
void HistoData::setChi2Score ( float  Score)
inline

Definition at line 76 of file HistoData.h.

References chi2Score.

76 { chi2Score = Score; }
float chi2Score
Definition: HistoData.h:120
void HistoData::setDoAllow1DRebinning ( bool  Toggle)
inline

Definition at line 65 of file HistoData.h.

References doAllow1DRebinning.

65 { doAllow1DRebinning = Toggle; }
bool doAllow1DRebinning
Definition: HistoData.h:107
void HistoData::setDoAllow2DRebinningX ( bool  Toggle)
inline

Definition at line 66 of file HistoData.h.

References doAllow2DRebinningX.

66 { doAllow2DRebinningX = Toggle; }
bool doAllow2DRebinningX
Definition: HistoData.h:111
void HistoData::setDoAllow2DRebinningY ( bool  Toggle)
inline

Definition at line 67 of file HistoData.h.

References doAllow2DRebinningY.

67 { doAllow2DRebinningY = Toggle; }
bool doAllow2DRebinningY
Definition: HistoData.h:112
void HistoData::setDoDrawErrorBars ( bool  Toggle)
inline

Definition at line 64 of file HistoData.h.

References doDrawErrorBars.

64 { doDrawErrorBars = Toggle; }
bool doDrawErrorBars
Definition: HistoData.h:108
void HistoData::setDoProjectionsX ( bool  Toggle)
inline

Definition at line 68 of file HistoData.h.

References doProjectionsX.

68 { doProjectionsX = Toggle; }
bool doProjectionsX
Definition: HistoData.h:115
void HistoData::setDoProjectionsY ( bool  Toggle)
inline

Definition at line 69 of file HistoData.h.

References doProjectionsY.

69 { doProjectionsY = Toggle; }
bool doProjectionsY
Definition: HistoData.h:116
void HistoData::setHighScore ( float  Score)
inline

Definition at line 78 of file HistoData.h.

References highScore.

78 { highScore = Score; }
float highScore
Definition: HistoData.h:122
void HistoData::setIsEmpty ( bool  Toggle)
inline

Definition at line 80 of file HistoData.h.

References isEmpty.

80 { isEmpty = Toggle; }
bool isEmpty
Definition: HistoData.h:124
void HistoData::setKSScore ( float  Score)
inline

Definition at line 75 of file HistoData.h.

References ksScore.

75 { ksScore = Score; }
float ksScore
Definition: HistoData.h:119
void HistoData::setLineUseFillColor ( bool  Toggle)
inline

Definition at line 83 of file HistoData.h.

References lineUseFillColor.

83 { lineUseFillColor = Toggle; }
bool lineUseFillColor
Definition: HistoData.h:130
void HistoData::setLowScore ( float  Score)
inline

Definition at line 77 of file HistoData.h.

References lowScore.

77 { lowScore = Score; }
float lowScore
Definition: HistoData.h:121
void HistoData::setMaxProjections ( int  Num)
inline

Definition at line 70 of file HistoData.h.

References maxProjectionsX, and maxProjectionsY.

70 { maxProjectionsX = Num; maxProjectionsY = Num; }
int maxProjectionsY
Definition: HistoData.h:114
int maxProjectionsX
Definition: HistoData.h:113
void HistoData::setMaxProjectionsX ( bool  Num)
inline

Definition at line 71 of file HistoData.h.

References maxProjectionsX.

71 { maxProjectionsX = Num; }
int maxProjectionsX
Definition: HistoData.h:113
void HistoData::setMaxProjectionsY ( bool  Num)
inline

Definition at line 72 of file HistoData.h.

References maxProjectionsY.

72 { maxProjectionsY = Num; }
int maxProjectionsY
Definition: HistoData.h:114
void HistoData::setName ( std::string  Name)
inline

Definition at line 56 of file HistoData.h.

References name.

56 { name = Name; }
std::string name
Definition: HistoData.h:37
void HistoData::setResult ( bool  Result)
void HistoData::setResultImage ( std::string  Image)
inline

Definition at line 60 of file HistoData.h.

References resultImage.

60 { resultImage = Image; }
std::string resultImage
Definition: HistoData.h:105
void HistoData::setResultTarget ( std::string  Target)
inline

Definition at line 61 of file HistoData.h.

References resultTarget, and Target.

61 { resultTarget = Target; }
TFile * Target
std::string resultTarget
Definition: HistoData.h:106
void HistoData::setShadedFillColor ( int  Color)
inline

Definition at line 88 of file HistoData.h.

References shadedFillColor.

88 { shadedFillColor = Color; }
int shadedFillColor
Definition: HistoData.h:129
void HistoData::setShadedFillStyle ( int  Style)
inline

Definition at line 89 of file HistoData.h.

References shadedFillStyle.

int shadedFillStyle
Definition: HistoData.h:129
Definition: NicePlot.h:7
void HistoData::setShadedLineColor ( int  Color)
inline

Definition at line 87 of file HistoData.h.

References shadedLineColor.

87 { shadedLineColor = Color; }
int shadedLineColor
Definition: HistoData.h:129
void HistoData::setSolidFillColor ( int  Color)
inline

Definition at line 85 of file HistoData.h.

References solidFillColor.

85 { solidFillColor = Color; }
int solidFillColor
Definition: HistoData.h:128
void HistoData::setSolidFillStyle ( int  Style)
inline

Definition at line 86 of file HistoData.h.

References solidFillStyle.

86 { solidFillStyle = Style; }
int solidFillStyle
Definition: HistoData.h:128
Definition: NicePlot.h:7
void HistoData::setSolidLineColor ( int  Color)
inline

Definition at line 84 of file HistoData.h.

References solidLineColor.

84 { solidLineColor = Color; }
int solidLineColor
Definition: HistoData.h:128
void HistoData::SetType ( unsigned short  Type)
inline

Definition at line 25 of file HistoData.h.

void HistoData::setType ( int  PlotType)
inline

Definition at line 58 of file HistoData.h.

58 { type = PlotType; }
type
Definition: HCALResponse.h:21
PlotType
Definition: PlotTypes.h:4
void HistoData::SetValueX ( std::string  Value)
inline

Definition at line 26 of file HistoData.h.

References x_value.

26 { x_value = Value; }
reco::JetExtendedAssociation::JetExtendedData Value
std::string x_value
Definition: HistoData.h:38
void HistoData::SetValueY ( std::string  Value)
inline

Definition at line 28 of file HistoData.h.

References y_value.

28 { y_value = Value; }
std::string y_value
Definition: HistoData.h:38
reco::JetExtendedAssociation::JetExtendedData Value

Member Data Documentation

int HistoData::bin
private

Definition at line 102 of file HistoData.h.

Referenced by getBin(), and setBin().

float HistoData::chi2Score
private

Definition at line 120 of file HistoData.h.

Referenced by getChi2Score(), and setChi2Score().

bool HistoData::doAllow1DRebinning
private

Definition at line 107 of file HistoData.h.

Referenced by getDoAllow1DRebinning(), and setDoAllow1DRebinning().

bool HistoData::doAllow2DRebinningX
private

Definition at line 111 of file HistoData.h.

Referenced by getDoAllow2DRebinningX(), and setDoAllow2DRebinningX().

bool HistoData::doAllow2DRebinningY
private

Definition at line 112 of file HistoData.h.

Referenced by getDoAllow2DRebinningY(), and setDoAllow2DRebinningY().

bool HistoData::doDrawErrorBars
private

Definition at line 108 of file HistoData.h.

Referenced by getDoDrawErrorBars(), and setDoDrawErrorBars().

bool HistoData::doProjectionsX
private

Definition at line 115 of file HistoData.h.

Referenced by getDoProjectionsX(), and setDoProjectionsX().

bool HistoData::doProjectionsY
private

Definition at line 116 of file HistoData.h.

Referenced by getDoProjectionsY(), and setDoProjectionsY().

int HistoData::errorColor
private

Definition at line 127 of file HistoData.h.

int HistoData::failColor
private

Definition at line 127 of file HistoData.h.

float HistoData::highScore
private

Definition at line 122 of file HistoData.h.

Referenced by getHighScore(), and setHighScore().

bool HistoData::isEmpty
private

Definition at line 124 of file HistoData.h.

Referenced by comparisonSuccess(), getIsEmpty(), and setIsEmpty().

float HistoData::ksScore
private

Definition at line 119 of file HistoData.h.

Referenced by getKSScore(), and setKSScore().

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

Definition at line 121 of file HistoData.h.

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

int HistoData::maxProjectionsX
private

Definition at line 113 of file HistoData.h.

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

int HistoData::maxProjectionsY
private

Definition at line 114 of file HistoData.h.

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

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

Definition at line 103 of file HistoData.h.

Referenced by getNewHisto().

int HistoData::number
private

Definition at line 39 of file HistoData.h.

Referenced by GetNumber().

int HistoData::passColor
private

Definition at line 127 of file HistoData.h.

TH1* HistoData::refHisto
private

Definition at line 104 of file HistoData.h.

Referenced by getRefHisto().

bool HistoData::result
private

Definition at line 123 of file HistoData.h.

Referenced by getResult().

std::string HistoData::resultImage
private

Definition at line 105 of file HistoData.h.

Referenced by getResultImage(), and setResultImage().

std::string HistoData::resultTarget
private

Definition at line 106 of file HistoData.h.

Referenced by getResultTarget(), and setResultTarget().

int HistoData::shadedFillColor
private

Definition at line 129 of file HistoData.h.

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

int HistoData::shadedFillStyle
private

Definition at line 129 of file HistoData.h.

Referenced by getShadedFillStyle(), and setShadedFillStyle().

int HistoData::shadedLineColor
private

Definition at line 129 of file HistoData.h.

Referenced by getShadedLineColor(), and setShadedLineColor().

int HistoData::solidFillColor
private

Definition at line 128 of file HistoData.h.

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

int HistoData::solidFillStyle
private

Definition at line 128 of file HistoData.h.

Referenced by getSolidFillStyle(), and setSolidFillStyle().

int HistoData::solidLineColor
private

Definition at line 128 of file HistoData.h.

Referenced by getSolidLineColor(), and setSolidLineColor().

unsigned short HistoData::type
private
int HistoData::type
private
std::string HistoData::x_value
private

Definition at line 38 of file HistoData.h.

Referenced by GetValueX(), and SetValueX().

std::string HistoData::y_value
private

Definition at line 38 of file HistoData.h.

Referenced by SetValueY().