CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

HistoData Class Reference

#include <HistoData.h>

List of all members.

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
int getType () const
unsigned short GetType ()
std::string GetValueX ()
 HistoData (std::string Name, int PlotType, int Bin, std::string NewPath, TFile *NewFile, std::string RefPath, TFile *RefFile)
 HistoData (std::string Name, int Number)
 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
int type
unsigned short 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 ( ) [inline, virtual]

Definition at line 15 of file HistoData.h.

{}

Member Function Documentation

void HistoData::Clear ( ) [inline]

Definition at line 32 of file HistoData.h.

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

Definition at line 93 of file HistoData.h.

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

Definition at line 38 of file HistoData.h.

References isEmpty, and lowScore.

{ return lowScore != 10 && !isEmpty; }
void HistoData::drawResult ( TH1 *  Summary,
bool  Vertical = true,
bool  SetLabels = false 
)
void PFDisplacedVertexSeed::Dump ( void  )

Definition at line 32 of file PFBlockElementBrem.cc.

References DeDxDiscriminatorTools::charge(), reco::PFBlockElementBrem::deltaP_, reco::PFBlockElementBrem::GsftrackRefPF_, reco::PFBlockElementBrem::indPoint_, edm::Ref< C, T, F >::isNull(), and reco::PFBlockElementBrem::sigmadeltaP_.

                                                       {
  
  if(! out ) return;
 
  if( !GsftrackRefPF_.isNull() ) {

    double charge = 0.;
    double dp =  deltaP_;
    double sigmadp = sigmadeltaP_;
    int indextrj = (indPoint_-2);
    out<<setprecision(0);
    out<<tab<<setw(7)<<"charge="<<setw(3)<<charge;
    out<<setprecision(3);
    out<<setiosflags(ios::right);
    out<<setiosflags(ios::fixed);
    out<<", DeltaP=  "<< dp;
    out<<", SigmaDeltaP=  " << sigmadp;
    out<<", Traj Point=  " << indextrj;
    out<<resetiosflags(ios::right|ios::fixed); }

}
void HistoData::dump ( ) [inline]
int HistoData::getBin ( void  ) const [inline]

Definition at line 21 of file HistoData.h.

References bin.

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

Definition at line 40 of file HistoData.h.

References chi2Score.

{ return chi2Score; }
bool HistoData::getDoAllow1DRebinning ( ) const [inline]

Definition at line 29 of file HistoData.h.

References doAllow1DRebinning.

{ return doAllow1DRebinning; }
bool HistoData::getDoAllow2DRebinningX ( ) const [inline]

Definition at line 30 of file HistoData.h.

References doAllow2DRebinningX.

{ return doAllow2DRebinningX; }
bool HistoData::getDoAllow2DRebinningY ( ) const [inline]

Definition at line 31 of file HistoData.h.

References doAllow2DRebinningY.

{ return doAllow2DRebinningY; }
bool HistoData::getDoDrawErrorBars ( ) const [inline]

Definition at line 28 of file HistoData.h.

References doDrawErrorBars.

{ return doDrawErrorBars; }
bool HistoData::getDoProjectionsX ( ) const [inline]

Definition at line 32 of file HistoData.h.

References doProjectionsX.

{ return doProjectionsX; }
bool HistoData::getDoProjectionsY ( ) const [inline]

Definition at line 33 of file HistoData.h.

References doProjectionsY.

{ return doProjectionsY; }
float HistoData::getHighScore ( ) const [inline]

Definition at line 42 of file HistoData.h.

References highScore.

{ return highScore; }
bool HistoData::getIsEmpty ( ) const [inline]

Definition at line 44 of file HistoData.h.

References isEmpty.

{ return isEmpty; }
float HistoData::getKSScore ( ) const [inline]

Definition at line 39 of file HistoData.h.

References ksScore.

{ return ksScore; }
bool HistoData::getLineUseFillColor ( ) const [inline]

Definition at line 47 of file HistoData.h.

References lineUseFillColor.

{ return lineUseFillColor; }
float HistoData::getLowScore ( ) const [inline]

Definition at line 41 of file HistoData.h.

References lowScore.

{ return lowScore; }
int HistoData::getMaxProjectionsX ( ) const [inline]

Definition at line 34 of file HistoData.h.

References maxProjectionsX.

{ return maxProjectionsX; }
int HistoData::getMaxProjectionsY ( ) const [inline]

Definition at line 35 of file HistoData.h.

References maxProjectionsY.

