Roo2DKeysPdf Class Reference

#include <Roo2DKeysPdf.h>

Inheritance diagram for Roo2DKeysPdf:

RooAbsPdf RooAbsPdf RooAbsReal RooAbsReal RooAbsReal RooAbsReal RooAbsArg RooAbsArg RooAbsArg RooAbsArg RooAbsArg RooAbsArg RooAbsArg RooAbsArg List of all members.

Public Member Functions

 Roo2DKeysPdf (const char *name, const char *title, RooAbsReal &xx, RooAbsReal &yy, RooDataSet &data, TString options="a", Double_t widthScaleFactor=1.0)
 Roo2DKeysPdf (const Roo2DKeysPdf &other, const char *name=0)
virtual TObjectclone (const char *newname) const
virtual ~Roo2DKeysPdf ()
Int_t loadDataSet (RooDataSet &data, TString options)
void setOptions (TString options)
void getOptions (void) const
void setWidthScaleFactor (Double_t widthScaleFactor)
Int_t calculateBandWidth (Int_t kernel=-999)
Int_t getBandWidthType () const
Double_t getMean (const char *axis) const
Double_t getSigma (const char *axis) const
void PrintInfo (ostream &) const
void writeToFile (char *outputFile, const char *name) const
void writeHistToFile (char *outputFile, const char *histName) const
void writeNTupleToFile (char *outputFile, const char *name) const
Double_t evaluate () const
 Roo2DKeysPdf (const char *name, const char *title, RooAbsReal &xx, RooAbsReal &yy, RooDataSet &data, TString options="a", Double_t widthScaleFactor=1.0)
 Roo2DKeysPdf (const Roo2DKeysPdf &other, const char *name=0)
virtual TObjectclone (const char *newname) const
virtual ~Roo2DKeysPdf ()
Int_t loadDataSet (RooDataSet &data, TString options)
void setOptions (TString options)
void getOptions (void) const
void setWidthScaleFactor (Double_t widthScaleFactor)
Int_t calculateBandWidth (Int_t kernel=-999)
Int_t getBandWidthType () const
Double_t getMean (const char *axis) const
Double_t getSigma (const char *axis) const
void PrintInfo (ostream &) const
void writeToFile (char *outputFile, const char *name) const
void writeHistToFile (char *outputFile, const char *histName) const
void writeNTupleToFile (char *outputFile, const char *name) const
Double_t evaluate () const

Public Attributes

RooRealProxy x
RooRealProxy y

Private Member Functions

Double_t evaluateFull (Double_t thisX, Double_t thisY) const
Double_t g (Double_t var1, Double_t *_var1, Double_t sigma1, Double_t var2, Double_t *_var2, Double_t sigma2) const
Double_t highBoundaryCorrection (Double_t thisVar, Double_t thisH, Double_t high, Double_t tVar) const
Double_t lowBoundaryCorrection (Double_t thisVar, Double_t thisH, Double_t low, Double_t tVar) const
Double_t evaluateFull (Double_t thisX, Double_t thisY) const
Double_t g (Double_t var1, Double_t *_var1, Double_t sigma1, Double_t var2, Double_t *_var2, Double_t sigma2) const
Double_t highBoundaryCorrection (Double_t thisVar, Double_t thisH, Double_t high, Double_t tVar) const
Double_t lowBoundaryCorrection (Double_t thisVar, Double_t thisH, Double_t low, Double_t tVar) const

Private Attributes

Double_t_x
Double_t_hx
Double_t_y
Double_t_hy
Double_t _norm
Double_t _xMean
Double_t _xSigma
Double_t _yMean
Double_t _ySigma
Double_t _n
Double_t _n16
Double_t _sqrt2pi
Double_t _2pi
Double_t _lox
Double_t _hix
Double_t _loy
Double_t _hiy
Double_t _xoffset
Double_t _yoffset
Double_t _widthScaleFactor
Int_t _nEvents
Int_t _BandWidthType
Int_t _MirrorAtBoundary
Int_t _debug
Int_t _verbosedebug
Int_t _vverbosedebug
Double_t_x
Double_t_hx
Double_t_y
Double_t_hy

Detailed Description

Definition at line 25 of file Roo2DKeysPdf.h.


