GammaCombo  Rev:Unversioneddirectory
Public Member Functions | List of all members
PDF_Gaus Class Reference

#include <PDF_Gaus.h>

Inheritance diagram for PDF_Gaus:
Inheritance graph
[legend]
Collaboration diagram for PDF_Gaus:
Collaboration graph
[legend]

Public Member Functions

void buildPdf ()
 
void initObservables ()
 
virtual void initParameters ()
 
virtual void initRelations ()
 
 PDF_Gaus (TString cObs="year2014", TString cErr="year2014", TString cCor="year2014")
 Gamma Combination Author: Till Moritz Karbach, morit.nosp@m.z.ka.nosp@m.rbach.nosp@m.@cer.nosp@m.n.ch Date: November 2014. More...
 
void setCorrelations (TString c)
 
void setObservables (TString c)
 
void setUncertainties (TString c)
 
 ~PDF_Gaus ()
 
- Public Member Functions inherited from PDF_Abs
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 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...
 
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, morit.nosp@m.z.ka.nosp@m.rbach.nosp@m.@cer.nosp@m.n.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...
 
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...
 
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)
 
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...
 

Additional Inherited Members

- Public Attributes inherited from PDF_Abs
TMatrixDSym corMatrix
 
TString corSource
 
TMatrixDSym corStatMatrix
 
TMatrixDSym corSystMatrix
 
TMatrixDSym covMatrix
 
TString obsErrSource
 
TString obsValSource
 
vector< double > StatErr
 
vector< double > SystErr
 
- Protected Member Functions inherited from PDF_Abs
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 inherited from PDF_Abs
int gcId
 
bool isBkgPdfSet
 
int iToyObs
 
vector< TString > latexObservables
 
bool m_isCrossCorPdf
 
TString name
 
int nObs
 
int nToyObs
 
RooArgList * observables
 
RooArgList * parameters
 
RooAbsPdf * pdf
 
RooAbsPdf * pdfBkg
 
RooArgList * theory
 
TString title
 
RooDataSet * toyBkgObservables
 
RooDataSet * toyObservables
 
map< string, TObject * > trash
 

Detailed Description

Definition at line 17 of file PDF_Gaus.h.

Constructor & Destructor Documentation

§ PDF_Gaus()

PDF_Gaus::PDF_Gaus ( TString  cObs = "year2014",
TString  cErr = "year2014",
TString  cCor = "year2014" 
)

Gamma Combination Author: Till Moritz Karbach, morit.nosp@m.z.ka.nosp@m.rbach.nosp@m.@cer.nosp@m.n.ch Date: November 2014.

Definition at line 10 of file PDF_Gaus.cpp.

§ ~PDF_Gaus()

PDF_Gaus::~PDF_Gaus ( )

Definition at line 25 of file PDF_Gaus.cpp.

Member Function Documentation

§ buildPdf()

void PDF_Gaus::buildPdf ( )
virtual

Reimplemented from PDF_Abs.

Definition at line 108 of file PDF_Gaus.cpp.

§ initObservables()

void PDF_Gaus::initObservables ( )
virtual

< the order of this list must match that of the COR matrix!

Reimplemented from PDF_Abs.

Definition at line 43 of file PDF_Gaus.cpp.

§ initParameters()

void PDF_Gaus::initParameters ( )
virtual

Reimplemented from PDF_Abs.

Definition at line 28 of file PDF_Gaus.cpp.

§ initRelations()

void PDF_Gaus::initRelations ( )
virtual

< the order of this list must match that of the COR matrix!

Reimplemented from PDF_Abs.

Definition at line 36 of file PDF_Gaus.cpp.

§ setCorrelations()

void PDF_Gaus::setCorrelations ( TString  c)
virtual

Reimplemented from PDF_Abs.

Definition at line 92 of file PDF_Gaus.cpp.

§ setObservables()

void PDF_Gaus::setObservables ( TString  c)
virtual

Reimplemented from PDF_Abs.

Definition at line 50 of file PDF_Gaus.cpp.

§ setUncertainties()

void PDF_Gaus::setUncertainties ( TString  c)
virtual

Reimplemented from PDF_Abs.

Definition at line 73 of file PDF_Gaus.cpp.


The documentation for this class was generated from the following files: