11#ifndef RooStats_ConfidenceBelt
12#define RooStats_ConfidenceBelt
38 void Add(
double cl,
double leftside){
44 std::cout<<
"SamplingSummaryLookup::Add, already in lookup table" << std::endl;
53 double tolerance = 1E-6;
58 if( std::abs( (*it).second.first - cl ) < tolerance &&
59 std::abs( (*it).second.second - leftside ) < tolerance )
72 std::cout <<
"SamplingSummaryLookup::GetConfidenceLevel, index not in lookup table" << std::endl;
80 std::cout <<
"SamplingSummaryLookup::GetLeftSideTailFraction, index not in lookup table" << std::endl;
131 std::cout <<
"SamplingSummary::AddAcceptanceRegion, need to implement merging protocol" << std::endl;
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Abstract base class for binned and unbinned datasets.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
AcceptanceRegion(Int_t lu, double ll, double ul)
ConfidenceBelt is a concrete implementation of the ConfInterval interface.
std::vector< SamplingSummary > fSamplingSummaries
RooAbsData * fParameterPoints
virtual RooArgSet * GetParameters() const
do we want it to return list of parameters
AcceptanceRegion * GetAcceptanceRegion(RooArgSet &, double cl=-1., double leftside=-1.)
Method to determine if a parameter point is in the interval.
double GetAcceptanceRegionMax(RooArgSet &, double cl=-1., double leftside=-1.)
void AddAcceptanceRegion(RooArgSet &, AcceptanceRegion region, double cl=-1., double leftside=-1.)
add after creating a region
SamplingSummaryLookup fSamplingSummaryLookup
std::vector< double > ConfidenceLevels() const
double GetAcceptanceRegionMin(RooArgSet &, double cl=-1., double leftside=-1.)
bool CheckParameters(RooArgSet &) const
check if parameters are correct. (dummy implementation to start)
This class simply holds a sampling distribution of some test statistic.
void Add(double cl, double leftside)
Int_t GetLookupIndex(double cl, double leftside)
double GetLeftSideTailFraction(Int_t index)
std::map< Int_t, AcceptanceCriteria > LookupTable
std::pair< double, double > AcceptanceCriteria
double GetConfidenceLevel(Int_t index)
LookupTable fLookupTable
map ( Index, ( CL, leftside tail prob) )
std::map< Int_t, AcceptanceRegion > fAcceptanceRegions
SamplingDistribution * GetSamplingDistribution()
AcceptanceRegion & GetAcceptanceRegion(Int_t index=0)
Int_t GetParameterPointIndex()
void AddAcceptanceRegion(AcceptanceRegion &ar)
TRef fSamplingDistribution
SamplingSummary(AcceptanceRegion &ar)
Int_t fParameterPointIndex
The TNamed class is the base class for all named ROOT classes.
Mother of all ROOT objects.
Persistent Reference link to a TObject A TRef is a lightweight object pointing to any TObject.
TObject * GetObject() const
Return a pointer to the referenced object.
Namespace for the RooStats classes.