Constructor & Destructor Documentation

Roo2DKeysPdf::Roo2DKeysPdf ( const char *  name,
const char *  title,
RooAbsReal xx,
RooAbsReal yy,
RooDataSet data,
TString  options = "a",
Double_t  widthScaleFactor = 1.0 
)

Referenced by clone().

Roo2DKeysPdf::Roo2DKeysPdf ( const Roo2DKeysPdf other,
const char *  name = 0 
)

Definition at line 56 of file Roo2DKeysPdf.cxx.

References _2pi, _BandWidthType, _debug, _hix, _hiy, _hx, _hy, _lox, _loy, _MirrorAtBoundary, _n, _n16, _nEvents, _sqrt2pi, _verbosedebug, _vverbosedebug, _widthScaleFactor, _x, _xMean, _xoffset, _xSigma, _y, _yMean, _yoffset, and _ySigma.

Roo2DKeysPdf::~Roo2DKeysPdf (  )  [virtual]

Definition at line 105 of file Roo2DKeysPdf.cxx.

References _hx, _hy, _verbosedebug, _x, and _y.

Roo2DKeysPdf::Roo2DKeysPdf ( const char *  name,
const char *  title,
RooAbsReal xx,
RooAbsReal yy,
RooDataSet data,
TString  options = "a",
Double_t  widthScaleFactor = 1.0 
)

Roo2DKeysPdf::Roo2DKeysPdf ( const Roo2DKeysPdf other,
const char *  name = 0 
)

virtual Roo2DKeysPdf::~Roo2DKeysPdf (  )  [virtual]


Member Function Documentation

virtual TObject* Roo2DKeysPdf::clone ( const char *  newname  )  const [inline, virtual]

Implements RooAbsArg.

Definition at line 31 of file Roo2DKeysPdf.h.

References Roo2DKeysPdf().

Int_t Roo2DKeysPdf::loadDataSet ( RooDataSet data,
TString  options 
)

Definition at line 120 of file Roo2DKeysPdf.cxx.

References _2pi, _BandWidthType, _hix, _hiy, _hx, _hy, _lox, _loy, _n, _n16, _nEvents, _sqrt2pi, _verbosedebug, _x, _xMean, _xSigma, _y, _yMean, _ySigma, RooRealProxy::arg(), calculateBandWidth(), data, TNamed::GetName(), j, RooRealProxy::max(), RooRealProxy::min(), TMath::Pi(), TMath::Power(), RooAbsArg::RooArgSet, setOptions(), sqrt(), x, X, x0, x1, y, and Y.

void Roo2DKeysPdf::setOptions ( TString  options  ) 

Definition at line 214 of file Roo2DKeysPdf.cxx.

References _BandWidthType, _debug, _MirrorAtBoundary, _verbosedebug, _vverbosedebug, TString::Contains(), and TString::ToLower().

Referenced by loadDataSet().

void Roo2DKeysPdf::getOptions ( void   )  const

Definition at line 245 of file Roo2DKeysPdf.cxx.

References _BandWidthType, _debug, _MirrorAtBoundary, _verbosedebug, and _vverbosedebug.

void Roo2DKeysPdf::setWidthScaleFactor ( Double_t  widthScaleFactor  )  [inline]

Definition at line 124 of file Roo2DKeysPdf.h.

References _widthScaleFactor.

Int_t Roo2DKeysPdf::calculateBandWidth ( Int_t  kernel = -999  ) 

Definition at line 261 of file Roo2DKeysPdf.cxx.

References _BandWidthType, _hx, _hy, _n16, _nEvents, _verbosedebug, _widthScaleFactor, _x, _xSigma, _y, _ySigma, g(), h, j, TMath::Power(), and sqrt().

Referenced by loadDataSet().

Int_t Roo2DKeysPdf::getBandWidthType (  )  const

Definition at line 441 of file Roo2DKeysPdf.cxx.

References _BandWidthType.

Double_t Roo2DKeysPdf::getMean ( const char *  axis  )  const

Definition at line 451 of file Roo2DKeysPdf.cxx.

References _xMean, _yMean, TNamed::GetName(), x, and y.

Double_t Roo2DKeysPdf::getSigma ( const char *  axis  )  const

