47ConfidenceBelt::ConfidenceBelt() :
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);
239 for(index=0; index<
tree->numEntries(); ++index){
240 thisPoint =
tree->get(index);
241 bool samePoint =
true;
255 std::cout <<
"dataset is not initialized properly" << std::endl;
275 std::cout <<
"size is wrong, parameters don't match" << std::endl;
279 std::cout <<
"size is ok, but parameters don't match" << std::endl;
Bool_t equals(const RooAbsCollection &otherColl) const
Check if this and other collection have identically named contents.
TIterator * createIterator(Bool_t dir=kIterForward) const
RooAbsData is the common abstract base class for binned and unbinned datasets.
virtual const RooArgSet * get() const
Double_t getVal(const RooArgSet *set=0) const
Evaluate object. Returns either cached value or triggers a recalculation.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
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.
RooDataSet is a container class to hold N-dimensional binned data.
virtual Int_t numEntries() const
Return the number of bins.
Int_t getIndex(const RooArgSet &coord, Bool_t fast=kFALSE)
RooDataSet is a container class to hold unbinned data.
RooRealVar represents a fundamental (non-derived) real valued object.
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.
@(#)root/roostats:$Id$ Author: George Lewis, Kyle Cranmer
Double_t QuietNaN()
Returns a quiet NaN as defined by IEEE 754