ROOT logo
ROOT » ROOFIT » ROOSTATS » RooStats::DetailedOutputAggregator

class RooStats::DetailedOutputAggregator



This class is designed to aid in the construction of RooDataSets and RooArgSets, particularly those naturally arising in fitting operations. Typically, the usage of this class is as follows:

  1. create DetailedOutputAggregator instance
  2. use AppendArgSet to add value sets to be stored as one row of the dataset
  3. call CommitSet when an entire row's worth of values has been added
  4. repeat steps 2 and 3 until all rows have been added
  5. call GetAsDataSet to extract result RooDataSet



Function Members (Methods)

Data Members

private:
RooArgList*fBuiltSet
RooDataSet*fResult

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

RooArgSet * GetAsArgSet(RooFitResult* result, TString prefix = "", bool withErrorsAndPulls = false)
 Translate the given fit result to a RooArgSet in a generic way.
 Prefix is prepended to all variable names.
 Note that the returned set is managed by the user and the user must
 explicitly delete all the set content (the returned set does not own the content)
DetailedOutputAggregator()
void AppendArgSet(const RooAbsCollection* aset, TString prefix = "")
 For each variable in aset, prepend prefix to its name and add
 to the internal store. Note this will not appear in the produced
 dataset unless CommitSet is called.
const RooArgList* GetAsArgList() const
 Returns this set of detailed output.
 Note that the ownership of the returned list is not transfered
 It is managed by the DetailedOutputAggregator class
void CommitSet(double weight = 1.0)
 Commit to the result RooDataSet.
RooDataSet * GetAsDataSet(TString name, TString title)
virtual ~DetailedOutputAggregator()