11#ifndef RooStats_ConfidenceBelt
12#define RooStats_ConfidenceBelt
39 void Add(
double cl,
double leftside){
45 std::cout<<
"SamplingSummaryLookup::Add, already in lookup table" << std::endl;
54 double tolerance = 1E-6;
59 if(
TMath::Abs( (*it).second.first - cl ) < tolerance &&
60 TMath::Abs( (*it).second.second - leftside ) < tolerance )
73 std::cout <<
"SamplingSummaryLookup::GetConfidenceLevel, index not in lookup table" << std::endl;
81 std::cout <<
"SamplingSummaryLookup::GetLeftSideTailFraction, index not in lookup table" << std::endl;
138 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
RooAbsData is the common 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)
~AcceptanceRegion() override
ConfidenceBelt is a concrete implementation of the ConfInterval interface.
std::vector< SamplingSummary > fSamplingSummaries
RooAbsData * fParameterPoints
ConfidenceBelt()
Default constructor.
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.)
~ConfidenceBelt() override
Destructor.
bool CheckParameters(RooArgSet &) const
check if parameters are correct. (dummy implementation to start)
This class simply holds a sampling distribution of some test statistic.
~SamplingSummaryLookup() override
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() override
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.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.