44using std::cout, std::endl, std::vector;
81 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
89 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
97 vector<double> levels;
104 double lower,
double upper,
105 double cl,
double leftside){
106 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
114 std::cout <<
"problem with parameters" << std::endl;
121 cout <<
"lookup index = " << luIndex << endl;
162 double cl,
double leftside){
163 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
169 std::cout <<
"problem with parameters" << std::endl;
187 tree->add( parameterPoint );
188 int index = tree->numEntries() - 1;
202 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
208 std::cout <<
"problem with parameters" << std::endl;
220 throw std::runtime_error(
"ConfidenceBelt::GetAcceptanceRegion: Sampling summaries are not filled yet. Switch on NeymanConstruction::CreateConfBelt() or FeldmanCousins::CreateConfBelt().");
230 thisPoint = tree->get(
index);
231 bool samePoint =
true;
232 for (
auto const *myarg : static_range_cast<RooRealVar *>(parameterPoint)) {
233 if (samePoint ==
false)
235 if(myarg->getVal() != thisPoint->
getRealValue(myarg->GetName()))
243 throw std::runtime_error(
"ConfidenceBelt::GetAcceptanceRegion: Sampling summaries are not filled yet. Switch on NeymanConstruction::CreateConfBelt() or FeldmanCousins::CreateConfBelt().");
248 std::cout <<
"dataset is not initialized properly" << std::endl;
268 std::cout <<
"size is wrong, parameters don't match" << std::endl;
272 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.
Storage_t::size_type size() const
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.
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.
Container class to hold unbinned data.
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)
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.