/usr/include/root/RooStats/DetailedOutputAggregator.h is in libroot-roofit-dev 5.34.00-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | // @(#)root/roostats:$Id: DetailedOutputAggregator.h 37084 2010-11-29 21:37:13Z moneta $
// Author: Sven Kreiss, Kyle Cranmer Nov 2010
/*************************************************************************
* Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOSTATS_DetailedOutputAggregator
#define ROOSTATS_DetailedOutputAggregator
//_________________________________________________
/*
BEGIN_HTML
<p>
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:
<ol>
<li> create DetailedOutputAggregator instance </li>
<li> use AppendArgSet to add value sets to be stored as one row of the dataset </li>
<li> call CommitSet when an entire row's worth of values has been added </li>
<li> repeat steps 2 and 3 until all rows have been added </li>
<li> call GetAsDataSet to extract result RooDataSet </li>
</ol>
</p>
END_HTML
*/
//
class RooAbsCollection;
class RooFitResult;
class RooDataSet;
class RooArgList;
namespace RooStats {
class DetailedOutputAggregator {
public:
// Translate the given fit result to a RooArgSet in a generic way.
// Prefix is prepended to all variable names.
static RooArgSet *GetAsArgSet(RooFitResult *result, TString prefix="", bool withErrorsAndPulls=false);
DetailedOutputAggregator() {
fResult = NULL;
fBuiltSet = NULL;
}
// 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.
void AppendArgSet(const RooAbsCollection *aset, TString prefix="");
const RooArgList* GetAsArgList() const {
// Returns this set of detailed output.
return fBuiltSet;
}
// Commit to the result RooDataSet.
void CommitSet(double weight=1.0);
RooDataSet *GetAsDataSet(TString name, TString title);
virtual ~DetailedOutputAggregator();
private:
RooDataSet *fResult;
RooArgList *fBuiltSet;
protected:
ClassDef(DetailedOutputAggregator,1)
};
}
#endif
|