/usr/include/root/RooStats/TestStatSampler.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 89 90 91 92 93 94 95 96 97 | // @(#)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_TestStatSampler
#define ROOSTATS_TestStatSampler
//_________________________________________________
/*
BEGIN_HTML
<p>
TestStatSampler is an interface class for a tools which produce RooStats SamplingDistributions.
Tools that implement this interface are expected to be used for coverage studies, the Neyman Construction, etc.
</p>
END_HTML
*/
//
#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif
class RooAbsArg;
class RooAbsData;
class RooArgSet;
class RooAbsPdf;
namespace RooStats {
class SamplingDistribution;
class TestStatistic;
class TestStatSampler {
public:
// TestStatSampler();
virtual ~TestStatSampler() {}
// Main interface to get a ConfInterval, pure virtual
virtual SamplingDistribution* GetSamplingDistribution(RooArgSet& paramsOfInterest) = 0;
// Main interface to evaluate the test statistic on a dataset
virtual Double_t EvaluateTestStatistic(RooAbsData& data, RooArgSet& paramsOfInterest) = 0;
// Get the TestStatistic
virtual TestStatistic* GetTestStatistic() const = 0;
// Get the Confidence level for the test
virtual Double_t ConfidenceLevel() const = 0;
// Common Initialization
virtual void Initialize(RooAbsArg& testStatistic, RooArgSet& paramsOfInterest, RooArgSet& nuisanceParameters) = 0;
// Set the Pdf, add to the the workspace if not already there
virtual void SetPdf(RooAbsPdf&) = 0;
// How to randomize the prior. Set to NULL to deactivate randomization.
virtual void SetPriorNuisance(RooAbsPdf*) = 0;
// specify the values of parameters used when evaluating test statistic
virtual void SetParametersForTestStat(const RooArgSet& /*nullpoi*/) = 0;
// REMOVE THIS
// specify the parameters of interest in the interval
// virtual void SetParameters(const RooArgSet&) = 0;
// specify the nuisance parameters (eg. the rest of the parameters)
virtual void SetNuisanceParameters(const RooArgSet&) = 0;
// specify the observables in the dataset (needed to evaluate the test statistic)
virtual void SetObservables(const RooArgSet& ) = 0;
// specify the conditional observables
virtual void SetGlobalObservables(const RooArgSet& ) = 0;
// set the size of the test (rate of Type I error) ( Eg. 0.05 for a 95% Confidence Interval)
virtual void SetTestSize(Double_t size) = 0;
// set the confidence level for the interval (eg. 0.95 for a 95% Confidence Interval)
virtual void SetConfidenceLevel(Double_t cl) = 0;
// Set the TestStatistic (want the argument to be a function of the data & parameter points
virtual void SetTestStatistic(TestStatistic* testStatistic) = 0;
// Set the name of the sampling distribution used for plotting
virtual void SetSamplingDistName(const char* name) = 0;
protected:
ClassDef(TestStatSampler,1) // Interface for tools setting limits (producing confidence intervals)
};
}
#endif
|