24 #ifndef RooStats_ConfidenceBelt 42 TNamed(), fParameterPoints(0)
91 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
99 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
107 vector<Double_t> levels;
116 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
124 std::cout <<
"problem with parameters" << std::endl;
131 cout <<
"lookup index = " << luIndex << endl;
141 int index = hist->
getIndex(parameterPoint);
173 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
179 std::cout <<
"problem with parameters" << std::endl;
188 int index = hist->
getIndex(parameterPoint);
197 tree->
add( parameterPoint );
212 if(cl>0 || leftside > 0) cout <<
"using default cl, leftside for now" <<endl;
218 std::cout <<
"problem with parameters" << std::endl;
228 int index = hist->
getIndex(parameterPoint);
236 for(index=0; index<tree->
numEntries(); ++index){
237 thisPoint = tree->
get(index);
238 bool samePoint =
true;
252 std::cout <<
"dataset is not initialized properly" << std::endl;
272 std::cout <<
"size is wrong, parameters don't match" << std::endl;
276 std::cout <<
"size is ok, but parameters don't match" << std::endl;
virtual const char * GetName() const
Returns name of object.
TIterator * createIterator(Bool_t dir=kIterForward) const
ConfidenceBelt()
Default constructor.
virtual const RooArgSet * get() const
AcceptanceRegion * GetAcceptanceRegion(RooArgSet &, Double_t cl=-1., Double_t leftside=-1.)
Method to determine if a parameter point is in the interval.
Double_t getVal(const RooArgSet *set=0) const
void Add(Double_t cl, Double_t leftside)
Int_t getIndex(const RooArgSet &coord, Bool_t fast=kFALSE)
Bool_t equals(const RooAbsCollection &otherColl) const
Check if this and other collection have identically named contents.
virtual ~ConfidenceBelt()
Destructor.
void AddAcceptanceRegion(RooArgSet &, AcceptanceRegion region, Double_t cl=-1., Double_t leftside=-1.)
RooDataSet is a container class to hold N-dimensional binned data.
virtual RooArgSet * GetParameters() const
returns list of parameters
The TNamed class is the base class for all named ROOT classes.
ConfidenceBelt is a concrete implementation of the ConfInterval interface.
SamplingSummaryLookup fSamplingSummaryLookup
RooRealVar represents a fundamental (non-derived) real valued object.
Int_t GetLookupIndex(Double_t cl, Double_t leftside)
RooAbsData * fParameterPoints
RooAbsData is the common abstract base class for binned and unbinned datasets.
RooDataSet is a container class to hold unbinned data.
virtual const RooArgSet * get(Int_t index) const
Return RooArgSet with coordinates of event 'index'.
virtual void add(const RooArgSet &row, Double_t weight=1.0, Double_t weightError=0)
Add a data point, with its coordinates specified in the 'data' argset, to the data set...
Namespace for the RooStats classes.
virtual Int_t numEntries() const
Return the number of bins.
std::vector< Double_t > ConfidenceLevels() const
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
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 CheckParameters(RooArgSet &) const
Double_t GetAcceptanceRegionMax(RooArgSet &, Double_t cl=-1., Double_t leftside=-1.)
std::vector< SamplingSummary > fSamplingSummaries
virtual Int_t numEntries() const
Double_t GetAcceptanceRegionMin(RooArgSet &, Double_t cl=-1., Double_t leftside=-1.)