50 TNamed(), fParameterPoints(0)
96 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
104 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
112 vector<double> levels;
119 double lower,
double upper,
120 double cl,
double leftside){
121 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
129 std::cout <<
"problem with parameters" << std::endl;
136 cout <<
"lookup index = " << luIndex << endl;
177 double cl,
double leftside){
178 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
184 std::cout <<
"problem with parameters" << std::endl;
202 tree->add( parameterPoint );
217 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
223 std::cout <<
"problem with parameters" << std::endl;
235 throw std::runtime_error(
"ConfidenceBelt::GetAcceptanceRegion: Sampling summaries are not filled yet. Switch on NeymanConstruction::CreateConfBelt() or FeldmanCousins::CreateConfBelt().");
246 bool samePoint =
true;
247 for (
auto const *myarg : static_range_cast<RooRealVar *>(parameterPoint)) {
248 if (samePoint ==
false)
250 if(myarg->getVal() != thisPoint->
getRealValue(myarg->GetName()))
258 throw std::runtime_error(
"ConfidenceBelt::GetAcceptanceRegion: Sampling summaries are not filled yet. Switch on NeymanConstruction::CreateConfBelt() or FeldmanCousins::CreateConfBelt().");
263 std::cout <<
"dataset is not initialized properly" << std::endl;
283 std::cout <<
"size is wrong, parameters don't match" << std::endl;
287 std::cout <<
"size is ok, but parameters don't match" << std::endl;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
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
bool equals(const RooAbsCollection &otherColl) const
Check if this and other collection have identically-named contents.
double getRealValue(const char *name, double defVal=0.0, bool verbose=false) const
Get value of a RooAbsReal stored in set with given name.
Int_t getSize() const
Return the number of elements in the collection.
RooAbsData is the common abstract base class for binned and unbinned datasets.
virtual const RooArgSet * get() const
virtual Int_t numEntries() const
Return number of entries in dataset, i.e., count unweighted entries.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
The RooDataHist is a container class to hold N-dimensional binned data.
Int_t getIndex(const RooAbsCollection &coord, bool fast=false) const
Calculate bin number of the given coordinates.
RooDataSet is a container class to hold unbinned data.
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)
void Add(double cl, double leftside)
Int_t GetLookupIndex(double cl, double leftside)
The TNamed class is the base class for all named ROOT classes.
Namespace for the RooStats classes.
Double_t QuietNaN()
Returns a quiet NaN as defined by IEEE 754.