58 std::unique_ptr<RooArgSet> allParams{
fNullModel->GetPdf()->getParameters(*
fData)};
72 oocoutI(
nullptr,InputArguments) <<
"Using given conditional MLEs for Null." << std::endl;
86 oocoutI(
nullptr,InputArguments) <<
"Profiling conditional MLEs for Null." << std::endl;
108 std::unique_ptr<RooFitResult>
result {profile->minimizer()->save()};
137 oocoutI(
nullptr,InputArguments) <<
"Using a ToyMCSampler. Now configuring for Null." << std::endl;
147 oocoutI(
nullptr,InputArguments) <<
"Adaptive Sampling" << std::endl;
170 std::unique_ptr<RooArgSet> allParams{
fAltModel->GetPdf()->getParameters(*
fData)};
175 if(
fAltModel->GetNuisanceParameters() ) {
178 oocoutI(
nullptr,InputArguments) <<
"Using given conditional MLEs for Alt." << std::endl;
182 if (
fAltModel->GetNuisanceParameters()) {
192 oocoutI(
nullptr,InputArguments) <<
"Profiling conditional MLEs for Alt." << std::endl;
215 std::unique_ptr<RooFitResult>
result {profile->minimizer()->save()};
243 oocoutI(
nullptr,InputArguments) <<
"Using a ToyMCSampler. Now configuring for Alt." << std::endl;
253 oocoutI(
nullptr,InputArguments) <<
"Adaptive Sampling" << std::endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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 result
static int DefaultPrintLevel()
virtual bool addOwned(RooAbsArg &var, bool silent=false)
Add an argument and transfer the ownership to the collection.
Abstract base class for binned and unbinned datasets.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
void setPrintLevel(int newLevel)
Change the MINUIT internal printing level.
static RooMsgService & instance()
Return reference to singleton instance.
Implements the profile likelihood estimator for a given likelihood and set of parameters of interest.
RooMinimizer * minimizer()
static RooArgSet * GetAsArgSet(RooFitResult *result, TString prefix="", bool withErrorsAndPulls=false)
Translate the given fit result to a RooArgSet in a generic way.
const RooArgSet * fConditionalMLEsNull
void PostHook() const override
int PreNullHook(RooArgSet *parameterPoint, double obsTestStat) const override
configure TestStatSampler for the Null run
void PreHook() const override
int PreAltHook(RooArgSet *parameterPoint, double obsTestStat) const override
configure TestStatSampler for the Alt run
const RooArgSet * fConditionalMLEsAlt
const ModelConfig * GetNullModel(void) const
const ModelConfig * fAltModel
TestStatSampler * GetTestStatSampler(void) const
Returns instance of TestStatSampler.
const ModelConfig * fNullModel
TestStatistic is an interface class to provide a facility for construction test statistics distributi...
ToyMCSampler is an implementation of the TestStatSampler interface.
RooCmdArg Offset(std::string const &mode)
RooCmdArg Constrain(const RooArgSet ¶ms)
RooCmdArg GlobalObservables(Args_t &&... argsOrArgSet)
RooCmdArg CloneData(bool flag)
RooCmdArg ConditionalObservables(Args_t &&... argsOrArgSet)
Create a RooCmdArg to declare conditional observables.
MsgLevel
Verbosity level for RooMsgService::StreamConfig in RooMsgService.
Namespace for the RooStats classes.
void RemoveConstantParameters(RooArgSet *set)
RooStatsConfig & GetGlobalRooStatsConfig()
Retrieve the config object which can be used to set flags for things like offsetting the likelihood o...