Definition at line 464 of file Roo2DKeysPdf.cxx.

References _xSigma, _ySigma, TNamed::GetName(), x, and y.

void Roo2DKeysPdf::PrintInfo ( ostream &   )  const

Definition at line 575 of file Roo2DKeysPdf.cxx.

References _hix, _hiy, _lox, _loy, _xMean, _xSigma, _yMean, and _ySigma.

void Roo2DKeysPdf::writeToFile ( char *  outputFile,
const char *  name 
) const

Definition at line 478 of file Roo2DKeysPdf.cxx.

References writeHistToFile(), and writeNTupleToFile().

void Roo2DKeysPdf::writeHistToFile ( char *  outputFile,
const char *  histName 
) const

Definition at line 493 of file Roo2DKeysPdf.cxx.

References RooRealProxy::arg(), TFile::Close(), RooAbsRealLValue::createHistogram(), TNamed::GetName(), hist, TFile::Write(), x, and y.

Referenced by writeToFile().

void Roo2DKeysPdf::writeNTupleToFile ( char *  outputFile,
const char *  name 
) const

Definition at line 525 of file Roo2DKeysPdf.cxx.

References _hx, _hy, _nEvents, _x, _y, RooRealProxy::arg(), TTree::Branch(), TFile::Close(), TTree::Fill(), TNamed::GetName(), TTree::SetAutoSave(), TFile::Write(), x, and y.

Referenced by writeToFile().

Double_t Roo2DKeysPdf::evaluate (  )  const [virtual]

Implements RooAbsReal.

Definition at line 327 of file Roo2DKeysPdf.cxx.

References _vverbosedebug, evaluateFull(), x, and y.

Double_t Roo2DKeysPdf::evaluateFull ( Double_t  thisX,
Double_t  thisY 
) const [private]

Definition at line 344 of file Roo2DKeysPdf.cxx.

References _hx, _hy, _MirrorAtBoundary, _nEvents, _vverbosedebug, _x, _y, exp(), highBoundaryCorrection(), j, lowBoundaryCorrection(), RooRealProxy::max(), RooRealProxy::min(), x, and y.

Referenced by evaluate().

Double_t Roo2DKeysPdf::g ( Double_t  var1,
Double_t _var1,
Double_t  sigma1,
Double_t  var2,
Double_t _var2,
Double_t  sigma2 
) const [private]

Definition at line 420 of file Roo2DKeysPdf.cxx.

References _nEvents, _sqrt2pi, c1, d, exp(), i, r1, and r2.

Referenced by calculateBandWidth().

Double_t Roo2DKeysPdf::highBoundaryCorrection ( Double_t  thisVar,
Double_t  thisH,
Double_t  high,
Double_t  tVar 
) const [private]

Definition at line 392 of file Roo2DKeysPdf.cxx.

References _vverbosedebug, and exp().

Referenced by evaluateFull().

Double_t Roo2DKeysPdf::lowBoundaryCorrection ( Double_t  thisVar,
Double_t  thisH,
Double_t  low,
Double_t  tVar 
) const [private]

Definition at line 403 of file Roo2DKeysPdf.cxx.

References _vverbosedebug, and exp().

Referenced by evaluateFull().

virtual TObject* Roo2DKeysPdf::clone ( const char *  newname  )  const [inline, virtual]

Implements RooAbsArg.

Definition at line 31 of file Roo2DKeysPdf.h.

References Roo2DKeysPdf().

Int_t Roo2DKeysPdf::loadDataSet ( RooDataSet data,
TString  options 
)

void Roo2DKeysPdf::setOptions ( TString  options  ) 

void Roo2DKeysPdf::getOptions ( void   )  const

void Roo2DKeysPdf::setWidthScaleFactor ( Double_t  widthScaleFactor  )  [inline]

Int_t Roo2DKeysPdf::calculateBandWidth ( Int_t  kernel = -999  ) 

Int_t Roo2DKeysPdf::getBandWidthType (  )  const

Double_t Roo2DKeysPdf::getMean ( const char *  axis  )  const

Double_t Roo2DKeysPdf::getSigma ( const char *  axis  )  const

void Roo2DKeysPdf::PrintInfo ( ostream &   )  const

