| 
    GammaCombo
    Rev:Unversioneddirectory
    
   | 
 
#include <PDF_Abs.h>

Public Member Functions | |
| bool | bkgpdfset () | 
| virtual void | build () | 
| Shortcut for buildCov() and buildPdf().  More... | |
| void | buildCov () | 
| Build both the covariance and the correlation matrix (members covMatrix and corMatrix) from the stat and syst correlation matrics and the respective errors.  More... | |
| virtual void | buildPdf () | 
| virtual bool | checkConsistency () | 
| Perform a couple of consistency checks to make it easier to find bugs:  More... | |
| void | deleteToys () | 
| TString | getBaseName () | 
| Return the base name, which is the name without any unique ID.  More... | |
| RooAbsPdf * | getBkgPdf () | 
| TString | getCorrelationSourceString () | 
| TString | getErrorSourceString () | 
| int | getGcId () | 
| vector< TString > | getLatexObservables () | 
| TString | getName () | 
| int | getNobs () | 
| RooArgList * | getObservables () | 
| TString | getObservableSourceString () | 
| float | getObservableValue (TString obsname) | 
| Return the numerical value of an observable of a given name.  More... | |
| RooArgList * | getParameters () | 
| RooAbsPdf * | getPdf () | 
| void | getSubCorrelationStat (TMatrixDSym &target, vector< int > &indices) | 
| Return a submatrix of the statistical correlation matrix, defined by the rows and columns provided.  More... | |
| void | getSubCorrelationSyst (TMatrixDSym &target, vector< int > &indices) | 
| Return a submatrix of the systematic correlation matrix, defined by the rows and columns provided.  More... | |
| RooArgList * | getTheory () | 
| TString | getTitle () | 
| unsigned long long | getUniqueGlobalID () | 
| TString | getUniqueID () | 
| bool | hasObservable (TString obsname) | 
| Check if this PDF has an observable of the given name.  More... | |
| virtual void | initObservables () | 
| virtual void | initParameters () | 
| virtual void | initRelations () | 
| bool | isCrossCorPdf () | 
| void | loadExtParameters (RooFitResult *r) | 
| Set all parameters to values found in a provided fit result.  More... | |
| PDF_Abs (int nObs) | |
| Gamma Combination Author: Till Moritz Karbach, moritz.karbach@cern.ch Date: August 2012.  More... | |
| PDF_Abs (int nObs, ParametersAbs &pars) | |
| void | print () const | 
| Print this PDF in a verbose way:  More... | |
| void | printObservables () | 
| void | printParameters () | 
| void | resetCorrelations () | 
| Set all correlations to zero.  More... | |
| bool | ScaleError (TString obsname, float scale) | 
| Scale the error of a given observable.  More... | |
| virtual void | setCorrelations (TString c) | 
| void | setErrorSourceString (TString source) | 
| void | setGcId (int id) | 
| void | setName (TString myName) | 
| void | setNObs (int val) | 
| void | setObservable (TString name, float value) | 
| Set the observed central value of an observable.  More... | |
| virtual void | setObservables (TString c) | 
| void | setObservableSourceString (TString source) | 
| void | setObservablesToy () | 
| Set all observables to 'toy' values drawn from the PDF using the current parameter values.  More... | |
| void | setObservablesTruth () | 
| Set all observables to 'truth' values computed from the current parameters.  More... | |
| void | setSystCorrelation (TMatrixDSym &corSystMatrix) | 
| Set an external systematic correlation matrix.  More... | |
| void | setTitle (TString t) | 
| virtual void | setUncertainties (TString c) | 
| void | setUncertainty (TString obsName, float stat, float syst) | 
| Set the uncertainties of an observable.  More... | |
| void | storeErrorsInObs () | 
| Store the errors as RooFit error into the observables to have them easily available for the pull computation.  More... | |
| virtual bool | test () | 
| Test PDF implementation.  More... | |
| void | uniquify (int uID) | 
| used to uniquify all names when added  More... | |
| virtual | ~PDF_Abs () | 
| Clean off all objects in the trash bin.  More... | |
Public Attributes | |
| TMatrixDSym | corMatrix | 
| TString | corSource | 
| TMatrixDSym | corStatMatrix | 
| TMatrixDSym | corSystMatrix | 
| TMatrixDSym | covMatrix | 
| TString | obsErrSource | 
| TString | obsValSource | 
| vector< double > | StatErr | 
| vector< double > | SystErr | 
Protected Member Functions | |
| void | addToTrash (TObject *) | 
| Add an object to the trash bin which gets emptied when this PDF object gets deleted.  More... | |
| void | getSubMatrix (TMatrixDSym &target, TMatrixDSym &source, vector< int > &indices) | 
| Return a submatrix of a given input matrix, defined by the rows and columns provided.  More... | |
Protected Attributes | |
| int | gcId | 
| bool | isBkgPdfSet | 
| int | iToyObs | 
| vector< TString > | latexObservables | 
| bool | m_isCrossCorPdf | 
| TString | name | 
| int | nObs | 
| int | nToyObs | 
| RooArgList * | observables | 
| RooArgList * | parameters | 
| RooAbsPdf * | |
| RooAbsPdf * | pdfBkg | 
| RooArgList * | theory | 
| TString | title | 
| RooDataSet * | toyBkgObservables | 
| RooDataSet * | toyObservables | 
| map< string, TObject * > | trash | 
Private Member Functions | |
| void | printCorMatrix (TString title, TString source, const TMatrixDSym &cor) const | 
| Helper function for print(): it prints correlation matrices, stat, syst, stat+syst.  More... | |
| TString | uniquifyThisString (TString s, int uID) | 
| Helper function for uniquify().  More... | |
Private Attributes | |
| unsigned long long | uniqueGlobalID | 
| TString | uniqueID | 
Static Private Attributes | |
| static unsigned long long | counter = 0 | 
| PDF_Abs::PDF_Abs | ( | int | nObs | ) | 
Gamma Combination Author: Till Moritz Karbach, moritz.karbach@cern.ch Date: August 2012.
Definition at line 10 of file PDF_Abs.cpp.
| PDF_Abs::PDF_Abs | ( | int | nObs, | 
| ParametersAbs & | pars | ||
| ) | 
      
  | 
  virtual | 
