Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
DetailedOutputAggregator.h
Go to the documentation of this file.
1// @(#)root/roostats:$Id$
2// Author: Sven Kreiss, Kyle Cranmer Nov 2010
3/*************************************************************************
4 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOSTATS_DetailedOutputAggregator
12#define ROOSTATS_DetailedOutputAggregator
13
14#include "TString.h"
15
17class RooFitResult;
18class RooDataSet;
19class RooArgList;
20class RooArgSet;
21
22namespace RooStats {
23
25
26 public:
27
28 /// Translate the given fit result to a RooArgSet in a generic way.
29 /// Prefix is prepended to all variable names.
30 /// Note that the returned set is managed by the user and the user must
31 /// explicitly delete all the set content (the returned set does not own the content)
32 static RooArgSet *GetAsArgSet(RooFitResult *result, TString prefix="", bool withErrorsAndPulls=false);
33
34 /// For each variable in aset, prepend prefix to its name and add
35 /// to the internal store. Note this will not appear in the produced
36 /// dataset unless CommitSet is called.
37 void AppendArgSet(const RooAbsCollection *aset, TString prefix="");
38
39 const RooArgList* GetAsArgList() const {
40 // Returns this set of detailed output.
41 // Note that the ownership of the returned list is not transferred
42 // It is managed by the DetailedOutputAggregator class
43 return fBuiltSet;
44 }
45
46 /// Commit to the result RooDataSet.
47 void CommitSet(double weight=1.0);
48
50
52
53 private:
54
55 RooDataSet *fResult = nullptr;
57
59 };
60}
61
62#endif
#define ClassDef(name, id)
Definition Rtypes.h:337
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
char name[80]
Definition TGX11.cxx:110
Abstract container object that can hold multiple RooAbsArg objects.
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition RooArgList.h:22
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
Container class to hold unbinned data.
Definition RooDataSet.h:57
RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
This class is designed to aid in the construction of RooDataSets and RooArgSets, particularly those n...
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.
static RooArgSet * GetAsArgSet(RooFitResult *result, TString prefix="", bool withErrorsAndPulls=false)
Translate the given fit result to a RooArgSet in a generic way.
Basic string class.
Definition TString.h:139
Namespace for the RooStats classes.
Definition Asimov.h:19