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...
 
virtual TClassIsA () const
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static RooArgSetGetAsArgSet (RooFitResult *result, TString prefix="", bool withErrorsAndPulls=false)
 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 88 of file DetailedOutputAggregator.cxx.

◆ Class()

static TClass * RooStats::DetailedOutputAggregator::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * RooStats::DetailedOutputAggregator::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static Version_t RooStats::DetailedOutputAggregator::Class_Version ( )
inlinestatic
Returns
Version of this class

Definition at line 64 of file DetailedOutputAggregator.h.

◆ CommitSet()

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

Commit to the result RooDataSet.

Definition at line 127 of file DetailedOutputAggregator.cxx.

◆ DeclFileName()

static const char * RooStats::DetailedOutputAggregator::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 64 of file DetailedOutputAggregator.h.

◆ 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

Translate the given fit result to a RooArgSet in a generic way.

static function to 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)

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 149 of file DetailedOutputAggregator.cxx.

◆ IsA()

virtual TClass * RooStats::DetailedOutputAggregator::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 64 of file DetailedOutputAggregator.h.

◆ Streamer()

virtual void RooStats::DetailedOutputAggregator::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void RooStats::DetailedOutputAggregator::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 64 of file DetailedOutputAggregator.h.

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: