11 #ifndef RooStats_LikelihoodInterval
12 #define RooStats_LikelihoodInterval
14 #ifndef RooStats_ConfInterval
26 #ifndef ROOT_Math_IFunctionfwd
146 std::shared_ptr<ROOT::Math::IMultiGenFunction>
fMinFunc;
virtual Double_t ConfidenceLevel() const
return confidence level
RooAbsReal * fLikelihoodRatio
snapshot of the model parameters with best fit value (managed internally)
std::map< std::string, double > fLowerLimits
Requested confidence level (eg. 0.95 for 95% CL)
std::shared_ptr< ROOT::Math::Minimizer > fMinimizer
map with cached upper bound values
std::map< std::string, double > fUpperLimits
map with cached lower bound values
LikelihoodInterval is a concrete implementation of the RooStats::ConfInterval interface.
Bool_t CheckParameters(const RooArgSet &) const
check if parameters are correct (i.e. they are the POI of this interval)
std::shared_ptr< ROOT::Math::IMultiGenFunction > fMinFunc
transient pointer to functor class used by the minimizer
LikelihoodInterval(const char *name=0)
default constructor
virtual RooArgSet * GetParameters() const
return a cloned list of parameters of interest. User manages the return object
Bool_t FindLimits(const RooRealVar ¶m, double &lower, double &upper)
find both lower and upper interval boundaries for a given parameter retun false if the bounds have no...
RooArgSet * fBestFitParams
parameters of interest for this interval
Double_t LowerLimit(const RooRealVar ¶m)
return the lower bound of the interval on a given parameter
RooAbsReal * GetLikelihoodRatio()
return the profile log-likelihood ratio function
#define ClassDef(name, id)
RooRealVar represents a fundamental (non-derived) real valued object.
Double_t UpperLimit(const RooRealVar ¶m)
return the upper bound of the interval on a given parameter
bool CreateMinimizer()
internal function to create the minimizer for finding the contours
void ResetLimits()
reset the cached limit values
RooCmdArg Minimizer(const char *type, const char *alg=0)
const RooArgSet * GetBestFitParameters() const
return a pointer to a snapshot with best fit parameter of interest
std::shared_ptr< RooFunctor > fFunctor
transient pointer to minimizer class used to find limits and contour
ConfInterval is an interface class for a generic interval in the RooStats framework.
virtual ~LikelihoodInterval()
destructor
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
Int_t GetContourPoints(const RooRealVar ¶mX, const RooRealVar ¶mY, Double_t *x, Double_t *y, Int_t npoints=30)
return the 2D-contour points for the given subset of parameters by default make the contour using 30 ...
virtual void SetConfidenceLevel(Double_t cl)
set the confidence level for the interval (e.g 0.682 for a 1-sigma interval)
Double_t fConfidenceLevel
likelihood ratio function used to make contours (managed internally)