11#ifndef RooStats_ConfidenceBelt
12#define RooStats_ConfidenceBelt
45 std::cout<<
"SamplingSummaryLookup::Add, already in lookup table" << std::endl;
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 ClassDef(name, id)
RooAbsData is the common abstract base class for binned and unbinned datasets.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
virtual ~AcceptanceRegion()
AcceptanceRegion(Int_t lu, Double_t ll, Double_t ul)
ConfidenceBelt is a concrete implementation of the ConfInterval interface.
std::vector< SamplingSummary > fSamplingSummaries
std::vector< Double_t > ConfidenceLevels() const
RooAbsData * fParameterPoints
ConfidenceBelt()
Default constructor.
virtual RooArgSet * GetParameters() const
returns list of parameters
virtual ~ConfidenceBelt()
Destructor.
AcceptanceRegion * GetAcceptanceRegion(RooArgSet &, Double_t cl=-1., Double_t leftside=-1.)
Method to determine if a parameter point is in the interval.
Double_t GetAcceptanceRegionMin(RooArgSet &, Double_t cl=-1., Double_t leftside=-1.)
SamplingSummaryLookup fSamplingSummaryLookup
Bool_t CheckParameters(RooArgSet &) const
Double_t GetAcceptanceRegionMax(RooArgSet &, Double_t cl=-1., Double_t leftside=-1.)
void AddAcceptanceRegion(RooArgSet &, AcceptanceRegion region, Double_t cl=-1., Double_t leftside=-1.)
This class simply holds a sampling distribution of some test statistic.
std::pair< Double_t, Double_t > AcceptanceCriteria
Double_t GetConfidenceLevel(Int_t index)
void Add(Double_t cl, Double_t leftside)
std::map< Int_t, AcceptanceCriteria > LookupTable
Int_t GetLookupIndex(Double_t cl, Double_t leftside)
virtual ~SamplingSummaryLookup()
Double_t GetLeftSideTailFraction(Int_t index)
std::map< Int_t, AcceptanceRegion > fAcceptanceRegions
SamplingDistribution * GetSamplingDistribution()
AcceptanceRegion & GetAcceptanceRegion(Int_t index=0)
virtual ~SamplingSummary()
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.