48 TNamed(), fParameterPoints(0)
94 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
102 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
110 vector<Double_t> levels;
119 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
127 std::cout <<
"problem with parameters" << std::endl;
134 cout <<
"lookup index = " << luIndex << endl;
144 int index = hist->
getIndex(parameterPoint);
176 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
182 std::cout <<
"problem with parameters" << std::endl;
191 int index = hist->
getIndex(parameterPoint);
200 tree->add( parameterPoint );
201 int index =
tree->numEntries() - 1;
215 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
221 std::cout <<
"problem with parameters" << std::endl;
231 int index = hist->
getIndex(parameterPoint);
233 throw std::runtime_error(
"ConfidenceBelt::GetAcceptanceRegion: Sampling summaries are not filled yet. Switch on NeymanConstruction::CreateConfBelt() or FeldmanCousins::CreateConfBelt().");
242 for(index=0; index<
tree->numEntries(); ++index){
243 thisPoint =
tree->get(index);
244 bool samePoint =
true;
256 throw std::runtime_error(
"ConfidenceBelt::GetAcceptanceRegion: Sampling summaries are not filled yet. Switch on NeymanConstruction::CreateConfBelt() or FeldmanCousins::CreateConfBelt().");
261 std::cout <<
"dataset is not initialized properly" << std::endl;
281 std::cout <<
"size is wrong, parameters don't match" << std::endl;
285 std::cout <<
"size is ok, but parameters don't match" << std::endl;
Double_t getRealValue(const char *name, Double_t defVal=0, Bool_t verbose=kFALSE) const
Get value of a RooAbsReal stored in set with given name.
Bool_t equals(const RooAbsCollection &otherColl) const
Check if this and other collection have identically-named contents.
TIterator * createIterator(Bool_t dir=kIterForward) const
TIterator-style iteration over contained elements.
RooAbsData is the common abstract base class for binned and unbinned datasets.
virtual const RooArgSet * get() const
Double_t getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
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 RooArgSet &coord, Bool_t fast=false) const
Calculate bin number of the given coordinates.
Int_t numEntries() const override
Return the number of bins.
RooDataSet is a container class to hold unbinned data.
RooRealVar represents a variable that can be changed from the outside.
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.)
void Add(Double_t cl, Double_t leftside)
Int_t GetLookupIndex(Double_t cl, Double_t leftside)
The TNamed class is the base class for all named ROOT classes.
virtual const char * GetName() const
Returns name of object.
Namespace for the RooStats classes.
Double_t QuietNaN()
Returns a quiet NaN as defined by IEEE 754