42ProfileInspector::ProfileInspector()
76 cout <<
"no parameters of interest" << endl;
81 cout <<
"only one parameter of interest is supported currently" << endl;
88 cout <<
"no nuisance parameters" << endl;
93 cout <<
"pdf not set" << endl;
109 Double_t step = (max-min)/(curve_N-1);
111 for(
int i=0; i<curve_N; ++i){
112 curve_x[i]=min+step*i;
116 map<string, std::vector<Double_t> > name_val;
117 for(
int i=0; i<curve_N; i++){
123 while((nuis_params_obj=nuis_params_itr->
Next())){
127 if(nuis_params->
getSize()==0)
continue;
128 if(nuis_param && (! nuis_param->
isConstant())){
129 if(name_val.find(
name)==name_val.end()) name_val[
name]=std::vector<Double_t>(curve_N);
134 g->SetName((
name+
"_"+
string(poi->
GetName())+
"_profile").c_str());
135 g->GetXaxis()->SetTitle(poi->
GetName());
136 g->GetYaxis()->SetTitle(nuis_param->
GetName());
Bool_t isConstant() const
RooAbsArg * first() const
TIterator * createIterator(Bool_t dir=kIterForward) const R__SUGGEST_ALTERNATIVE("begin()
TIterator-style iteration over contained elements.
RooAbsData is the common abstract base class for binned and unbinned datasets.
virtual RooAbsReal * createNLL(RooAbsData &data, const RooLinkedList &cmdList)
Construct representation of -log(L) of PDFwith given dataset.
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
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.
RooRealVar represents a variable that can be changed from the outside.
virtual void setVal(Double_t value)
Set value of variable to 'value'.
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
const RooArgSet * GetParametersOfInterest() const
get RooArgSet containing the parameter of interest (return NULL if not existing)
const RooArgSet * GetNuisanceParameters() const
get RooArgSet containing the nuisance parameters (return NULL if not existing)
RooAbsPdf * GetPdf() const
get model PDF (return NULL if pdf has not been specified or does not exist)
Utility class to plot conditional MLE of nuisance parameters vs.
TList * GetListOfProfilePlots(RooAbsData &data, RooStats::ModelConfig *config)
This tool makes a plot of the conditional maximum likelihood estimate of the nuisance parameter vs th...
virtual ~ProfileInspector()
ProfileInspector destructor.
A Graph is a graphics object made of two arrays X and Y with npoints each.
Iterator abstract base class.
virtual TObject * Next()=0
virtual void Add(TObject *obj)
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
Namespace for the RooStats classes.