void Roo2DKeysPdf::writeToFile ( char *  outputFile,
const char *  name 
) const

void Roo2DKeysPdf::writeHistToFile ( char *  outputFile,
const char *  histName 
) const

void Roo2DKeysPdf::writeNTupleToFile ( char *  outputFile,
const char *  name 
) const

Double_t Roo2DKeysPdf::evaluate (  )  const [virtual]

Implements RooAbsReal.

Double_t Roo2DKeysPdf::evaluateFull ( Double_t  thisX,
Double_t  thisY 
) const [private]

Double_t Roo2DKeysPdf::g ( Double_t  var1,
Double_t _var1,
Double_t  sigma1,
Double_t  var2,
Double_t _var2,
Double_t  sigma2 
) const [private]

Double_t Roo2DKeysPdf::highBoundaryCorrection ( Double_t  thisVar,
Double_t  thisH,
Double_t  high,
Double_t  tVar 
) const [private]

Double_t Roo2DKeysPdf::lowBoundaryCorrection ( Double_t  thisVar,
Double_t  thisH,
Double_t  low,
Double_t  tVar 
) const [private]


Member Data Documentation

RooRealProxy Roo2DKeysPdf::x

Definition at line 78 of file Roo2DKeysPdf.h.

Referenced by evaluate(), evaluateFull(), getMean(), getSigma(), loadDataSet(), writeHistToFile(), and writeNTupleToFile().

RooRealProxy Roo2DKeysPdf::y

Definition at line 79 of file Roo2DKeysPdf.h.

Referenced by evaluate(), evaluateFull(), getMean(), getSigma(), loadDataSet(), writeHistToFile(), and writeNTupleToFile().

Double_t* Roo2DKeysPdf::_x [private]

Definition at line 95 of file Roo2DKeysPdf.h.

Referenced by calculateBandWidth(), evaluateFull(), loadDataSet(), Roo2DKeysPdf(), writeNTupleToFile(), and ~Roo2DKeysPdf().

Double_t* Roo2DKeysPdf::_hx [private]

Definition at line 96 of file Roo2DKeysPdf.h.

Referenced by calculateBandWidth(), evaluateFull(), loadDataSet(), Roo2DKeysPdf(), writeNTupleToFile(), and ~Roo2DKeysPdf().

Double_t* Roo2DKeysPdf::_y [private]

Definition at line 97 of file Roo2DKeysPdf.h.

Referenced by calculateBandWidth(), evaluateFull(), loadDataSet(), Roo2DKeysPdf(), writeNTupleToFile(), and ~Roo2DKeysPdf().

Double_t* Roo2DKeysPdf::_hy [private]

Definition at line 98 of file Roo2DKeysPdf.h.

Referenced by calculateBandWidth(), evaluateFull(), loadDataSet(), Roo2DKeysPdf(), writeNTupleToFile(), and ~Roo2DKeysPdf().

Double_t Roo2DKeysPdf::_norm [private]

Reimplemented from RooAbsPdf.

Definition at line 99 of file Roo2DKeysPdf.h.

Double_t Roo2DKeysPdf::_xMean [private]

Definition at line 100 of file Roo2DKeysPdf.h.

Referenced by getMean(), loadDataSet(), PrintInfo(), and Roo2DKeysPdf().

Double_t Roo2DKeysPdf::_xSigma [private]

Definition at line 101 of file Roo2DKeysPdf.h.

Referenced by calculateBandWidth(), getSigma(), loadDataSet(), PrintInfo(), and Roo2DKeysPdf().

Double_t Roo2DKeysPdf::_yMean [private]

Definition at line 102 of file Roo2DKeysPdf.h.

Referenced by getMean(), loadDataSet(), PrintInfo(), and Roo2DKeysPdf().

Double_t Roo2DKeysPdf::_ySigma [private]

Definition at line 103 of file Roo2DKeysPdf.h.

Referenced by calculateBandWidth(), getSigma(), loadDataSet(), PrintInfo(), and Roo2DKeysPdf().

Double_t Roo2DKeysPdf::_n [private]

Definition at line 104 of file Roo2DKeysPdf.h.

Referenced by loadDataSet(), and Roo2DKeysPdf().

