41ProfileInspector::ProfileInspector()
75 cout <<
"no parameters of interest" << endl;
80 cout <<
"only one parameter of interest is supported currently" << endl;
87 cout <<
"no nuisance parameters" << endl;
92 cout <<
"pdf not set" << endl;
108 Double_t step = (max-min)/(curve_N-1);
110 for(
int i=0; i<curve_N; ++i){
111 curve_x[i]=min+step*i;
115 map<string, std::vector<Double_t> > name_val;
116 for(
int i=0; i<curve_N; i++){
122 while((nuis_params_obj=nuis_params_itr->
Next())){
126 if(nuis_params->
getSize()==0)
continue;
127 if(nuis_param && (! nuis_param->
isConstant())){
128 if(name_val.find(
name)==name_val.end()) name_val[
name]=std::vector<Double_t>(curve_N);
133 g->SetName((
name+
"_"+
string(poi->
GetName())+
"_profile").c_str());
134 g->GetXaxis()->SetTitle(poi->
GetName());
135 g->GetYaxis()->SetTitle(nuis_param->
GetName());
Bool_t isConstant() const
Check if the "Constant" attribute is set.
RooAbsArg * first() const
TIterator * createIterator(Bool_t dir=kIterForward) const
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 TGraph is an 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.