Clean off all objects in the trash bin.
See also addToTrash().
Definition at line 48 of file PDF_Abs.cpp.
      
  | 
  protected | 
Add an object to the trash bin which gets emptied when this PDF object gets deleted.
If an object of the same name is already in the trash, we'll delete that and replace by the new one. This way we can call e.g. buildPdf() more than once.
Definition at line 163 of file PDF_Abs.cpp.
      
  | 
  virtual | 
Shortcut for buildCov() and buildPdf().
Definition at line 97 of file PDF_Abs.cpp.
| void PDF_Abs::buildCov | ( | ) | 
Build both the covariance and the correlation matrix (members covMatrix and corMatrix) from the stat and syst correlation matrics and the respective errors.
Definition at line 253 of file PDF_Abs.cpp.
      
  | 
  virtual | 
Reimplemented in PDF_Circle, PDF_Cartesian, PDF_Gaus2d, PDF_DsK, PDF_DsK_gamma, PDF_Gaus, PDF_GausB, and PDF_rb.
Definition at line 89 of file PDF_Abs.cpp.
      
  | 
  virtual | 
Perform a couple of consistency checks to make it easier to find bugs:
Definition at line 515 of file PDF_Abs.cpp.
| TString PDF_Abs::getBaseName | ( | ) | 
Return the base name, which is the name without any unique ID.
Definition at line 180 of file PDF_Abs.cpp.
| float PDF_Abs::getObservableValue | ( | TString | obsname | ) | 
Return the numerical value of an observable of a given name.
| obsname | - observable name. If the PDF was uniquified before by calling uniquify(), it has to include the unique ID string. | 
Definition at line 651 of file PDF_Abs.cpp.
| void PDF_Abs::getSubCorrelationStat | ( | TMatrixDSym & | target, | 
| vector< int > & | indices | ||
| ) | 
Return a submatrix of the statistical correlation matrix, defined by the rows and columns provided.
| target | - the output matrix | 
| indices | - vector of the row/column indices that should make up the submatrix | 
Definition at line 700 of file PDF_Abs.cpp.
| void PDF_Abs::getSubCorrelationSyst | ( | TMatrixDSym & | target, | 
| vector< int > & | indices | ||
| ) | 
Return a submatrix of the systematic correlation matrix, defined by the rows and columns provided.
| target | - the output matrix | 
| indices | - vector of the row/column indices that should make up the submatrix | 
Definition at line 712 of file PDF_Abs.cpp.
      
  | 
  protected | 
Return a submatrix of a given input matrix, defined by the rows and columns provided.
| source | - the input matrix | 
| target | - the output matrix | 
| indices | - vector of the row/column indices that should make up the submatrix | 
Definition at line 669 of file PDF_Abs.cpp.
| bool PDF_Abs::hasObservable | ( | TString | obsname | ) | 
Check if this PDF has an observable of the given name.
| obsname | - observable name | 
Definition at line 595 of file PDF_Abs.cpp.
      
  | 
  virtual | 
Reimplemented in PDF_Datasets, PDF_Circle, PDF_Cartesian, PDF_Gaus2d, PDF_DsK, PDF_DsK_gamma, PDF_Gaus, PDF_GausB, and PDF_rb.
Definition at line 88 of file PDF_Abs.cpp.
      
  | 
  virtual | 
