Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooStats::HistFactory::Detail Namespace Reference

Namespaces

namespace  MagicConstants
 

Classes

struct  CreateGammaConstraintsOutput
 

Functions

void configureConstrainedGammas (RooArgList const &gammas, std::span< const double > relSigmas, double minSigma)
 Configure constrained gamma parameters for fitting.
 
CreateGammaConstraintsOutput createGammaConstraints (RooArgList const &paramList, std::span< const double > relSigmas, double minSigma, Constraint::Type type)
 
template<class Arg_t , class... Params_t>
Arg_t & getOrCreate (RooWorkspace &ws, std::string const &name, Params_t &&...params)
 

Function Documentation

◆ configureConstrainedGammas()

void RooStats::HistFactory::Detail::configureConstrainedGammas ( RooArgList const &  gammas,
std::span< const double relSigmas,
double  minSigma 
)

Configure constrained gamma parameters for fitting.

This function configures constrained gamma parameters for fitting. If a given relative sigma is less than or equal to zero or below a threshold, the gamma parameter is set to be constant. The function also sets reasonable ranges for the gamma parameter and provides a reasonable starting point for pre-fit errors.

Parameters
gammasThe gamma parameters to be configured.
sigmaRelThe relative sigma values to be used for configuring the limits and errors.
minSigmaThe minimum relative sigma threshold. If a relative sigma is below this threshold, the gamma parameter is set to be constant.

Definition at line 44 of file HistFactoryImpl.cxx.

◆ createGammaConstraints()

CreateGammaConstraintsOutput RooStats::HistFactory::Detail::createGammaConstraints ( RooArgList const &  paramList,
std::span< const double relSigmas,
double  minSigma,
Constraint::Type  type 
)

Definition at line 85 of file HistFactoryImpl.cxx.

◆ getOrCreate()

template<class Arg_t , class... Params_t>
Arg_t & RooStats::HistFactory::Detail::getOrCreate ( RooWorkspace ws,
std::string const &  name,
Params_t &&...  params 
)

Definition at line 38 of file HistFactoryImpl.h.