#include "RooAbsReal.h"
#include "RooSetProxy.h"
#include "RooRealProxy.h"
#include "TStopwatch.h"
#include "Math/Util.h"
#include <string>
#include <vector>
Classes | |
struct | RooAbsTestStatistic::Configuration |
struct | Configuration |
class | RooAbsTestStatistic |
Abstract base class for all test statistics. More... | |
Typedefs | |
typedef RooAbsData * | pRooAbsData |
typedef RooRealMPFE * | pRooRealMPFE |
Enumerations | |
enum | GOFOpMode { SimMaster , MPMaster , Slave } |
Functions | |
~RooAbsTestStatistic () override | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
virtual double | combinedValue (RooAbsReal **gofArray, Int_t nVal) const =0 |
void | constOptimizeTestStatistic (ConstOpCode opcode, bool doAlsoTrackingOpt=true) override |
virtual RooAbsTestStatistic * | create (const char *name, const char *title, RooAbsReal &real, RooAbsData &data, const RooArgSet &projDeps, Configuration const &cfg)=0 |
static const char * | DeclFileName () |
void | enableOffsetting (bool flag) override |
double | evaluate () const override |
virtual double | evaluatePartition (std::size_t firstEvent, std::size_t lastEvent, std::size_t stepSize) const =0 |
virtual double | getCarry () const |
virtual double | globalNormalization () const |
bool | initialize () |
void | initMPMode (RooAbsReal *real, RooAbsData *data, const RooArgSet *projDeps, std::string const &rangeName, std::string const &addCoefRangeName) |
void | initSimMode (RooSimultaneous *pdf, RooAbsData *data, const RooArgSet *projDeps, std::string const &rangeName, std::string const &addCoefRangeName) |
TClass * | IsA () const override |
bool | isOffsetting () const override |
Int_t | numSets () const |
double | offset () const override |
virtual double | offsetCarry () const |
GOFOpMode | operMode () const |
void | printCompactTreeHook (std::ostream &os, const char *indent="") override |
virtual bool | processEmptyDataSets () const |
RooAbsTestStatistic RooAbsReal | R__DEPRECATED (6, 34, "RooAbsTestStatistic is a RooFit implementation detail that should not be instantiated in user code.") |
bool | redirectServersHook (const RooAbsCollection &newServerList, bool mustReplaceAll, bool nameChange, bool isRecursive) override |
RooAbsTestStatistic (const char *name, const char *title, RooAbsReal &real, RooAbsData &data, const RooArgSet &projDeps, Configuration const &cfg) | |
RooAbsTestStatistic (const RooAbsTestStatistic &other, const char *name=nullptr) | |
virtual void | runRecalculateCache (std::size_t, std::size_t, std::size_t) const |
bool | setData (RooAbsData &data, bool cloneData=true) override |
virtual bool | setDataSlave (RooAbsData &, bool=true, bool=false) |
void | setEventCount (Int_t nEvents) |
void | setMPSet (Int_t setNum, Int_t numSets) |
Int_t | setNum () const |
void | setSimCount (Int_t simCount) |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Variables | |
std::string | _addCoefRangeName |
Name of reference to be used for RooAddPdf components. | |
RooAbsData * | _data = nullptr |
Pointer to original input dataset. | |
bool | _doOffset = false |
Apply interval value offset to control numeric precision? | |
double | _evalCarry = 0.0 |
! carry of Kahan sum in evaluatePartition | |
Int_t | _extSet = 0 |
! Number of designated set to calculated extended term | |
RooAbsReal * | _func = nullptr |
Pointer to original input function. | |
std::vector< std::unique_ptr< RooAbsTestStatistic > > | _gofArray |
! Array of sub-contexts representing part of the combined test statistic | |
GOFOpMode | _gofOpMode = Slave |
Operation mode of test statistic instance. | |
bool | _init = false |
! Is object initialized | |
pRooRealMPFE * | _mpfeArray = nullptr |
! Array of parallel execution frond ends | |
RooFit::MPSplit | _mpinterl = RooFit::BulkPartition |
Use interleaving strategy rather than N-wise split for partitioning of dataset for multiprocessor-split. | |
Int_t | _nCPU = 1 |
Number of processors to use in parallel calculation mode. | |
Int_t | _nEvents = 0 |
Total number of events in test statistic calculation. | |
Int_t | _numSets = 1 |
Total number of partitions in parallel calculation mode. | |
ROOT::Math::KahanSum< double > | _offset {0.0} |
! Offset as KahanSum to avoid loss of precision | |
RooSetProxy | _paramSet |
Parameters of the test statistic (=parameters of the input function) | |
const RooArgSet * | _projDeps = nullptr |
Pointer to set with projected observables. | |
std::string | _rangeName |
Name of range in which to calculate test statistic. | |
Int_t | _setNum = 0 |
Partition number of this instance in parallel calculation mode. | |
Int_t | _simCount = 1 |
Total number of component p.d.f.s in RooSimultaneous (if any) | |
bool | _splitRange = false |
Split rangeName in RooSimultaneous index labels if true. | |
const bool | _takeGlobalObservablesFromData = false |
If the global observable values are taken from data. | |
bool | _verbose = false |
Verbose messaging if true. | |
typedef RooAbsData* pRooAbsData |
Definition at line 60 of file RooAbsTestStatistic.h.
typedef RooRealMPFE* pRooRealMPFE |
Definition at line 61 of file RooAbsTestStatistic.h.
enum GOFOpMode |
Enumerator | |
---|---|
SimMaster | |
MPMaster | |
Slave |
Definition at line 40 of file RooAbsTestStatistic.h.
|
override |
|
static |
|
static |
|
staticconstexpr |
Definition at line 124 of file RooAbsTestStatistic.h.
|
pure virtual |
|
override |
|
pure virtual |
|
static |
Definition at line 124 of file RooAbsTestStatistic.h.
|
override |
|
overrideprotected |
|
protectedpure virtual |
|
protectedvirtual |
|
virtual |
Definition at line 28 of file RooAbsTestStatistic.h.
|
protected |
|
protected |
|
protected |
|
override |
Definition at line 124 of file RooAbsTestStatistic.h.
|
override |
Definition at line 36 of file RooAbsTestStatistic.h.
|
protected |
Definition at line 70 of file RooAbsTestStatistic.h.
|
override |
Definition at line 37 of file RooAbsTestStatistic.h.
|
virtual |
Definition at line 38 of file RooAbsTestStatistic.h.
GOFOpMode R__DEPRECATED::operMode | ( | ) | const |
Definition at line 41 of file RooAbsTestStatistic.h.
|
overrideprotected |
|
protectedvirtual |
Definition at line 97 of file RooAbsTestStatistic.h.
RooAbsTestStatistic RooAbsReal R__DEPRECATED | ( | 6 | , |
34 | , | ||
"RooAbsTestStatistic is a RooFit implementation detail that should not be instantiated in user code." | |||
) |
|
overrideprotected |
R__DEPRECATED::RooAbsTestStatistic | ( | const char * | name, |
const char * | title, | ||
RooAbsReal & | real, | ||
RooAbsData & | data, | ||
const RooArgSet & | projDeps, | ||
Configuration const & | cfg | ||
) |
R__DEPRECATED::RooAbsTestStatistic | ( | const RooAbsTestStatistic & | other, |
const char * | name = nullptr |
||
) |
|
overrideprotectedvirtual |
Definition at line 57 of file RooAbsTestStatistic.h.
|
override |
|
overrideprotectedvirtual |
Definition at line 92 of file RooAbsTestStatistic.h.
|
protected |
Definition at line 65 of file RooAbsTestStatistic.h.
|
protected |
Definition at line 74 of file RooAbsTestStatistic.h.
|
protected |
Definition at line 60 of file RooAbsTestStatistic.h.
|
override |
void R__DEPRECATED::StreamerNVirtual | ( | TBuffer & | ClassDef_StreamerNVirtual_b | ) |
Definition at line 124 of file RooAbsTestStatistic.h.
|
protected |
Name of reference to be used for RooAddPdf components.
Definition at line 87 of file RooAbsTestStatistic.h.
|
protected |
Pointer to original input dataset.
Definition at line 84 of file RooAbsTestStatistic.h.
|
protected |
Apply interval value offset to control numeric precision?
Definition at line 119 of file RooAbsTestStatistic.h.
|
mutableprotected |
! carry of Kahan sum in evaluatePartition
Definition at line 122 of file RooAbsTestStatistic.h.
|
protected |
! Number of designated set to calculated extended term
Definition at line 109 of file RooAbsTestStatistic.h.
|
protected |
Pointer to original input function.
Definition at line 83 of file RooAbsTestStatistic.h.
|
protected |
! Array of sub-contexts representing part of the combined test statistic
Definition at line 112 of file RooAbsTestStatistic.h.
Operation mode of test statistic instance.
Definition at line 104 of file RooAbsTestStatistic.h.
|
mutableprotected |
! Is object initialized
Definition at line 103 of file RooAbsTestStatistic.h.
|
protected |
! Array of parallel execution frond ends
Definition at line 116 of file RooAbsTestStatistic.h.
|
protected |
Use interleaving strategy rather than N-wise split for partitioning of dataset for multiprocessor-split.
Definition at line 118 of file RooAbsTestStatistic.h.
|
protected |
Number of processors to use in parallel calculation mode.
Definition at line 115 of file RooAbsTestStatistic.h.
|
protected |
Total number of events in test statistic calculation.
Definition at line 106 of file RooAbsTestStatistic.h.
|
protected |
Total number of partitions in parallel calculation mode.
Definition at line 108 of file RooAbsTestStatistic.h.
|
mutableprotected |
! Offset as KahanSum to avoid loss of precision
Definition at line 121 of file RooAbsTestStatistic.h.
|
protected |
Parameters of the test statistic (=parameters of the input function)
Definition at line 79 of file RooAbsTestStatistic.h.
|
protected |
Pointer to set with projected observables.
Definition at line 85 of file RooAbsTestStatistic.h.
|
protected |
Name of range in which to calculate test statistic.
Definition at line 86 of file RooAbsTestStatistic.h.
|
protected |
Partition number of this instance in parallel calculation mode.
Definition at line 107 of file RooAbsTestStatistic.h.
|
protected |
Total number of component p.d.f.s in RooSimultaneous (if any)
Definition at line 89 of file RooAbsTestStatistic.h.
|
protected |
Split rangeName in RooSimultaneous index labels if true.
Definition at line 88 of file RooAbsTestStatistic.h.
|
protected |
If the global observable values are taken from data.
Definition at line 120 of file RooAbsTestStatistic.h.
|
protected |
Verbose messaging if true.
Definition at line 90 of file RooAbsTestStatistic.h.