#include <RooAbsTestStatistic.h>
Inheritance diagram for RooAbsTestStatistic:
Public Member Functions | |
RooAbsTestStatistic () | |
RooAbsTestStatistic (const char *name, const char *title, RooAbsReal &real, RooAbsData &data, const RooArgSet &projDeps, const char *rangeName=0, const char *addCoefRangeName=0, Int_t nCPU=1, Bool_t interleave=kFALSE, Bool_t verbose=kTRUE, Bool_t splitCutRange=kTRUE) | |
RooAbsTestStatistic (const RooAbsTestStatistic &other, const char *name=0) | |
virtual | ~RooAbsTestStatistic () |
virtual RooAbsTestStatistic * | create (const char *name, const char *title, RooAbsReal &real, RooAbsData &data, const RooArgSet &projDeps, const char *rangeName=0, const char *addCoefRangeName=0, Int_t nCPU=1, Bool_t interleave=kFALSE, Bool_t verbose=kTRUE, Bool_t splitCutRange=kFALSE)=0 |
virtual void | constOptimizeTestStatistic (ConstOpCode opcode) |
virtual Double_t | combinedValue (RooAbsReal **gofArray, Int_t nVal) const=0 |
virtual Double_t | globalNormalization () const |
RooAbsTestStatistic () | |
RooAbsTestStatistic (const char *name, const char *title, RooAbsReal &real, RooAbsData &data, const RooArgSet &projDeps, const char *rangeName=0, const char *addCoefRangeName=0, Int_t nCPU=1, Bool_t interleave=kFALSE, Bool_t verbose=kTRUE, Bool_t splitCutRange=kTRUE) | |
RooAbsTestStatistic (const RooAbsTestStatistic &other, const char *name=0) | |
virtual | ~RooAbsTestStatistic () |
virtual RooAbsTestStatistic * | create (const char *name, const char *title, RooAbsReal &real, RooAbsData &data, const RooArgSet &projDeps, const char *rangeName=0, const char *addCoefRangeName=0, Int_t nCPU=1, Bool_t interleave=kFALSE, Bool_t verbose=kTRUE, Bool_t splitCutRange=kFALSE)=0 |
virtual void | constOptimizeTestStatistic (ConstOpCode opcode) |
virtual Double_t | combinedValue (RooAbsReal **gofArray, Int_t nVal) const=0 |
virtual Double_t | globalNormalization () const |
Protected Types | |
enum | GOFOpMode |
enum | GOFOpMode |
Protected Member Functions | |
virtual void | printCompactTreeHook (ostream &os, const char *indent="") |
virtual Bool_t | redirectServersHook (const RooAbsCollection &newServerList, Bool_t mustReplaceAll, Bool_t nameChange, Bool_t isRecursive) |
virtual Double_t | evaluate () const |
virtual Double_t | evaluatePartition (Int_t firstEvent, Int_t lastEvent, Int_t stepSize) const=0 |
void | setMPSet (Int_t setNum, Int_t numSets) |
void | setSimCount (Int_t simCount) |
void | setEventCount (Int_t nEvents) |
Int_t | numSets () const |
Int_t | setNum () const |
GOFOpMode | operMode () const |
virtual void | printCompactTreeHook (ostream &os, const char *indent="") |
virtual Bool_t | redirectServersHook (const RooAbsCollection &newServerList, Bool_t mustReplaceAll, Bool_t nameChange, Bool_t isRecursive) |
virtual Double_t | evaluate () const |
virtual Double_t | evaluatePartition (Int_t firstEvent, Int_t lastEvent, Int_t stepSize) const=0 |
void | setMPSet (Int_t setNum, Int_t numSets) |
void | setSimCount (Int_t simCount) |
void | setEventCount (Int_t nEvents) |
Int_t | numSets () const |
Int_t | setNum () const |
GOFOpMode | operMode () const |
Protected Attributes | |
RooSetProxy | _paramSet |
RooAbsReal * | _func |
RooAbsData * | _data |
const RooArgSet * | _projDeps |
std::string | _rangeName |
std::string | _addCoefRangeName |
Bool_t | _splitRange |
Int_t | _simCount |
Bool_t | _verbose |
RooAbsReal * | _func |
RooAbsData * | _data |
const RooArgSet * | _projDeps |
Private Member Functions | |
virtual Bool_t | processEmptyDataSets () const |
Bool_t | initialize () |
void | initSimMode (RooSimultaneous *pdf, RooAbsData *data, const RooArgSet *projDeps, const char *rangeName, const char *addCoefRangeName) |
void | initMPMode (RooAbsReal *real, RooAbsData *data, const RooArgSet *projDeps, const char *rangeName, const char *addCoefRangeName) |
virtual Bool_t | processEmptyDataSets () const |
Bool_t | initialize () |
void | initSimMode (RooSimultaneous *pdf, RooAbsData *data, const RooArgSet *projDeps, const char *rangeName, const char *addCoefRangeName) |
void | initMPMode (RooAbsReal *real, RooAbsData *data, const RooArgSet *projDeps, const char *rangeName, const char *addCoefRangeName) |
Private Attributes | |
Bool_t | _init |
GOFOpMode | _gofOpMode |
Is object initialized. | |
Int_t | _nEvents |
Int_t | _setNum |
Int_t | _numSets |
Int_t | _nGof |
pRooAbsTestStatistic * | _gofArray |
Int_t | _nCPU |
Array of sub-contexts representing part of the combined test statistic. | |
pRooRealMPFE * | _mpfeArray |
Bool_t | _mpinterl |
Array of parallel execution frond ends. | |
pRooAbsTestStatistic * | _gofArray |
pRooRealMPFE * | _mpfeArray |
Definition at line 36 of file RooAbsTestStatistic.h.
enum RooAbsTestStatistic::GOFOpMode [protected] |
Definition at line 89 of file RooAbsTestStatistic.h.
enum RooAbsTestStatistic::GOFOpMode [protected] |
Definition at line 89 of file RooAbsTestStatistic.h.
RooAbsTestStatistic::RooAbsTestStatistic | ( | ) |
Definition at line 58 of file RooAbsTestStatistic.cxx.
References _data, _func, _gofArray, _init, _mpfeArray, _projDeps, and kFALSE.
RooAbsTestStatistic::RooAbsTestStatistic | ( | const char * | name, | |
const char * | title, | |||
RooAbsReal & | real, | |||
RooAbsData & | data, | |||
const RooArgSet & | projDeps, | |||
const char * | rangeName = 0 , |
|||
const char * | addCoefRangeName = 0 , |
|||
Int_t | nCPU = 1 , |
|||
Bool_t | interleave = kFALSE , |
|||
Bool_t | verbose = kTRUE , |
|||
Bool_t | splitCutRange = kTRUE | |||
) |
Definition at line 73 of file RooAbsTestStatistic.cxx.
References _gofOpMode, _init, _nCPU, _nEvents, _numSets, _paramSet, _setNum, RooSetProxy::add(), data, RooAbsArg::getParameters(), kFALSE, kTRUE, MPMaster, params, SimMaster, and Slave.
RooAbsTestStatistic::RooAbsTestStatistic | ( | const RooAbsTestStatistic & | other, | |
const char * | name = 0 | |||
) |
Definition at line 136 of file RooAbsTestStatistic.cxx.
References _data, _func, _gofOpMode, _init, _nCPU, _nEvents, _numSets, _paramSet, _setNum, RooSetProxy::add(), kFALSE, kTRUE, MPMaster, RooAbsData::numEntries(), SimMaster, and Slave.
RooAbsTestStatistic::~RooAbsTestStatistic | ( | ) | [virtual] |
Definition at line 185 of file RooAbsTestStatistic.cxx.
References _gofArray, _gofOpMode, _init, _mpfeArray, _nCPU, _nGof, _projDeps, i, MPMaster, and SimMaster.
RooAbsTestStatistic::RooAbsTestStatistic | ( | ) |
RooAbsTestStatistic::RooAbsTestStatistic | ( | const char * | name, | |
const char * | title, | |||
RooAbsReal & | real, | |||
RooAbsData & | data, | |||
const RooArgSet & | projDeps, | |||
const char * | rangeName = 0 , |
|||
const char * | addCoefRangeName = 0 , |
|||
Int_t | nCPU = 1 , |
|||
Bool_t | interleave = kFALSE , |
|||
Bool_t | verbose = kTRUE , |
|||
Bool_t | splitCutRange = kTRUE | |||
) |
RooAbsTestStatistic::RooAbsTestStatistic | ( | const RooAbsTestStatistic & | other, | |
const char * | name = 0 | |||
) |
virtual RooAbsTestStatistic::~RooAbsTestStatistic | ( | ) | [virtual] |
virtual RooAbsTestStatistic* RooAbsTestStatistic::create | ( | const char * | name, | |
const char * | title, | |||
RooAbsReal & | real, | |||
RooAbsData & | data, | |||
const RooArgSet & | projDeps, | |||
const char * | rangeName = 0 , |
|||
const char * | addCoefRangeName = 0 , |
|||
Int_t | nCPU = 1 , |
|||
Bool_t | interleave = kFALSE , |
|||
Bool_t | verbose = kTRUE , |
|||
Bool_t | splitCutRange = kFALSE | |||
) | [pure virtual] |
Referenced by initMPMode(), and initSimMode().
void RooAbsTestStatistic::constOptimizeTestStatistic | ( | ConstOpCode | opcode | ) | [virtual] |
Reimplemented from RooAbsArg.
Definition at line 355 of file RooAbsTestStatistic.cxx.
References _gofArray, _gofOpMode, _mpfeArray, _nCPU, _nGof, i, initialize(), MPMaster, and SimMaster.
Referenced by RooAbsOptTestStatistic::constOptimizeTestStatistic().
virtual Double_t RooAbsTestStatistic::combinedValue | ( | RooAbsReal ** | gofArray, | |
Int_t | nVal | |||
) | const [pure virtual] |
Referenced by evaluate().
virtual Double_t RooAbsTestStatistic::globalNormalization | ( | ) | const [inline, virtual] |
void RooAbsTestStatistic::printCompactTreeHook | ( | ostream & | os, | |
const char * | indent = "" | |||
) | [protected, virtual] |
Reimplemented from RooAbsArg.
Definition at line 330 of file RooAbsTestStatistic.cxx.
References _gofArray, _gofOpMode, _nGof, Form(), i, MPMaster, printCompactTreeHook(), and SimMaster.
Referenced by printCompactTreeHook(), and RooAbsOptTestStatistic::printCompactTreeHook().
Bool_t RooAbsTestStatistic::redirectServersHook | ( | const RooAbsCollection & | newServerList, | |
Bool_t | mustReplaceAll, | |||
Bool_t | nameChange, | |||
Bool_t | isRecursive | |||
) | [protected, virtual] |
Reimplemented from RooAbsArg.
Definition at line 300 of file RooAbsTestStatistic.cxx.
References _gofArray, _gofOpMode, _mpfeArray, _nCPU, _nGof, i, kFALSE, MPMaster, RooAbsArg::recursiveRedirectServers(), and SimMaster.
Referenced by RooAbsOptTestStatistic::redirectServersHook().
Double_t RooAbsTestStatistic::evaluate | ( | ) | const [protected, virtual] |
Implements RooAbsReal.
Definition at line 213 of file RooAbsTestStatistic.cxx.
References _gofArray, _gofOpMode, _init, _mpfeArray, _mpinterl, _nCPU, _nEvents, _nGof, _numSets, _setNum, combinedValue(), evaluatePartition(), globalNormalization(), i, initialize(), MPMaster, numSets(), and SimMaster.
virtual Double_t RooAbsTestStatistic::evaluatePartition | ( | Int_t | firstEvent, | |
Int_t | lastEvent, | |||
Int_t | stepSize | |||
) | const [protected, pure virtual] |
Referenced by evaluate().
Definition at line 376 of file RooAbsTestStatistic.cxx.
References _gofArray, _gofOpMode, _nGof, _numSets, _setNum, i, initialize(), and SimMaster.
Referenced by initMPMode().
void RooAbsTestStatistic::setSimCount | ( | Int_t | simCount | ) | [inline, protected] |
Definition at line 68 of file RooAbsTestStatistic.h.
References _simCount.
Referenced by initSimMode().
void RooAbsTestStatistic::setEventCount | ( | Int_t | nEvents | ) | [inline, protected] |
Definition at line 73 of file RooAbsTestStatistic.h.
References _nEvents.
Referenced by RooAbsOptTestStatistic::RooAbsOptTestStatistic().
Int_t RooAbsTestStatistic::numSets | ( | ) | const [inline, protected] |
Int_t RooAbsTestStatistic::setNum | ( | ) | const [inline, protected] |
Definition at line 82 of file RooAbsTestStatistic.h.
References _setNum.
Referenced by RooDataWeightedAverage::evaluatePartition().
GOFOpMode RooAbsTestStatistic::operMode | ( | ) | const [inline, protected] |
Reimplemented from RooAbsArg.
Definition at line 90 of file RooAbsTestStatistic.h.
References _gofOpMode.
Referenced by RooAbsOptTestStatistic::constOptimizeTestStatistic(), RooAbsOptTestStatistic::printCompactTreeHook(), RooAbsOptTestStatistic::redirectServersHook(), RooAbsOptTestStatistic::RooAbsOptTestStatistic(), and RooAbsOptTestStatistic::~RooAbsOptTestStatistic().
virtual Bool_t RooAbsTestStatistic::processEmptyDataSets | ( | ) | const [inline, private, virtual] |
Definition at line 107 of file RooAbsTestStatistic.h.
References kTRUE.
Referenced by initSimMode().
Bool_t RooAbsTestStatistic::initialize | ( | ) | [private] |
Definition at line 280 of file RooAbsTestStatistic.cxx.
References _addCoefRangeName, _data, _func, _gofOpMode, _init, _projDeps, _rangeName, initMPMode(), initSimMode(), kFALSE, kTRUE, MPMaster, and SimMaster.
Referenced by constOptimizeTestStatistic(), evaluate(), and setMPSet().
void RooAbsTestStatistic::initSimMode | ( | RooSimultaneous * | pdf, | |
RooAbsData * | data, | |||
const RooArgSet * | projDeps, | |||
const char * | rangeName, | |||
const char * | addCoefRangeName | |||
) | [private] |
Definition at line 424 of file RooAbsTestStatistic.cxx.
References _gofArray, _mpinterl, _nCPU, _nGof, _paramSet, _splitRange, _verbose, coutE, coutI, create(), data, TObject::FindObject(), RooFit::Fitting, Form(), TNamed::GetName(), RooSimultaneous::getPdf(), RooSimultaneous::indexCat(), n, TIterator::Next(), RooAbsData::numEntries(), processEmptyDataSets(), RooAbsArg::recursiveRedirectServers(), TIterator::Reset(), setSimCount(), RooErrorHandler::softAbort(), RooAbsData::sumEntries(), type, and RooAbsCategory::typeIterator().
Referenced by initialize().
void RooAbsTestStatistic::initMPMode | ( | RooAbsReal * | real, | |
RooAbsData * | data, | |||
const RooArgSet * | projDeps, | |||
const char * | rangeName, | |||
const char * | addCoefRangeName | |||
) | [private] |
Definition at line 394 of file RooAbsTestStatistic.cxx.
References _mpfeArray, _mpinterl, _nCPU, _paramSet, _splitRange, _verbose, coutI, create(), data, RooFit::Eval, Form(), TNamed::GetName(), TNamed::GetTitle(), i, RooRealMPFE::initialize(), RooAbsArg::recursiveRedirectServers(), RooAbsArg::RooRealMPFE, setMPSet(), TNamed::SetName(), and TNamed::SetTitle().
Referenced by initialize().
virtual RooAbsTestStatistic* RooAbsTestStatistic::create | ( | const char * | name, | |
const char * | title, | |||
RooAbsReal & | real, | |||
RooAbsData & | data, | |||
const RooArgSet & | projDeps, | |||
const char * | rangeName = 0 , |
|||
const char * | addCoefRangeName = 0 , |
|||
Int_t | nCPU = 1 , |
|||
Bool_t | interleave = kFALSE , |
|||
Bool_t | verbose = kTRUE , |
|||
Bool_t | splitCutRange = kFALSE | |||
) | [pure virtual] |
virtual void RooAbsTestStatistic::constOptimizeTestStatistic | ( | ConstOpCode | opcode | ) | [virtual] |
Reimplemented from RooAbsArg.
virtual Double_t RooAbsTestStatistic::combinedValue | ( | RooAbsReal ** | gofArray, | |
Int_t | nVal | |||
) | const [pure virtual] |
virtual Double_t RooAbsTestStatistic::globalNormalization | ( | ) | const [inline, virtual] |
Definition at line 53 of file RooAbsTestStatistic.h.
virtual void RooAbsTestStatistic::printCompactTreeHook | ( | ostream & | os, | |
const char * | indent = "" | |||
) | [protected, virtual] |
Reimplemented from RooAbsArg.
virtual Bool_t RooAbsTestStatistic::redirectServersHook | ( | const RooAbsCollection & | newServerList, | |
Bool_t | mustReplaceAll, | |||
Bool_t | nameChange, | |||
Bool_t | isRecursive | |||
) | [protected, virtual] |
Reimplemented from RooAbsArg.
virtual Double_t RooAbsTestStatistic::evaluate | ( | ) | const [protected, virtual] |
Implements RooAbsReal.
virtual Double_t RooAbsTestStatistic::evaluatePartition | ( | Int_t | firstEvent, | |
Int_t | lastEvent, | |||
Int_t | stepSize | |||
) | const [protected, pure virtual] |
void RooAbsTestStatistic::setSimCount | ( | Int_t | simCount | ) | [inline, protected] |
void RooAbsTestStatistic::setEventCount | ( | Int_t | nEvents | ) | [inline, protected] |
Int_t RooAbsTestStatistic::numSets | ( | ) | const [inline, protected] |
Int_t RooAbsTestStatistic::setNum | ( | ) | const [inline, protected] |
GOFOpMode RooAbsTestStatistic::operMode | ( | ) | const [inline, protected] |
Reimplemented from RooAbsArg.
Definition at line 90 of file RooAbsTestStatistic.h.
References _gofOpMode.
virtual Bool_t RooAbsTestStatistic::processEmptyDataSets | ( | ) | const [inline, private, virtual] |
Bool_t RooAbsTestStatistic::initialize | ( | ) | [private] |
void RooAbsTestStatistic::initSimMode | ( | RooSimultaneous * | pdf, | |
RooAbsData * | data, | |||
const RooArgSet * | projDeps, | |||
const char * | rangeName, | |||
const char * | addCoefRangeName | |||
) | [private] |
void RooAbsTestStatistic::initMPMode | ( | RooAbsReal * | real, | |
RooAbsData * | data, | |||
const RooArgSet * | projDeps, | |||
const char * | rangeName, | |||
const char * | addCoefRangeName | |||
) | [private] |
RooSetProxy RooAbsTestStatistic::_paramSet [protected] |
Definition at line 87 of file RooAbsTestStatistic.h.
Referenced by initMPMode(), initSimMode(), RooAbsOptTestStatistic::RooAbsOptTestStatistic(), and RooAbsTestStatistic().
RooAbsReal* RooAbsTestStatistic::_func [protected] |
Definition at line 96 of file RooAbsTestStatistic.h.
Referenced by initialize(), RooAbsOptTestStatistic::RooAbsOptTestStatistic(), and RooAbsTestStatistic().
RooAbsData* RooAbsTestStatistic::_data [protected] |
Definition at line 97 of file RooAbsTestStatistic.h.
Referenced by initialize(), RooAbsOptTestStatistic::RooAbsOptTestStatistic(), RooAbsTestStatistic(), and RooAbsOptTestStatistic::setData().
const RooArgSet* RooAbsTestStatistic::_projDeps [protected] |
Definition at line 98 of file RooAbsTestStatistic.h.
Referenced by initialize(), RooAbsTestStatistic(), and ~RooAbsTestStatistic().
std::string RooAbsTestStatistic::_rangeName [protected] |
Definition at line 99 of file RooAbsTestStatistic.h.
Referenced by initialize(), and RooAbsOptTestStatistic::setData().
std::string RooAbsTestStatistic::_addCoefRangeName [protected] |
Bool_t RooAbsTestStatistic::_splitRange [protected] |
Definition at line 101 of file RooAbsTestStatistic.h.
Referenced by initMPMode(), initSimMode(), and RooAbsOptTestStatistic::RooAbsOptTestStatistic().
Int_t RooAbsTestStatistic::_simCount [protected] |
Definition at line 102 of file RooAbsTestStatistic.h.
Referenced by RooNLLVar::evaluatePartition(), and setSimCount().
Bool_t RooAbsTestStatistic::_verbose [protected] |
Definition at line 103 of file RooAbsTestStatistic.h.
Referenced by initMPMode(), and initSimMode().
Bool_t RooAbsTestStatistic::_init [mutable, private] |
Definition at line 113 of file RooAbsTestStatistic.h.
Referenced by evaluate(), initialize(), RooAbsTestStatistic(), and ~RooAbsTestStatistic().
GOFOpMode RooAbsTestStatistic::_gofOpMode [private] |
Is object initialized.
Definition at line 114 of file RooAbsTestStatistic.h.
Referenced by constOptimizeTestStatistic(), evaluate(), initialize(), operMode(), printCompactTreeHook(), redirectServersHook(), RooAbsTestStatistic(), setMPSet(), and ~RooAbsTestStatistic().
Int_t RooAbsTestStatistic::_nEvents [private] |
Definition at line 116 of file RooAbsTestStatistic.h.
Referenced by evaluate(), RooAbsTestStatistic(), and setEventCount().
Int_t RooAbsTestStatistic::_setNum [private] |
Definition at line 117 of file RooAbsTestStatistic.h.
Referenced by evaluate(), RooAbsTestStatistic(), setMPSet(), and setNum().
Int_t RooAbsTestStatistic::_numSets [private] |
Definition at line 118 of file RooAbsTestStatistic.h.
Referenced by evaluate(), numSets(), RooAbsTestStatistic(), and setMPSet().
Int_t RooAbsTestStatistic::_nGof [private] |
Definition at line 121 of file RooAbsTestStatistic.h.
Referenced by constOptimizeTestStatistic(), evaluate(), initSimMode(), printCompactTreeHook(), redirectServersHook(), setMPSet(), and ~RooAbsTestStatistic().
Definition at line 122 of file RooAbsTestStatistic.h.
Referenced by constOptimizeTestStatistic(), evaluate(), initSimMode(), printCompactTreeHook(), redirectServersHook(), RooAbsTestStatistic(), setMPSet(), and ~RooAbsTestStatistic().
Int_t RooAbsTestStatistic::_nCPU [private] |
Array of sub-contexts representing part of the combined test statistic.
Definition at line 125 of file RooAbsTestStatistic.h.
Referenced by constOptimizeTestStatistic(), evaluate(), initMPMode(), initSimMode(), redirectServersHook(), RooAbsTestStatistic(), and ~RooAbsTestStatistic().
pRooRealMPFE* RooAbsTestStatistic::_mpfeArray [private] |
Definition at line 126 of file RooAbsTestStatistic.h.
Referenced by constOptimizeTestStatistic(), evaluate(), initMPMode(), redirectServersHook(), RooAbsTestStatistic(), and ~RooAbsTestStatistic().
Bool_t RooAbsTestStatistic::_mpinterl [private] |
Array of parallel execution frond ends.
Definition at line 128 of file RooAbsTestStatistic.h.
Referenced by evaluate(), initMPMode(), and initSimMode().
RooAbsReal* RooAbsTestStatistic::_func [protected] |
Definition at line 96 of file RooAbsTestStatistic.h.
RooAbsData* RooAbsTestStatistic::_data [protected] |
Definition at line 97 of file RooAbsTestStatistic.h.
const RooArgSet* RooAbsTestStatistic::_projDeps [protected] |
Definition at line 98 of file RooAbsTestStatistic.h.
Definition at line 122 of file RooAbsTestStatistic.h.
pRooRealMPFE* RooAbsTestStatistic::_mpfeArray [private] |
Definition at line 126 of file RooAbsTestStatistic.h.