Skip to content

Commit 6b34faa

Browse files
committed
clean RooAbs(Opt)TestStatistic RooTaskSpec dependencies
1 parent 292683d commit 6b34faa

3 files changed

Lines changed: 15 additions & 27 deletions

File tree

roofit/roofitcore/inc/RooAbsOptTestStatistic.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ class RooAbsOptTestStatistic : public RooAbsTestStatistic {
3838

3939
virtual Double_t combinedValue(RooAbsReal** gofArray, Int_t nVal) const ;
4040

41-
virtual RooAbsReal& function() { return *_funcClone ; }
42-
virtual const RooAbsReal& function() const { return *_funcClone ; }
41+
RooAbsReal& function() { return *_funcClone ; }
42+
const RooAbsReal& function() const { return *_funcClone ; }
4343

44-
virtual RooAbsData& data() ;
45-
virtual const RooAbsData& data() const ;
44+
RooAbsData& data() ;
45+
const RooAbsData& data() const ;
4646

4747

4848
virtual const char* cacheUniqueSuffix() const { return Form("_%lx", (ULong_t)_dataClone) ; }

roofit/roofitcore/inc/RooAbsTestStatistic.h

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ typedef RooAbsData* pRooAbsData ;
3737
typedef RooRealMPFE* pRooRealMPFE ;
3838

3939
class RooAbsTestStatistic : public RooAbsReal {
40-
friend class RooRealMPFE;
41-
friend class RooWrapperL;
40+
friend class RooRealMPFE;
4241
public:
4342

4443
struct Configuration {
@@ -73,21 +72,12 @@ class RooAbsTestStatistic : public RooAbsReal {
7372
}
7473

7574
Bool_t setData(RooAbsData& data, Bool_t cloneData=kTRUE) ;
76-
//vinces accessors
77-
Int_t numSimultaneous() const { return _nGof ; }
78-
RooAbsTestStatistic** simComponents() { return _gofArray ; }
7975

8076
void enableOffsetting(Bool_t flag) ;
8177
Bool_t isOffsetting() const { return _doOffset ; }
8278
virtual Double_t offset() const { return _offset.Sum() ; }
8379
virtual Double_t offsetCarry() const { return _offset.Carry(); }
8480

85-
virtual RooAbsReal& function() { return *_func ; }
86-
virtual const RooAbsReal& function() const { return *_func ; }
87-
88-
virtual RooAbsData& data() { return *_data ; }
89-
virtual const RooAbsData& data() const { return *_data ; }
90-
9181
protected:
9282

9383
virtual void printCompactTreeHook(std::ostream& os, const char* indent="") ;
@@ -170,8 +160,6 @@ class RooAbsTestStatistic : public RooAbsReal {
170160
mutable ROOT::Math::KahanSum<double> _offset = 0.0; //! Offset as KahanSum to avoid loss of precision
171161
mutable Double_t _evalCarry = 0.0; //! carry of Kahan sum in evaluatePartition
172162

173-
private:
174-
175163
ClassDef(RooAbsTestStatistic,3) // Abstract base class for real-valued test statistics
176164
};
177165

roofit/roofitcore/src/RooAbsOptTestStatistic.cxx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -770,33 +770,33 @@ Bool_t RooAbsOptTestStatistic::setDataSlave(RooAbsData& indata, Bool_t cloneData
770770

771771
////////////////////////////////////////////////////////////////////////////////
772772

773-
RooAbsData& RooAbsOptTestStatistic::data()
774-
{
773+
RooAbsData& RooAbsOptTestStatistic::data()
774+
{
775775
if (_sealed) {
776776
Bool_t notice = (sealNotice() && strlen(sealNotice())) ;
777-
coutW(ObjectHandling) << "RooAbsOptTestStatistic::data(" << GetName()
778-
<< ") WARNING: object sealed by creator - access to data is not permitted: "
777+
coutW(ObjectHandling) << "RooAbsOptTestStatistic::data(" << GetName()
778+
<< ") WARNING: object sealed by creator - access to data is not permitted: "
779779
<< (notice?sealNotice():"<no user notice>") << endl ;
780780
static RooDataSet dummy ("dummy","dummy",RooArgSet()) ;
781781
return dummy ;
782782
}
783-
return *_dataClone ;
783+
return *_dataClone ;
784784
}
785785

786786

787787
////////////////////////////////////////////////////////////////////////////////
788788

789-
const RooAbsData& RooAbsOptTestStatistic::data() const
790-
{
789+
const RooAbsData& RooAbsOptTestStatistic::data() const
790+
{
791791
if (_sealed) {
792792
Bool_t notice = (sealNotice() && strlen(sealNotice())) ;
793-
coutW(ObjectHandling) << "RooAbsOptTestStatistic::data(" << GetName()
794-
<< ") WARNING: object sealed by creator - access to data is not permitted: "
793+
coutW(ObjectHandling) << "RooAbsOptTestStatistic::data(" << GetName()
794+
<< ") WARNING: object sealed by creator - access to data is not permitted: "
795795
<< (notice?sealNotice():"<no user notice>") << endl ;
796796
static RooDataSet dummy ("dummy","dummy",RooArgSet()) ;
797797
return dummy ;
798798
}
799-
return *_dataClone ;
799+
return *_dataClone ;
800800
}
801801

802802

0 commit comments

Comments
 (0)