46 _obs(
"paramOfInterest",
"Parameters of interest",this),
47 _par(
"nuisanceParam",
"Nuisance parameters",this,
kFALSE,
kFALSE),
65 _nll(
"input",
"-log(L) function",this,nllIn),
66 _obs(
"paramOfInterest",
"Parameters of interest",this),
67 _par(
"nuisanceParam",
"Nuisance parameters",this,
kFALSE,
kFALSE),
85 _nll(
"nll",this,other._nll),
86 _obs(
"obs",this,other._obs),
87 _par(
"par",this,other._par),
88 _startFromMin(other._startFromMin),
91 _paramFixed(other._paramFixed),
137 coutI(Minimization) <<
"RooProfileLL::evaluate(" <<
GetName() <<
") Creating instance of MINUIT" << endl ;
187 for(
auto const& arg : obsSetOrig) {
191 target->
setVal(var->getVal()) ;
192 target->setConstant(var->isConstant()) ;
209 for(
auto const& par :
_par) {
210 if (
_paramFixed[par->GetName()] != par->isConstant()) {
211 cxcoutI(Minimization) <<
"RooProfileLL::evaluate(" <<
GetName() <<
") constant status of parameter " << par->GetName() <<
" has changed from "
212 << (
_paramFixed[par->GetName()]?
"fixed":
"floating") <<
" to " << (par->isConstant()?
"fixed":
"floating")
213 <<
", recalculating absolute minimum" << endl ;
224 cxcoutI(Minimization) <<
"RooProfileLL::evaluate(" <<
GetName() <<
") determining minimum likelihood for current configurations w.r.t all observable" << endl ;
265 for(
auto const& par :
_par) {
269 if (
dologI(Minimization)) {
270 cxcoutI(Minimization) <<
"RooProfileLL::evaluate(" <<
GetName() <<
") minimum found at (" ;
273 for(
auto const& arg :
_obs) {
274 ccxcoutI(Minimization) << (
first?
"":
", ") << arg->GetName() <<
"="
278 ccxcoutI(Minimization) <<
")" << endl ;
RooArgSet * getObservables(const RooArgSet &set, Bool_t valueOnly=kTRUE) const
Given a set of possible observables, return the observables that this PDF depends on.
RooArgSet * getParameters(const RooAbsData *data, bool stripDisconnected=true) const
Create a list of leaf nodes in the arg tree starting with ourself as top node that don't match any of...
Bool_t isConstant() const
Check if the "Constant" attribute is set.
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects.
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
virtual RooAbsArg * addClone(const RooAbsArg &var, Bool_t silent=kFALSE)
Add a clone of the specified argument to list.
void assign(const RooAbsCollection &other) const
Sets the value, cache and constant attribute of any argument in our set that also appears in the othe...
RooAbsCollection * selectByAttrib(const char *name, Bool_t value) const
Create a subset of the current collection, consisting only of those elements with the specified attri...
RooAbsArg * find(const char *name) const
Find object with given name in list.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
virtual RooAbsReal * createProfile(const RooArgSet ¶msOfInterest)
Create a RooProfileLL object that eliminates all nuisance parameters in the present function.
Double_t getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooArgSet * snapshot(bool deepCopy=true) const
Use RooAbsCollection::snapshot(), but return as RooArgSet.
static RooMsgService & instance()
Return reference to singleton instance.
Bool_t silentMode() const
void setSilentMode(Bool_t flag)
Class RooProfileLL implements the profile likelihood estimator for a given likelihood and set of para...
const RooArgSet & bestFitObs() const
RooProfileLL()
Default constructor Should only be used by proof.
void initializeMinimizer() const
std::map< std::string, bool > _paramFixed
Double_t evaluate() const
Evaluate profile likelihood by minimizing likelihood w.r.t.
std::unique_ptr< RooMinimizer > _minimizer
Iterator of profile likelihood output parameter(s)
void validateAbsMin() const
Check that parameters and likelihood value for 'best fit' are still valid.
virtual RooAbsReal * createProfile(const RooArgSet ¶msOfInterest)
Optimized implementation of createProfile for profile likelihoods.
virtual Bool_t redirectServersHook(const RooAbsCollection &, Bool_t, Bool_t, Bool_t)
Function that is called at the end of redirectServers().
const RooArgSet & bestFitParams() const
Bool_t _absMinValid
Internal minimizer instance.
RooRealVar represents a variable that can be changed from the outside.
virtual void setVal(Double_t value)
Set value of variable to 'value'.
RooSetProxy is the concrete proxy for RooArgSet objects.
const T & arg() const
Return reference to object held in proxy.
virtual const char * GetName() const
Returns name of object.