81 if(cl>0 || leftside > 0)
coutI(Eval) <<
"using default cl, leftside for now" << std::endl;
89 if(cl>0 || leftside > 0)
coutI(Eval) <<
"using default cl, leftside for now" << std::endl;
97 vector<double> levels;
104 double lower,
double upper,
105 double cl,
double leftside){
106 if(cl>0 || leftside > 0)
coutI(Eval) <<
"using default cl, leftside for now" << std::endl;
114 coutE(InputArguments) <<
"problem with parameters" << std::endl;
121 coutI(Eval) <<
"lookup index = " << luIndex << std::endl;
131 int index = hist->
getIndex(parameterPoint);
162 double cl,
double leftside){
163 if(cl>0 || leftside > 0)
coutI(Eval) <<
"using default cl, leftside for now" << std::endl;
169 coutE(InputArguments) <<
"problem with parameters" << std::endl;
178 int index = hist->
getIndex(parameterPoint);
187 tree->
add( parameterPoint );
202 if(cl>0 || leftside > 0)
coutI(Eval) <<
"using default cl, leftside for now" << std::endl;
208 coutE(InputArguments) <<
"problem with parameters" << std::endl;
218 int index = hist->
getIndex(parameterPoint);
220 throw std::runtime_error(
"ConfidenceBelt::GetAcceptanceRegion: Sampling summaries are not filled yet. Switch on NeymanConstruction::CreateConfBelt() or FeldmanCousins::CreateConfBelt().");
229 for(index=0; index<tree->
numEntries(); ++index){
230 thisPoint = tree->
get(index);
231 bool samePoint =
true;
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 coutE(InputArguments) <<
"dataset is not initialized properly" << std::endl;
268 coutE(InputArguments) <<
"size is wrong, parameters don't match" << std::endl;
272 coutE(InputArguments) <<
"size is ok, but parameters don't match" << std::endl;
ROOT::RRangeCast< T, false, Range_t > static_range_cast(Range_t &&coll)
int Int_t
Signed integer 4 bytes (int).
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 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.
const RooArgSet * get(Int_t index) const override
Return RooArgSet with coordinates of event 'index'.
void add(const RooArgSet &row, double weight, double weightError)
Add one ore more rows of data.
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)
TObject * Clone(const char *newname="") const override
Make a clone of an object using the Streamer facility.
Namespace for the RooStats classes.
Double_t QuietNaN()
Returns a quiet NaN as defined by IEEE 754.