Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooAbsTestStatistic.h File Reference
#include "RooAbsReal.h"
#include "RooSetProxy.h"
#include "RooRealProxy.h"
#include "TStopwatch.h"
#include "Math/Util.h"
#include <string>
#include <vector>
Include dependency graph for RooAbsTestStatistic.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  RooAbsTestStatistic::Configuration
 
struct  Configuration
 
class  RooAbsTestStatistic
 Abstract base class for all test statistics. More...
 

Typedefs

typedef RooAbsDatapRooAbsData
 
typedef RooRealMPFEpRooRealMPFE
 

Enumerations

enum  GOFOpMode { SimMaster , MPMaster , Slave }
 

Functions

 ~RooAbsTestStatistic () override
 
static TClassClass ()
 
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 RooAbsTestStatisticcreate (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)
 
TClassIsA () 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 Documentation

◆ pRooAbsData

Definition at line 60 of file RooAbsTestStatistic.h.

◆ pRooRealMPFE

Definition at line 61 of file RooAbsTestStatistic.h.

Enumeration Type Documentation

◆ GOFOpMode

enum GOFOpMode
Enumerator
SimMaster 
MPMaster 
Slave 

Definition at line 40 of file RooAbsTestStatistic.h.

Function Documentation

◆ ~RooAbsTestStatistic()

R__DEPRECATED::~RooAbsTestStatistic ( )
override

◆ Class()

static TClass * R__DEPRECATED::Class ( )
static
Returns
TClass describing this class

Definition at line 29 of file Class.C.

◆ Class_Name()

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

◆ Class_Version()

static constexpr Version_t R__DEPRECATED::Class_Version ( )
staticconstexpr
Returns
Version of this class

Definition at line 124 of file RooAbsTestStatistic.h.

◆ combinedValue()

virtual double R__DEPRECATED::combinedValue ( RooAbsReal **  gofArray,
Int_t  nVal 
) const
pure virtual

◆ constOptimizeTestStatistic()

void R__DEPRECATED::constOptimizeTestStatistic ( ConstOpCode  opcode,
bool  doAlsoTrackingOpt = true 
)
override

◆ create()

virtual RooAbsTestStatistic * R__DEPRECATED::create ( const char *  name,
const char *  title,
RooAbsReal real,
RooAbsData data,
const RooArgSet projDeps,
Configuration const &  cfg 
)
pure virtual

◆ DeclFileName()

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

Definition at line 124 of file RooAbsTestStatistic.h.

◆ enableOffsetting()

void R__DEPRECATED::enableOffsetting ( bool  flag)
override

◆ evaluate()

double R__DEPRECATED::evaluate ( ) const
overrideprotected

◆ evaluatePartition()

virtual double R__DEPRECATED::evaluatePartition ( std::size_t  firstEvent,
std::size_t  lastEvent,
std::size_t  stepSize 
) const
protectedpure virtual

◆ getCarry()

virtual double R__DEPRECATED::getCarry ( ) const
protectedvirtual

◆ globalNormalization()

virtual double R__DEPRECATED::globalNormalization ( ) const
virtual

Definition at line 28 of file RooAbsTestStatistic.h.

◆ initialize()

bool R__DEPRECATED::initialize ( )
protected

◆ initMPMode()

void R__DEPRECATED::initMPMode ( RooAbsReal real,
RooAbsData data,
const RooArgSet projDeps,
std::string const &  rangeName,
std::string const &  addCoefRangeName 
)
protected

◆ initSimMode()

void R__DEPRECATED::initSimMode ( RooSimultaneous pdf,
RooAbsData data,
const RooArgSet projDeps,
std::string const &  rangeName,
std::string const &  addCoefRangeName 
)
protected

◆ IsA()

TClass * R__DEPRECATED::IsA ( ) const
override
Returns
TClass describing current object

Definition at line 124 of file RooAbsTestStatistic.h.

◆ isOffsetting()

bool R__DEPRECATED::isOffsetting ( ) const
override

Definition at line 36 of file RooAbsTestStatistic.h.

◆ numSets()

Int_t R__DEPRECATED::numSets ( ) const
protected

Definition at line 70 of file RooAbsTestStatistic.h.

◆ offset()

double R__DEPRECATED::offset ( ) const
override

Definition at line 37 of file RooAbsTestStatistic.h.

◆ offsetCarry()

virtual double R__DEPRECATED::offsetCarry ( ) const
virtual

Definition at line 38 of file RooAbsTestStatistic.h.

◆ operMode()

GOFOpMode R__DEPRECATED::operMode ( ) const

Definition at line 41 of file RooAbsTestStatistic.h.

◆ printCompactTreeHook()

void R__DEPRECATED::printCompactTreeHook ( std::ostream &  os,
const char *  indent = "" 
)
overrideprotected

◆ processEmptyDataSets()

virtual bool R__DEPRECATED::processEmptyDataSets ( ) const
protectedvirtual

Definition at line 97 of file RooAbsTestStatistic.h.

◆ R__DEPRECATED()

RooAbsTestStatistic RooAbsReal R__DEPRECATED ( ,
34  ,
"RooAbsTestStatistic is a RooFit implementation detail that should not be instantiated in user code."   
)

◆ redirectServersHook()

bool R__DEPRECATED::redirectServersHook ( const RooAbsCollection newServerList,
bool  mustReplaceAll,
bool  nameChange,
bool  isRecursive 
)
overrideprotected

◆ RooAbsTestStatistic() [1/2]

R__DEPRECATED::RooAbsTestStatistic ( const char *  name,
const char *  title,
RooAbsReal real,
RooAbsData data,
const RooArgSet projDeps,
Configuration const &  cfg 
)

◆ RooAbsTestStatistic() [2/2]

