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
35 fResult = nullptr;
36 fBuiltSet = nullptr;
37 }
38
39 /// For each variable in aset, prepend prefix to its name and add
40 /// to the internal store. Note this will not appear in the produced
41 /// dataset unless CommitSet is called.
42 void AppendArgSet(const RooAbsCollection *aset, TString prefix="");
43
44 const RooArgList* GetAsArgList() const {
45 // Returns this set of detailed output.
46 // Note that the ownership of the returned list is not transferred
47 // It is managed by the DetailedOutputAggregator class
48 return fBuiltSet;
49 }
50
51 /// Commit to the result RooDataSet.
52 void CommitSet(double weight=1.0);
53
55
57
58 private:
59
62
63 protected:
65 };
66}
67
68#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
RooDataSet is a 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