/usr/include/root/RooStats/TestStatistic.h is in libroot-roofit-dev 5.34.30-0ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | // @(#)root/roostats:$Id$
// Author: Kyle Cranmer, Lorenzo Moneta, Gregory Schott, Wouter Verkerke
/*************************************************************************
* Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOSTATS_TestStatistic
#define ROOSTATS_TestStatistic
//_________________________________________________
/*
BEGIN_HTML
<p>
TestStatistic is an interface class to provide a facility for construction test statistics
distributions to the NeymanConstruction class. All the actual samplers inherit from this class.
</p>
END_HTML
*/
//
#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif
class RooArgSet;
class RooAbsData;
namespace RooStats {
class TestStatistic {
public:
//TestStatistic();
virtual ~TestStatistic() {
}
// Main interface to evaluate the test statistic on a dataset given the
// values for the Null Parameters Of Interest.
virtual Double_t Evaluate(RooAbsData& data, RooArgSet& nullPOI) = 0;
virtual const TString GetVarName() const = 0;
// Defines the sign convention of the test statistic. Overwrite function if necessary.
virtual bool PValueIsRightTail(void) const { return true; }
// return detailed output: for fits this can be pulls, processing time, ... The returned pointer will not loose validity until another call to Evaluate.
virtual const RooArgSet* GetDetailedOutput() const { return NULL; }
protected:
ClassDef(TestStatistic,1) // Interface for a TestStatistic
};
} // end namespace RooStats
#endif
|