{ return maxProjectionsY; }
std::string HistoData::GetName ( ) [inline]

Definition at line 13 of file HistoData.h.

References name.

{ return name; }
std::string HistoData::getName ( void  ) const [inline]

Definition at line 18 of file HistoData.h.

References name.

{ return name; }
TH1* HistoData::getNewHisto ( ) const [inline]

Definition at line 22 of file HistoData.h.

References newHisto.

{ return newHisto; }
int HistoData::GetNumber ( ) [inline]

Definition at line 16 of file HistoData.h.

References number.

{ return number; }
TH1* HistoData::getRefHisto ( ) const [inline]

Definition at line 23 of file HistoData.h.

References refHisto.

{ return refHisto; }
bool HistoData::getResult ( ) const [inline]

Definition at line 43 of file HistoData.h.

References result.

{ return result; }
std::string HistoData::getResultImage ( ) const [inline]

Definition at line 24 of file HistoData.h.

References resultImage.

{ return resultImage; }
std::string HistoData::getResultTarget ( ) const [inline]

Definition at line 25 of file HistoData.h.

References resultTarget.

{ return resultTarget; }
int HistoData::getShadedFillColor ( ) const [inline]

Definition at line 52 of file HistoData.h.

References shadedFillColor.

{ return shadedFillColor; }
int HistoData::getShadedFillStyle ( ) const [inline]

Definition at line 53 of file HistoData.h.

References shadedFillStyle.

{ return shadedFillStyle; }
int HistoData::getShadedLineColor ( ) const [inline]

Definition at line 51 of file HistoData.h.

References lineUseFillColor, shadedFillColor, and shadedLineColor.

int HistoData::getSolidFillColor ( ) const [inline]

Definition at line 49 of file HistoData.h.

References solidFillColor.

{ return solidFillColor; }
int HistoData::getSolidFillStyle ( ) const [inline]

Definition at line 50 of file HistoData.h.

References solidFillStyle.

{ return solidFillStyle; }
int HistoData::getSolidLineColor ( ) const [inline]

Definition at line 48 of file HistoData.h.

References lineUseFillColor, solidFillColor, and solidLineColor.

int HistoData::getType ( void  ) const [inline]

Definition at line 20 of file HistoData.h.

References type.

{ return type; }
unsigned short HistoData::GetType ( ) [inline]

Definition at line 15 of file HistoData.h.

References type.

{ return type; }
std::string HistoData::GetValueX ( ) [inline]

Definition at line 14 of file HistoData.h.

References x_value.

{ return x_value; }
void HistoData::initialize ( ) [private]
void HistoData::setBin ( int  Bin) [inline]

Definition at line 59 of file HistoData.h.

References bin.

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

Definition at line 76 of file HistoData.h.

References chi2Score.

{ chi2Score = Score; }
void HistoData::setDoAllow1DRebinning ( bool  Toggle) [inline]

Definition at line 65 of file HistoData.h.

References doAllow1DRebinning.

{ doAllow1DRebinning = Toggle; }
void HistoData::setDoAllow2DRebinningX ( bool  Toggle) [inline]

Definition at line 66 of file HistoData.h.

References doAllow2DRebinningX.

{ doAllow2DRebinningX = Toggle; }
void HistoData::setDoAllow2DRebinningY ( bool  Toggle) [inline]

Definition at line 67 of file HistoData.h.

References doAllow2DRebinningY.

{ doAllow2DRebinningY = Toggle; }
void HistoData::setDoDrawErrorBars ( bool  Toggle) [inline]

Definition at line 64 of file HistoData.h.

References doDrawErrorBars.

{ doDrawErrorBars = Toggle; }
void HistoData::setDoProjectionsX ( bool  Toggle) [inline]

Definition at line 68 of file HistoData.h.

References doProjectionsX.

{ doProjectionsX = Toggle; }
void HistoData::setDoProjectionsY ( bool  Toggle) [inline]

Definition at line 69 of file HistoData.h.

References doProjectionsY.

{ doProjectionsY = Toggle; }
void HistoData::setHighScore ( float  Score) [inline]

Definition at line 78 of file HistoData.h.

References highScore.

{ highScore = Score; }
void HistoData::setIsEmpty ( bool  Toggle) [inline]

Definition at line 80 of file HistoData.h.

References isEmpty.

{ isEmpty = Toggle; }
void HistoData::setKSScore ( float  Score) [inline]

Definition at line 75 of file HistoData.h.

References ksScore.

