23 #ifndef RooStats_ProposalHelper 26 #ifndef ROOSTATS_PdfProposal 29 #ifndef RooStats_RooStatsUtils 50 #ifndef ROO_MSG_SERVICE 56 #ifndef ROOT_TIterator 59 #ifndef ROO_MULTI_VAR_GAUSSIAN 84 ProposalHelper::ProposalHelper()
102 fCluesOptions =
NULL;
113 if (fCluesPdf ==
NULL)
115 if (fCluesPdf !=
NULL) {
118 printf(
"added clues from dataset %s with fraction %g\n",
119 fClues->GetName(), fCluesFrac);
120 components->
add(*fCluesPdf);
125 components->
add(*fUniformPdf);
128 components->
add(*fPdf);
130 *components, *coeffs);
131 fPdfProp->SetPdf(*addPdf);
132 fPdfProp->SetOwnsPdf(
kTRUE);
134 fPdfProp->SetCacheSize(fCacheSize);
139 void ProposalHelper::CreatePdf()
146 "Variables to create proposal function for are not set." << endl;
160 fPdfProp->AddMapping(*clone, *r);
162 if (fCovMatrix ==
NULL)
163 CreateCovMatrix(*xVec);
176 for (
Int_t i = 0; i < size; i++) {
179 (*fCovMatrix)(i,i) = range / fSigmaRangeDivisor;
183 void ProposalHelper::CreateCluesPdf()
185 if (fClues !=
NULL) {
186 if (fCluesOptions ==
NULL)
187 fCluesPdf =
new RooNDKeysPdf(
"cluesPdf",
"Clues PDF", *fVars, *fClues);
189 fCluesPdf =
new RooNDKeysPdf(
"cluesPdf",
"Clues PDF", *fVars, *fClues,
194 void ProposalHelper::CreateUniformPdf()
196 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.
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
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...
RooAbsArg * at(Int_t idx) const
static const Double_t SIGMA_RANGE_DIVISOR
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
const char * Data() const