Double_t Roo2DKeysPdf::_n16 [private]

Definition at line 105 of file Roo2DKeysPdf.h.

Referenced by calculateBandWidth(), loadDataSet(), and Roo2DKeysPdf().

Double_t Roo2DKeysPdf::_sqrt2pi [private]

Definition at line 106 of file Roo2DKeysPdf.h.

Referenced by g(), loadDataSet(), and Roo2DKeysPdf().

Double_t Roo2DKeysPdf::_2pi [private]

Definition at line 107 of file Roo2DKeysPdf.h.

Referenced by loadDataSet(), and Roo2DKeysPdf().

Double_t Roo2DKeysPdf::_lox [private]

Definition at line 108 of file Roo2DKeysPdf.h.

Referenced by loadDataSet(), PrintInfo(), and Roo2DKeysPdf().

Double_t Roo2DKeysPdf::_hix [private]

Definition at line 108 of file Roo2DKeysPdf.h.

Referenced by loadDataSet(), PrintInfo(), and Roo2DKeysPdf().

Double_t Roo2DKeysPdf::_loy [private]

Definition at line 109 of file Roo2DKeysPdf.h.

Referenced by loadDataSet(), PrintInfo(), and Roo2DKeysPdf().

Double_t Roo2DKeysPdf::_hiy [private]

Definition at line 109 of file Roo2DKeysPdf.h.

Referenced by loadDataSet(), PrintInfo(), and Roo2DKeysPdf().

Double_t Roo2DKeysPdf::_xoffset [private]

Definition at line 110 of file Roo2DKeysPdf.h.

Referenced by Roo2DKeysPdf().

Double_t Roo2DKeysPdf::_yoffset [private]

Definition at line 111 of file Roo2DKeysPdf.h.

Referenced by Roo2DKeysPdf().

Double_t Roo2DKeysPdf::_widthScaleFactor [private]

Definition at line 112 of file Roo2DKeysPdf.h.

Referenced by calculateBandWidth(), Roo2DKeysPdf(), and setWidthScaleFactor().

Int_t Roo2DKeysPdf::_nEvents [private]

Definition at line 114 of file Roo2DKeysPdf.h.

Referenced by calculateBandWidth(), evaluateFull(), g(), loadDataSet(), Roo2DKeysPdf(), and writeNTupleToFile().

Int_t Roo2DKeysPdf::_BandWidthType [private]

Definition at line 115 of file Roo2DKeysPdf.h.

Referenced by calculateBandWidth(), getBandWidthType(), getOptions(), loadDataSet(), Roo2DKeysPdf(), and setOptions().

Int_t Roo2DKeysPdf::_MirrorAtBoundary [private]

Definition at line 116 of file Roo2DKeysPdf.h.

Referenced by evaluateFull(), getOptions(), Roo2DKeysPdf(), and setOptions().

Int_t Roo2DKeysPdf::_debug [private]

Definition at line 117 of file Roo2DKeysPdf.h.

Referenced by getOptions(), Roo2DKeysPdf(), and setOptions().

Int_t Roo2DKeysPdf::_verbosedebug [private]

Definition at line 118 of file Roo2DKeysPdf.h.

Referenced by calculateBandWidth(), getOptions(), loadDataSet(), Roo2DKeysPdf(), setOptions(), and ~Roo2DKeysPdf().

Int_t Roo2DKeysPdf::_vverbosedebug [private]

Definition at line 119 of file Roo2DKeysPdf.h.

Referenced by evaluate(), evaluateFull(), getOptions(), highBoundaryCorrection(), lowBoundaryCorrection(), Roo2DKeysPdf(), and setOptions().

Double_t* Roo2DKeysPdf::_x [private]

Definition at line 95 of file Roo2DKeysPdf.h.

Double_t* Roo2DKeysPdf::_hx [private]

Definition at line 96 of file Roo2DKeysPdf.h.

Double_t* Roo2DKeysPdf::_y [private]

Definition at line 97 of file Roo2DKeysPdf.h.

Double_t* Roo2DKeysPdf::_hy [private]

Definition at line 98 of file Roo2DKeysPdf.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:31:36 2011 for ROOT_528-00b_version by  doxygen 1.5.1