{ ksScore = Score; }
void HistoData::setLineUseFillColor ( bool  Toggle) [inline]

Definition at line 83 of file HistoData.h.

References lineUseFillColor.

{ lineUseFillColor = Toggle; }
void HistoData::setLowScore ( float  Score) [inline]

Definition at line 77 of file HistoData.h.

References lowScore.

{ lowScore = Score; }
void HistoData::setMaxProjections ( int  Num) [inline]

Definition at line 70 of file HistoData.h.

References maxProjectionsX, and maxProjectionsY.

{ maxProjectionsX = Num; maxProjectionsY = Num; }
void HistoData::setMaxProjectionsX ( bool  Num) [inline]

Definition at line 71 of file HistoData.h.

References maxProjectionsX.

{ maxProjectionsX = Num; }
void HistoData::setMaxProjectionsY ( bool  Num) [inline]

Definition at line 72 of file HistoData.h.

References maxProjectionsY.

{ maxProjectionsY = Num; }
void HistoData::setName ( std::string  Name) [inline]

Definition at line 56 of file HistoData.h.

References name, and ExpressReco_HICollisions_FallBack::Name.

{ name = Name; }
void HistoData::setResult ( bool  Result)
void HistoData::setResultImage ( std::string  Image) [inline]

Definition at line 60 of file HistoData.h.

References resultImage.

{ resultImage = Image; }
void HistoData::setResultTarget ( std::string  Target) [inline]

Definition at line 61 of file HistoData.h.

References resultTarget, and Target.

void HistoData::setShadedFillColor ( int  Color) [inline]

Definition at line 88 of file HistoData.h.

References shadedFillColor.

{ shadedFillColor = Color; }
void HistoData::setShadedFillStyle ( int  Style) [inline]

Definition at line 89 of file HistoData.h.

References shadedFillStyle.

void HistoData::setShadedLineColor ( int  Color) [inline]

Definition at line 87 of file HistoData.h.

References shadedLineColor.

{ shadedLineColor = Color; }
void HistoData::setSolidFillColor ( int  Color) [inline]

Definition at line 85 of file HistoData.h.

References solidFillColor.

{ solidFillColor = Color; }
void HistoData::setSolidFillStyle ( int  Style) [inline]

Definition at line 86 of file HistoData.h.

References solidFillStyle.

void HistoData::setSolidLineColor ( int  Color) [inline]

Definition at line 84 of file HistoData.h.

References solidLineColor.

{ solidLineColor = Color; }
void HistoData::setType ( int  PlotType) [inline]

Definition at line 58 of file HistoData.h.

{ type = PlotType; }
void HistoData::SetType ( unsigned short  Type) [inline]

Definition at line 25 of file HistoData.h.

{ type = Type; }
void HistoData::SetValueX ( std::string  Value) [inline]

Definition at line 26 of file HistoData.h.

References x_value.

{ x_value = Value; }
void HistoData::SetValueY ( std::string  Value) [inline]

Definition at line 28 of file HistoData.h.

References y_value.

{ y_value = 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().

Definition at line 107 of file HistoData.h.

Referenced by getDoAllow1DRebinning(), and setDoAllow1DRebinning().

Definition at line 111 of file HistoData.h.

Referenced by getDoAllow2DRebinningX(), and setDoAllow2DRebinningX().

Definition at line 112 of file HistoData.h.

Referenced by getDoAllow2DRebinningY(), and setDoAllow2DRebinningY().

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

float HistoData::lowScore [private]

Definition at line 121 of file HistoData.h.

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

Definition at line 113 of file HistoData.h.

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

Definition at line 114 of file HistoData.h.

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

std::string HistoData::name [private]

Definition at line 37 of file HistoData.h.

Referenced by GetName(), getName(), and setName().

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

Definition at line 129 of file HistoData.h.

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

Definition at line 129 of file HistoData.h.

Referenced by getShadedFillStyle(), and setShadedFillStyle().

Definition at line 129 of file HistoData.h.

Referenced by getShadedLineColor(), and setShadedLineColor().

Definition at line 128 of file HistoData.h.

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

Definition at line 128 of file HistoData.h.

Referenced by getSolidFillStyle(), and setSolidFillStyle().

Definition at line 128 of file HistoData.h.

Referenced by getSolidLineColor(), and setSolidLineColor().

int HistoData::type [private]

Definition at line 101 of file HistoData.h.

unsigned short HistoData::type [private]

Definition at line 40 of file HistoData.h.

Referenced by getType(), and GetType().

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