Logo ROOT  
Reference Guide
RooStats::DetailedOutputAggregator Class Reference

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

Definition at line 24 of file DetailedOutputAggregator.h.

Public Member Functions

 DetailedOutputAggregator ()
 
virtual ~DetailedOutputAggregator ()
 
void AppendArgSet (const RooAbsCollection *aset, TString prefix="")
 For each variable in aset, prepend prefix to its name and add to the internal store. More...
 
void CommitSet (double weight=1.0)
 Commit to the result RooDataSet. More...
 
const RooArgListGetAsArgList () const
 
RooDataSetGetAsDataSet (TString name, TString title)
 Returns all detailed output as a dataset. More...
 

Static Public Member Functions

static RooArgSetGetAsArgSet (RooFitResult *result, TString prefix="", bool withErrorsAndPulls=false)
 static function to translate the given fit result to a RooArgSet in a generic way. More...
 

Private Attributes

RooArgListfBuiltSet
 
RooDataSetfResult
 

#include <RooStats/DetailedOutputAggregator.h>

Constructor & Destructor Documentation

◆ DetailedOutputAggregator()

RooStats::DetailedOutputAggregator::DetailedOutputAggregator ( )
inline

Definition at line 34 of file DetailedOutputAggregator.h.

◆ ~DetailedOutputAggregator()

RooStats::DetailedOutputAggregator::~DetailedOutputAggregator ( )
virtual

Definition at line 38 of file DetailedOutputAggregator.cxx.

Member Function Documentation

◆ AppendArgSet()

void RooStats::DetailedOutputAggregator::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.

Definition at line 89 of file DetailedOutputAggregator.cxx.

◆ CommitSet()

void RooStats::DetailedOutputAggregator::CommitSet ( double  weight = 1.0)

Commit to the result RooDataSet.

Definition at line 129 of file DetailedOutputAggregator.cxx.

◆ GetAsArgList()

const RooArgList * RooStats::DetailedOutputAggregator::GetAsArgList ( ) const
inline

Definition at line 44 of file DetailedOutputAggregator.h.

◆ GetAsArgSet()

RooArgSet * RooStats::DetailedOutputAggregator::GetAsArgSet ( RooFitResult result,
TString  prefix = "",
bool  withErrorsAndPulls = false 
)
static

static function to translate the given fit result to a RooArgSet in a generic way.

Prefix is prepended to all variable names. LM: caller is responsible to delete the returned list and eventually also the content of the list Note that the returned list is not owning the returned content

Definition at line 50 of file DetailedOutputAggregator.cxx.

◆ GetAsDataSet()

RooDataSet * RooStats::DetailedOutputAggregator::GetAsDataSet ( TString  name,
TString  title 
)

Returns all detailed output as a dataset.

Ownership of the dataset is transferred to the caller.

Definition at line 152 of file DetailedOutputAggregator.cxx.

Member Data Documentation

◆ fBuiltSet

RooArgList* RooStats::DetailedOutputAggregator::fBuiltSet
private

Definition at line 61 of file DetailedOutputAggregator.h.

◆ fResult

RooDataSet* RooStats::DetailedOutputAggregator::fResult
private

Definition at line 60 of file DetailedOutputAggregator.h.

Libraries for RooStats::DetailedOutputAggregator:
[legend]

The documentation for this class was generated from the following files: