/usr/include/root/RooStats/HypoTestCalculator.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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | // @(#)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_HypoTestCalculator
#define ROOSTATS_HypoTestCalculator
//#include "TNamed.h"
//_________________________________________________
/*
BEGIN_HTML
<p>
HypoTestCalculator is an interface class for a tools which produce RooStats HypoTestResults.
The interface currently assumes that any hypothesis test calculator can be configured by specifying:
<ul>
<li>a model for the null,</li>
<li>a model for the alternate,</li>
<li>a data set, </li>
<li>a set of parameters of which specify the null (including values and const/non-const status), and </li>
<li>a set of parameters of which specify the alternate (including values and const/non-const status).</li>
</ul>
The interface allows one to pass the model, data, and parameters via a workspace and then specify them with names.
The interface will be extended so that one does not need to use a workspace.
</p>
<p>
After configuring the calculator, one only needs to ask GetHypoTest, which will return a HypoTestResult pointer.
</p>
<p>
The concrete implementations of this interface should deal with the details of how the nuisance parameters are
dealt with (eg. integration vs. profiling) and which test-statistic is used (perhaps this should be added to the interface).
</p>
<p>
The motivation for this interface is that we hope to be able to specify the problem in a common way for several concrete calculators.
</p>
END_HTML
*/
//
// class RooAbsPdf;
class RooAbsData;
// class RooArgSet;
class RooWorkspace;
namespace RooStats {
class HypoTestResult;
class ModelConfig;
class HypoTestCalculator {
public:
virtual ~HypoTestCalculator() {}
// main interface to get a HypoTestResult, pure virtual
virtual HypoTestResult* GetHypoTest() const = 0;
// Set a common model for both the null and alternate, add to the the workspace if not already there
virtual void SetCommonModel(const ModelConfig& model) {
SetNullModel(model);
SetAlternateModel(model);
}
// Set the model for the null hypothesis
virtual void SetNullModel(const ModelConfig& model) = 0;
// Set the model for the alternate hypothesis
virtual void SetAlternateModel(const ModelConfig& model) = 0;
// Set the DataSet
virtual void SetData(RooAbsData& data) = 0;
protected:
ClassDef(HypoTestCalculator,1) // Interface for tools doing hypothesis tests
};
}
#endif
|