R__DEPRECATED::RooAbsTestStatistic ( const RooAbsTestStatistic other,
const char *  name = nullptr 
)

◆ runRecalculateCache()

virtual void R__DEPRECATED::runRecalculateCache ( std::size_t  firstEvent,
std::size_t  lastEvent,
std::size_t  stepSize 
) const
overrideprotectedvirtual

Definition at line 57 of file RooAbsTestStatistic.h.

◆ setData()

bool R__DEPRECATED::setData ( RooAbsData data,
bool  cloneData = true 
)
override

◆ setDataSlave()

virtual bool R__DEPRECATED::setDataSlave ( RooAbsData data,
bool  cloneData = true,
bool  ownNewDataAnyway = false 
)
overrideprotectedvirtual

Definition at line 92 of file RooAbsTestStatistic.h.

◆ setEventCount()

void R__DEPRECATED::setEventCount ( Int_t  nEvents)
protected

Definition at line 65 of file RooAbsTestStatistic.h.

◆ setMPSet()

void R__DEPRECATED::setMPSet ( Int_t  setNum,
Int_t  numSets 
)
protected

◆ setNum()

Int_t R__DEPRECATED::setNum ( ) const
protected

Definition at line 74 of file RooAbsTestStatistic.h.

◆ setSimCount()

void R__DEPRECATED::setSimCount ( Int_t  simCount)
protected

Definition at line 60 of file RooAbsTestStatistic.h.

◆ Streamer()

void R__DEPRECATED::Streamer ( TBuffer )
override

◆ StreamerNVirtual()

void R__DEPRECATED::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)

Definition at line 124 of file RooAbsTestStatistic.h.

Variable Documentation

◆ _addCoefRangeName

std::string _addCoefRangeName
protected

Name of reference to be used for RooAddPdf components.

Definition at line 87 of file RooAbsTestStatistic.h.

◆ _data

RooAbsData* _data = nullptr
protected

Pointer to original input dataset.

Definition at line 84 of file RooAbsTestStatistic.h.

◆ _doOffset

bool _doOffset = false
protected

Apply interval value offset to control numeric precision?

Definition at line 119 of file RooAbsTestStatistic.h.

◆ _evalCarry

double _evalCarry = 0.0
mutableprotected

! carry of Kahan sum in evaluatePartition

Definition at line 122 of file RooAbsTestStatistic.h.

◆ _extSet

Int_t _extSet = 0
protected

! Number of designated set to calculated extended term

Definition at line 109 of file RooAbsTestStatistic.h.

◆ _func

RooAbsReal* _func = nullptr
protected

Pointer to original input function.

Definition at line 83 of file RooAbsTestStatistic.h.

◆ _gofArray

std::vector<std::unique_ptr<RooAbsTestStatistic> > _gofArray
protected

! Array of sub-contexts representing part of the combined test statistic

Definition at line 112 of file RooAbsTestStatistic.h.

◆ _gofOpMode

GOFOpMode _gofOpMode = Slave
protected

Operation mode of test statistic instance.

Definition at line 104 of file RooAbsTestStatistic.h.

◆ _init

bool _init = false
mutableprotected

! Is object initialized

Definition at line 103 of file RooAbsTestStatistic.h.

◆ _mpfeArray

pRooRealMPFE* _mpfeArray = nullptr
protected

! Array of parallel execution frond ends

Definition at line 116 of file RooAbsTestStatistic.h.

◆ _mpinterl

RooFit::MPSplit _mpinterl = RooFit::BulkPartition
protected

Use interleaving strategy rather than N-wise split for partitioning of dataset for multiprocessor-split.

Definition at line 118 of file RooAbsTestStatistic.h.

◆ _nCPU

Int_t _nCPU = 1
protected

Number of processors to use in parallel calculation mode.

Definition at line 115 of file RooAbsTestStatistic.h.

◆ _nEvents

Int_t _nEvents = 0
protected

Total number of events in test statistic calculation.

Definition at line 106 of file RooAbsTestStatistic.h.

◆ _numSets

Int_t _numSets = 1
protected

Total number of partitions in parallel calculation mode.

Definition at line 108 of file RooAbsTestStatistic.h.

◆ _offset

ROOT::Math::KahanSum<double> _offset {0.0}
mutableprotected

! Offset as KahanSum to avoid loss of precision

Definition at line 121 of file RooAbsTestStatistic.h.

◆ _paramSet

RooSetProxy _paramSet
protected

Parameters of the test statistic (=parameters of the input function)

Definition at line 79 of file RooAbsTestStatistic.h.

◆ _projDeps

const RooArgSet* _projDeps = nullptr
protected

Pointer to set with projected observables.

Definition at line 85 of file RooAbsTestStatistic.h.

◆ _rangeName

std::string _rangeName
protected

Name of range in which to calculate test statistic.

Definition at line 86 of file RooAbsTestStatistic.h.

◆ _setNum

Int_t _setNum = 0
protected

Partition number of this instance in parallel calculation mode.

Definition at line 107 of file RooAbsTestStatistic.h.

◆ _simCount

Int_t _simCount = 1
protected

Total number of component p.d.f.s in RooSimultaneous (if any)

Definition at line 89 of file RooAbsTestStatistic.h.

◆ _splitRange

bool _splitRange = false
protected

Split rangeName in RooSimultaneous index labels if true.

Definition at line 88 of file RooAbsTestStatistic.h.

◆ _takeGlobalObservablesFromData

const bool _takeGlobalObservablesFromData = false
protected

If the global observable values are taken from data.

Definition at line 120 of file RooAbsTestStatistic.h.

◆ _verbose

bool _verbose = false
protected

Verbose messaging if true.

Definition at line 90 of file RooAbsTestStatistic.h.