60 if (var)
clone->setAttribute(
"StoreError");
63 if( withErrorsAndPulls && var ) {
64 clone->setAttribute(
"StoreAsymError");
69 RooPullVar pulltemp(
"temppull",
"temppull", *var, *truth);
71 detailedOutput->
add(*pull);
79 detailedOutput->
add( *
new RooRealVar(
TString().Append(prefix).Append(
"numInvalidNLLEval"),
TString().Append(prefix).Append(
"numInvalidNLLEval"),
result->numInvalidNLL() ) );
80 return detailedOutput;
90 if (aset ==
nullptr) {
102 std::unique_ptr<RooAbsArg> var{
v->createFundamental()};
103 assert(var !=
nullptr);
105 var->SetName(renamed);
107 if (
v->getAttribute(
"StoreError")) var->setAttribute(
"StoreError");
108 else rvar->removeError();
109 if (
v->getAttribute(
"StoreAsymError")) var->setAttribute(
"StoreAsymError");
110 else rvar->removeAsymError();
116 var->SetName(
v->GetName());
118 var->SetName(renamed);
137 var->setVal(std::numeric_limits<double>::quiet_NaN());
139 var->removeAsymError();
TObject * clone(const char *newname) const override
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
Common abstract base class for objects that represent a value and a "shape" in RooFit.
Abstract container object that can hold multiple RooAbsArg objects.
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
void assign(const RooAbsCollection &other) const
Sets the value, cache and constant attribute of any argument in our set that also appears in the othe...
virtual bool addOwned(RooAbsArg &var, bool silent=false)
Add an argument and transfer the ownership to the collection.
RooAbsArg * find(const char *name) const
Find object with given name in list.
double getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Container class to hold unbinned data.
void SetNameTitle(const char *name, const char *title) override
Change the title of this dataset into the given name.
void add(const RooArgSet &row, double weight, double weightError)
Add one ore more rows of data.
RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
Represents the pull of a measurement w.r.t.
Variable that can be changed from the outside.
void AppendArgSet(const RooAbsCollection *aset, TString prefix="")
For each variable in aset, prepend prefix to its name and add to the internal store.
RooDataSet * GetAsDataSet(TString name, TString title)
Returns all detailed output as a dataset.
void CommitSet(double weight=1.0)
Commit to the result RooDataSet.
virtual ~DetailedOutputAggregator()
static RooArgSet * GetAsArgSet(RooFitResult *result, TString prefix="", bool withErrorsAndPulls=false)
Translate the given fit result to a RooArgSet in a generic way.
const char * GetName() const override
Returns name of object.
const char * Data() const
TString & Append(const char *cs)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
RooCmdArg WeightVar(const char *name="weight", bool reinterpretAsWeight=false)
Namespace for the RooStats classes.