31 #ifndef RooStats_SimpleInterval
49 SimpleInterval::SimpleInterval(
const char*
name) :
50 ConfInterval(name), fLowerLimit(0), fUpperLimit(0), fConfidenceLevel(0)
60 , fParameters(other.fParameters)
61 , fLowerLimit(other.fLowerLimit)
62 , fUpperLimit(other.fUpperLimit)
63 , fConfidenceLevel(other.fConfidenceLevel)
80 fParameters.removeAll();
81 fParameters.add(other.fParameters);
94 ConfInterval(name), fParameters(var), fLowerLimit(lower), fUpperLimit(upper), fConfidenceLevel(cl)
116 if(parameterPoint.
getSize() != 1 )
142 if (parameterPoint.
getSize() != fParameters.getSize() ) {
143 std::cout <<
"size is wrong, parameters don't match" << std::endl;
146 if ( ! parameterPoint.
equals( fParameters ) ) {
147 std::cout <<
"size is ok, but parameters don't match" << std::endl;
SimpleInterval(const char *name=0)
Default constructor.
Bool_t equals(const RooAbsCollection &otherColl) const
Check if this and other collection have identically named contents.
RooAbsArg * first() const
SimpleInterval & operator=(const SimpleInterval &other)
Double_t fConfidenceLevel
Double_t getVal(const RooArgSet *set=0) const
Bool_t CheckParameters(const RooArgSet &) const
check if parameters are correct (i.e. they are the POI of this interval)
virtual ~SimpleInterval()
Destructor.
ConfInterval & operator=(const ConfInterval &other)
operator=
ConfInterval is an interface class for a generic interval in the RooStats framework.
Namespace for the RooStats classes.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
virtual Bool_t IsInInterval(const RooArgSet &) const
check if given point is in the interval
virtual RooArgSet * GetParameters() const
return cloned list of parameters
ClassImp(RooStats::SimpleInterval)