#ifndef ROO_ABS_TEST_STATISTIC
#define ROO_ABS_TEST_STATISTIC
#include "Riosfwd.h"
#include "RooAbsReal.h"
#include "RooSetProxy.h"
#include "RooRealProxy.h"
#include "TStopwatch.h"
#include <string>
class RooArgSet ;
class RooAbsData ;
class RooAbsReal ;
class RooSimultaneous ;
class RooRealMPFE ;
class RooAbsTestStatistic ;
typedef RooAbsTestStatistic* pRooAbsTestStatistic ;
typedef RooAbsData* pRooAbsData ;
typedef RooRealMPFE* pRooRealMPFE ;
class RooAbsTestStatistic : public RooAbsReal {
friend class RooRealMPFE;
public:
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, RooFit::MPSplit interleave=RooFit::BulkPartition, 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, RooFit::MPSplit interleave=RooFit::BulkPartition, Bool_t verbose=kTRUE, Bool_t splitCutRange=kFALSE, Bool_t binnedL=kFALSE) = 0 ;
virtual void constOptimizeTestStatistic(ConstOpCode opcode, Bool_t doAlsoTrackingOpt=kTRUE) ;
virtual Double_t combinedValue(RooAbsReal** gofArray, Int_t nVal) const = 0 ;
virtual Double_t globalNormalization() const {
return 1.0 ;
}
Bool_t setData(RooAbsData& data, Bool_t cloneData=kTRUE) ;
void enableOffsetting(Bool_t flag) ;
Bool_t isOffsetting() const { return _doOffset ; }
virtual Double_t offset() const { return _offset ; }
virtual Double_t offsetCarry() const { return _offsetCarry; }
protected:
virtual void printCompactTreeHook(std::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 ;
virtual Double_t getCarry() const;
void setMPSet(Int_t setNum, Int_t numSets) ;
void setSimCount(Int_t simCount) {
_simCount = simCount ;
}
void setEventCount(Int_t nEvents) {
_nEvents = nEvents ;
}
Int_t numSets() const {
return _numSets ;
}
Int_t setNum() const {
return _setNum ;
}
RooSetProxy _paramSet ;
enum GOFOpMode { SimMaster,MPMaster,Slave } ;
GOFOpMode operMode() const {
return _gofOpMode ;
}
RooAbsReal* _func ;
RooAbsData* _data ;
const RooArgSet* _projDeps ;
std::string _rangeName ;
std::string _addCoefRangeName ;
Bool_t _splitRange ;
Int_t _simCount ;
Bool_t _verbose ;
virtual Bool_t setDataSlave(RooAbsData& , Bool_t =kTRUE, Bool_t =kFALSE) { return kTRUE ; }
virtual Bool_t processEmptyDataSets() const { return kTRUE ; }
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) ;
mutable Bool_t _init ;
GOFOpMode _gofOpMode ;
Int_t _nEvents ;
Int_t _setNum ;
Int_t _numSets ;
Int_t _extSet ;
Int_t _nGof ;
pRooAbsTestStatistic* _gofArray ;
std::vector<RooFit::MPSplit> _gofSplitMode ;
Int_t _nCPU ;
pRooRealMPFE* _mpfeArray ;
RooFit::MPSplit _mpinterl ;
Bool_t _doOffset ;
mutable Double_t _offset ;
mutable Double_t _offsetCarry;
mutable Double_t _evalCarry;
ClassDef(RooAbsTestStatistic,2)
};
#endif
RooAbsTestStatistic.h:100 RooAbsTestStatistic.h:101 RooAbsTestStatistic.h:102 RooAbsTestStatistic.h:103 RooAbsTestStatistic.h:104 RooAbsTestStatistic.h:105 RooAbsTestStatistic.h:106 RooAbsTestStatistic.h:107 RooAbsTestStatistic.h:108 RooAbsTestStatistic.h:109 RooAbsTestStatistic.h:110 RooAbsTestStatistic.h:111 RooAbsTestStatistic.h:112 RooAbsTestStatistic.h:113 RooAbsTestStatistic.h:114 RooAbsTestStatistic.h:115 RooAbsTestStatistic.h:116 RooAbsTestStatistic.h:117 RooAbsTestStatistic.h:118 RooAbsTestStatistic.h:119 RooAbsTestStatistic.h:120 RooAbsTestStatistic.h:121 RooAbsTestStatistic.h:122 RooAbsTestStatistic.h:123 RooAbsTestStatistic.h:124 RooAbsTestStatistic.h:125 RooAbsTestStatistic.h:126 RooAbsTestStatistic.h:127 RooAbsTestStatistic.h:128 RooAbsTestStatistic.h:129 RooAbsTestStatistic.h:130 RooAbsTestStatistic.h:131 RooAbsTestStatistic.h:132 RooAbsTestStatistic.h:133 RooAbsTestStatistic.h:134 RooAbsTestStatistic.h:135 RooAbsTestStatistic.h:136 RooAbsTestStatistic.h:137 RooAbsTestStatistic.h:138 RooAbsTestStatistic.h:139 RooAbsTestStatistic.h:140 RooAbsTestStatistic.h:141 RooAbsTestStatistic.h:142 RooAbsTestStatistic.h:143 RooAbsTestStatistic.h:144 RooAbsTestStatistic.h:145 RooAbsTestStatistic.h:146 RooAbsTestStatistic.h:147 RooAbsTestStatistic.h:148 RooAbsTestStatistic.h:149 RooAbsTestStatistic.h:150 RooAbsTestStatistic.h:151 RooAbsTestStatistic.h:152 RooAbsTestStatistic.h:153