12#ifndef ROOSTATS_ProfileLikelihoodTestStat
13#define ROOSTATS_ProfileLikelihoodTestStat
47 fVarName =
"Profile Likelihood Ratio";
65 fVarName =
"Profile Likelihood Ratio";
134 std::unique_ptr<RooFitResult>
GetMinNLL();
139 std::unique_ptr<RooAbsReal>
fNll;
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
static int DefaultPrintLevel()
static double DefaultTolerance()
static int DefaultStrategy()
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
Abstract base class for binned and unbinned datasets.
Abstract interface for all probability density functions.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
ProfileLikelihoodTestStat is an implementation of the TestStatistic interface that calculates the pro...
void SetPrintLevel(Int_t printlevel)
ProfileLikelihoodTestStat(RooAbsPdf &pdf)
bool IsOneSidedDiscovery() const
RooArgSet fConditionalObs
conditional observables
virtual void EnableDetailedOutput(bool e=true, bool withErrorsAndPulls=false)
void SetOneSidedDiscovery(bool flag=true)
bool fDetailedOutputWithErrorsAndPulls
double Evaluate(RooAbsData &data, RooArgSet ¶msOfInterest) override
Main interface to evaluate the test statistic on a dataset.
std::unique_ptr< RooAbsReal > fNll
void SetConditionalObservables(const RooArgSet &set) override
set the conditional observables which will be used when creating the NLL so the pdf's will not be nor...
void SetReuseNLL(bool flag)
void SetGlobalObservables(const RooArgSet &set) override
set the global observables which will be used when creating the NLL so the constraint pdf's will be n...
void SetTolerance(double tol)
static void SetAlwaysReuseNLL(bool flag)
static bool fgAlwaysReuseNll
ProfileLikelihoodTestStat()
~ProfileLikelihoodTestStat() override
void SetLOffset(bool flag=true)
void SetSigned(bool flag=true)
RooArgSet * fDetailedOutput
!
virtual double EvaluateProfileLikelihood(int type, RooAbsData &data, RooArgSet ¶msOfInterest)
evaluate the profile likelihood ratio (type = 0) or the minimum of likelihood (type=1) or the conditi...
RooArgSet fGlobalObs
global observables
const RooArgSet * GetDetailedOutput(void) const override
Returns detailed output.
const RooArgSet * fCachedBestFitParams
const TString GetVarName() const override
void SetOneSided(bool flag=true)
virtual void SetVarName(const char *name)
virtual RooAbsPdf * GetPdf() const
void SetMinimizer(const char *minimizer)
void SetStrategy(Int_t strategy)
std::unique_ptr< RooFitResult > GetMinNLL()
find minimum of NLL using RooMinimizer
bool fDetailedOutputEnabled
this will store a snapshot of the unconditional nuisance parameter fit.
TestStatistic is an interface class to provide a facility for construction test statistics distributi...
Namespace for the RooStats classes.
bool IsNLLOffset()
function returning if the flag to check if the flag to use NLLOffset is set
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.