GammaCombo  Rev:Unversioneddirectory
Public Member Functions | Private Attributes | List of all members
PDF_DatasetTutorial Class Reference

#include <PDF_DatasetTutorial.h>

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

Public Member Functions

RooFitResult * fit (RooDataSet *dataToFit)
 
void generateToys (int SeedShift=0) override
 
 PDF_DatasetTutorial (RooWorkspace *w)
 
 ~PDF_DatasetTutorial ()
 
- Public Member Functions inherited from PDF_Datasets
void addFitObs (TString name)
 
bool areObservglobalablesSet ()
 
bool areParametersSet ()
 
void deleteNLL ()
 
virtual RooFitResult * fitBkg (RooDataSet *dataToFit)
 
virtual void generateBkgToys (int SeedShift=0)
 
virtual void generateBkgToysGlobalObservables (int SeedShift=0)
 
virtual void generateToysGlobalObservables (int SeedShift=0)
 
OptParsergetArg ()
 
TString getBkgPdfName ()
 
RooDataSet * getBkgToyObservables ()
 
TString getConstraintName ()
 
RooDataSet * getData ()
 
TString getDataName ()
 
std::vector< TString > getFitObs ()
 
int getFitStatus ()
 
int getFitStrategy ()
 
TString getGlobalObsName ()
 
float getMinNll ()
 
float getMinNllBkg ()
 
float getMinNllFree ()
 
float getMinNllScan ()
 
TString getObsName ()
 
TString getParName ()
 
TString getPdfName ()
 
RooDataSet * getToyObservables ()
 
std::map< TString, TString > getUnblindRegions ()
 
RooWorkspace * getWorkspace ()
 
void initBkgPDF (const TString &name)
 
void initConstraints (const TString &setName)
 
void initData (const TString &name)
 
void initGlobalObservables (const TString &setName)
 
void initObservables (const TString &setName)
 
virtual void initObservables ()
 
void initParameters (const TString &setName)
 
void initParameters (const vector< TString > &parNames)
 
virtual void initParameters ()
 
void initPDF (const TString &name)
 
bool isDataInitialized ()
 
bool isPdfInitialized ()
 
bool notSetupToFit (bool fitToys)
 
 PDF_Datasets (RooWorkspace *w, int nObs, OptParser *opt)
 Gamma Combination Author: Maximilian Schlupp, maxsc.nosp@m.hlup.nosp@m.p@gma.nosp@m.il.c.nosp@m.om Author: Konstantin Schubert, schub.nosp@m.ert..nosp@m.konst.nosp@m.anti.nosp@m.n@gma.nosp@m.il.c.nosp@m.om Date: October 2016. More...
 
 PDF_Datasets (RooWorkspace *w)
 
void print ()
 
void printParameters ()
 
void setFitStatus (int stat=0)
 
void setFitStrategy (int strat=0)
 
void setMinNll (float mnll)
 
void setMinNllFree (float mnll)
 
void setMinNllScan (float mnll)
 
void setNCPU (int n)
 
void setToyData (RooDataSet *ds)
 
void setVarRange (const TString &varName, const TString &rangeName, const double &rangeMin, const double &rangeMax)
 
void unblind (TString var, TString unblindRegs)
 
 ~PDF_Datasets ()
 
- 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 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 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, 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...
 
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...
 

Private Attributes

bool drawFitsDebug
 

Additional Inherited Members

- Public Attributes inherited from PDF_Datasets
const TString globalObsDataSnapshotName = "globalObsDataSnapshotName"
 
const TString globalObsToySnapshotName = "globalObsToySnapshotName"
 
float minNll
 
int NCPU
 
- 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_Datasets
void initializeRandomGenerator (int seedShift)
 Initializes the random generator. More...
 
- 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_Datasets
RooAbsPdf * _constraintPdf
 
RooAbsReal * _NLL
 
bool areObsSet
 
bool areParsSet
 
bool areRangesSet
 
OptParserarg
 
TString constraintName
 
RooDataSet * data
 
TString dataName
 
std::vector< TString > fitObs
 
int fitStatus
 
int fitStrategy
 
TString globalObsName
 
TString globalParsName
 
bool isBkgPdfSet
 
bool isDataSet
 
bool isPdfSet
 
bool isToyDataSet
 
float minNllBkg
 
float minNllFree
 
float minNllScan
 
TString obsName
 
TString parName
 
TString pdfBkgName
 
TString pdfName
 
std::map< TString, TString > unblindRegions
 
RooWorkspace * wspc
 
- 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 7 of file PDF_DatasetTutorial.h.

Constructor & Destructor Documentation

§ PDF_DatasetTutorial()

PDF_DatasetTutorial::PDF_DatasetTutorial ( RooWorkspace *  w)

Definition at line 6 of file PDF_DatasetTutorial.cpp.

§ ~PDF_DatasetTutorial()

PDF_DatasetTutorial::~PDF_DatasetTutorial ( )

Definition at line 7 of file PDF_DatasetTutorial.cpp.

Member Function Documentation

§ fit()

RooFitResult * PDF_DatasetTutorial::fit ( RooDataSet *  dataToFit)
virtual

Reimplemented from PDF_Datasets.

Definition at line 9 of file PDF_DatasetTutorial.cpp.

§ generateToys()

void PDF_DatasetTutorial::generateToys ( int  SeedShift = 0)
overridevirtual

Reimplemented from PDF_Datasets.

Definition at line 48 of file PDF_DatasetTutorial.cpp.

Member Data Documentation

§ drawFitsDebug

bool PDF_DatasetTutorial::drawFitsDebug
private

Definition at line 16 of file PDF_DatasetTutorial.h.


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