26std::unique_ptr<RooArgSet>
32 std::string
errMsg =
"RooAbsPdf::fitTo: GlobalObservables and GlobalObservablesTag options mutually exclusive!";
34 throw std::invalid_argument(
errMsg);
36 if (globalObservables) {
38 return std::make_unique<RooArgSet>(*globalObservables);
42 oocoutI(&pdf, Minimization) <<
"User-defined specification of global observables definition with tag named '"
49 oocoutI(&pdf, Minimization) <<
"p.d.f. provides built-in specification of global observables definition "
124 if (!
cPars.empty()) {
135 oocoutI(&pdf, Minimization) <<
" Including the following constraint terms in minimization: " <<
allConstraints
145 <<
"The following global observables have been automatically defined according to the dataset "
146 <<
"which also provides their values: " << *
data.getGlobalObservables() << std::endl;
147 glObs = std::make_unique<RooArgSet>(*
data.getGlobalObservables());
153 oocoutI(&pdf, Minimization) <<
"The following global observables have been defined: " << *
glObs <<
","
155 <<
" obtained from the dataset and the other values from the model."
160 <<
"The following global observables have been defined and their values are taken from the model: "
161 << *
glObs << std::endl;
167 <<
"The global observables are not defined , normalize constraints with respect to the parameters "
168 <<
cPars << std::endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
RooFit::OwningPtr< RooArgSet > getParameters(const RooAbsData *data, bool stripDisconnected=true) const
Create a list of leaf nodes in the arg tree starting with ourself as top node that don't match any of...
const Text_t * getStringAttribute(const Text_t *key) const
Get string attribute mapped under key 'key'.
RooFit::OwningPtr< RooArgSet > getVariables(bool stripDisconnected=true) const
Return RooArgSet with all variables (tree leaf nodes of expression tree)
Abstract base class for binned and unbinned datasets.
Abstract interface for all probability density functions.
RooArgSet * getAllConstraints(const RooArgSet &observables, RooArgSet &constrainedParams, bool stripDisconnected=true) const
This helper function finds and collects all constraints terms of all component p.d....
RooArgSet is a container object that can hold multiple RooAbsArg objects.
const char * GetName() const override
Returns name of object.
std::string getColonSeparatedNameString(RooArgSet const &argSet, char delim=':')