Reimplemented in PDF_Datasets, PDF_Circle, PDF_Cartesian, PDF_Gaus2d, PDF_DsK, PDF_DsK_gamma, PDF_Gaus, PDF_GausB, and PDF_rb.
Definition at line 86 of file PDF_Abs.cpp.
      
  | 
  virtual | 
Reimplemented in PDF_Circle, PDF_Cartesian, PDF_Gaus2d, PDF_DsK, PDF_DsK_gamma, PDF_Gaus, PDF_GausB, and PDF_rb.
Definition at line 87 of file PDF_Abs.cpp.
| void PDF_Abs::loadExtParameters | ( | RooFitResult * | r | ) | 
Set all parameters to values found in a provided fit result.
Definition at line 238 of file PDF_Abs.cpp.
| void PDF_Abs::print | ( | ) | const | 
Print this PDF in a verbose way:
Definition at line 338 of file PDF_Abs.cpp.
      
  | 
  private | 
Helper function for print(): it prints correlation matrices, stat, syst, stat+syst.
Definition at line 312 of file PDF_Abs.cpp.
| void PDF_Abs::printObservables | ( | ) | 
Definition at line 422 of file PDF_Abs.cpp.
| void PDF_Abs::printParameters | ( | ) | 
Definition at line 403 of file PDF_Abs.cpp.
| void PDF_Abs::resetCorrelations | ( | ) | 
Set all correlations to zero.
Definition at line 144 of file PDF_Abs.cpp.
| bool PDF_Abs::ScaleError | ( | TString | obsname, | 
| float | scale | ||
| ) | 
Scale the error of a given observable.
Both stat and syst errors are being scaled by the same factor. In order to become effective, the PDF needs to be rebuild by calling buildCov() and buildPdf().
| obsname | - observable name. It may or may not include a unique ID string, both works. | 
| scale | - the scale factor the current error is being multiplied with | 
Definition at line 612 of file PDF_Abs.cpp.
      
  | 
  virtual | 
Reimplemented in PDF_Circle, PDF_Cartesian, PDF_Gaus2d, PDF_Gaus, PDF_GausB, and PDF_rb.
Definition at line 92 of file PDF_Abs.cpp.
      
  | 
  inline | 
| void PDF_Abs::setObservable | ( | TString | obsName, | 
| float | value | ||
| ) | 
Set the observed central value of an observable.
To be used in setObservables() of the derived PDF classes.
| obsName | - observable name | 
| value | - central value | 
Definition at line 477 of file PDF_Abs.cpp.
      
  | 
  virtual | 
Reimplemented in PDF_Circle, PDF_Cartesian, PDF_Gaus2d, PDF_Gaus, PDF_GausB, and PDF_rb.
Definition at line 90 of file PDF_Abs.cpp.
      
  | 
  inline | 
| void PDF_Abs::setObservablesToy | ( | ) | 
Set all observables to 'toy' values drawn from the PDF using the current parameter values.
A certain number of toys is pregenerated to speed up when doing mulitple toy fits.
Definition at line 122 of file PDF_Abs.cpp.
| void PDF_Abs::setObservablesTruth | ( | ) | 
Set all observables to 'truth' values computed from the current parameters.
Definition at line 107 of file PDF_Abs.cpp.
| void PDF_Abs::setSystCorrelation | ( | TMatrixDSym & | corSystMatrix | ) | 
Set an external systematic correlation matrix.
After modifying, call buildCov() and buildPdf();
Definition at line 463 of file PDF_Abs.cpp.
      
  | 
  virtual | 
Reimplemented in PDF_Circle, PDF_Cartesian, PDF_Gaus2d, PDF_Gaus, PDF_GausB, and PDF_rb.
Definition at line 91 of file PDF_Abs.cpp.
| void PDF_Abs::setUncertainty | ( | TString | obsName, | 
| float | stat, | ||
| float | syst | ||
| ) | 
Set the uncertainties of an observable.
To be used in setUncertainties() of the derived PDF classes. This function fills the StatErr and SystErr arrays in the correct place.
| obsName | - observable name | 
| stat | - statistical error | 
| syst | - systematic error | 
Definition at line 494 of file PDF_Abs.cpp.
| void PDF_Abs::storeErrorsInObs | ( | ) | 
Store the errors as RooFit error into the observables to have them easily available for the pull computation.
Definition at line 444 of file PDF_Abs.cpp.
      
  | 
  virtual | 
| void PDF_Abs::uniquify | ( | int | uID | ) | 
used to uniquify all names when added
Uniquify all relevant names by adding a unique ID following the pattern "UID2".
This way we can have mulitple instances of the same PDF in the same combination. The pattern is defined in uniquifyThisString().
| uID | - unique ID | 
Definition at line 195 of file PDF_Abs.cpp.
      
  | 
  private | 
Helper function for uniquify().
Compute a unique string by attaching "UID3" or similar to it.
Definition at line 226 of file PDF_Abs.cpp.
 1.8.12