85 if (fCluesPdf ==
NULL)
87 if (fCluesPdf !=
NULL) {
90 printf(
"added clues from dataset %s with fraction %g\n",
91 fClues->GetName(), fCluesFrac);
92 components->
add(*fCluesPdf);
97 components->
add(*fUniformPdf);
100 components->
add(*fPdf);
102 *components, *coeffs);
103 fPdfProp->SetPdf(*addPdf);
104 fPdfProp->SetOwnsPdf(
kTRUE);
106 fPdfProp->SetCacheSize(fCacheSize);
120 "Variables to create proposal function for are not set." << endl;
134 fPdfProp->AddMapping(*clone, *r);
136 if (fCovMatrix ==
NULL)
137 CreateCovMatrix(*xVec);
152 for (
Int_t i = 0; i < size; i++) {
155 (*fCovMatrix)(i,i) = range / fSigmaRangeDivisor;
163 if (fClues !=
NULL) {
164 if (fCluesOptions ==
NULL)
165 fCluesPdf =
new RooNDKeysPdf(
"cluesPdf",
"Clues PDF", *fVars, *fClues);
167 fCluesPdf =
new RooNDKeysPdf(
"cluesPdf",
"Clues PDF", *fVars, *fClues,
176 fUniformPdf =
new RooUniform(
"uniform",
"Uniform Proposal PDF",
virtual Double_t getMin(const char *name=0) const
virtual const char * GetName() const
Returns name of object.
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
ProposalFunction is an interface for all proposal functions that would be used with a Markov Chain Mo...
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
virtual Double_t getMax(const char *name=0) const
virtual TObject * clone(const char *newname) const
static const Double_t DEFAULT_CLUES_FRAC
virtual ProposalFunction * GetProposalFunction()
Iterator abstract base class.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
RooRealVar represents a fundamental (non-derived) real valued object.
RooAbsArg * at(Int_t idx) const
static const Double_t SIGMA_RANGE_DIVISOR
Generic N-dimensional implementation of a kernel estimation p.d.f.
Multivariate Gaussian p.d.f.
Namespace for the RooStats classes.
TMatrixTSym< Double_t > TMatrixDSym
PdfProposal is a concrete implementation of the ProposalFunction interface.
RooConstVar & RooConst(Double_t val)
virtual TObject * Next()=0
void CreateCovMatrix(RooArgList &xVec)