70 cout <<
"no parameters of interest" << endl;
75 cout <<
"only one parameter of interest is supported currently" << endl;
82 cout <<
"no nuisance parameters" << endl;
87 cout <<
"pdf not set" << endl;
103 Double_t step = (max-min)/(curve_N-1);
105 for(
int i=0; i<curve_N; ++i){
106 curve_x[i]=min+step*i;
110 map<string, std::vector<Double_t> > name_val;
111 for(
int i=0; i<curve_N; i++){
117 while((nuis_params_obj=nuis_params_itr->
Next())){
121 if(nuis_params->
getSize()==0)
continue;
122 if(nuis_param && (! nuis_param->
isConstant())){
123 if(name_val.find(name)==name_val.end()) name_val[name]=std::vector<Double_t>(curve_N);
127 TGraph* g =
new TGraph(curve_N, curve_x, &(name_val[name].front()));
virtual RooAbsReal * createNLL(RooAbsData &data, const RooLinkedList &cmdList)
Construct representation of -log(L) of PDFwith given dataset.
virtual const char * GetName() const
Returns name of object.
TIterator * createIterator(Bool_t dir=kIterForward) const
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
Double_t getVal(const RooArgSet *set=0) const
virtual void SetName(const char *name)
Set the name of the TNamed.
TAxis * GetYaxis() const
Get y axis of the graph.
virtual void SetTitle(const char *title="")
Set graph title.
Iterator abstract base class.
RooRealVar represents a fundamental (non-derived) real valued object.
virtual void setVal(Double_t value)
Set value of variable to 'value'.
RooAbsArg * first() const
RooAbsData is the common abstract base class for binned and unbinned datasets.
TAxis * GetXaxis() const
Get x axis of the graph.
Namespace for the RooStats classes.
RooAbsPdf * GetPdf() const
get model PDF (return NULL if pdf has not been specified or does not exist)
const RooArgSet * GetParametersOfInterest() const
get RooArgSet containing the parameter of interest (return NULL if not existing)
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
virtual ~ProfileInspector()
ProfileInspector destructor.
Mother of all ROOT objects.
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
virtual void Add(TObject *obj)
const RooArgSet * GetNuisanceParameters() const
get RooArgSet containing the nuisance parameters (return NULL if not existing)
TList * GetListOfProfilePlots(RooAbsData &data, RooStats::ModelConfig *config)
virtual RooAbsReal * createProfile(const RooArgSet ¶msOfInterest)
Create a RooProfileLL object that eliminates all nuisance parameters in the present function...
virtual TObject * Next()=0
A Graph is a graphics object made of two arrays X and Y with npoints each.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
Bool_t isConstant() const