122 virtual void printName(std::ostream& os)
const ;
123 virtual void printTitle(std::ostream& os)
const ;
125 virtual void printArgs(std::ostream& os)
const ;
126 virtual void printValue(std::ostream& os)
const ;
174 Double_t chiSquare(
const char* pdfname,
const char* histname,
int nFitParam=0)
const ;
176 RooHist*
residHist(
const char* histname=0,
const char* pdfname=0,
bool normalize=
false,
bool useAverage=
true)
const ;
178 RooHist*
pullHist(
const char* histname=0,
const char* pdfname=0,
bool useAverage=
true)
const
179 {
return residHist(histname,pdfname,
true,useAverage); }
213 const char*
rawOpt()
const ;
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define ClassDef(name, id)
static void indent(ostringstream &buf, int indent_level)
include TDocParser_001 C image html pict1_TDocParser_001 png width
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...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
A RooCurve is a one-dimensional graphical representation of a real-valued function.
A RooHist is a graphical representation of binned data based on the TGraphAsymmErrors class.
A RooList is a TList with extra support for working with options that are associated with each node.
DrawOpt(const char *_rawOpt=0)
const char * rawOpt() const
Return the raw draw options.
A RooPlot is a plot frame and a container for graphics objects within that frame.
RooPlot()
Default constructor coverity[UNINIT_CTOR].
void SetAxisColor(Color_t color=1, Option_t *axis="X")
static Bool_t setAddDirectoryStatus(Bool_t flag)
Configure whether new instances of RooPlot will add themselves to gDirectory.
Bool_t drawAfter(const char *after, const char *target)
Change the order in which our contained objects are drawn so that the target object is drawn just aft...
void SetMarkerSize(Size_t msize=1)
const RooPlotable * _normObj
RooAbsRealLValue * _plotVarClone
RooHist * residHist(const char *histname=0, const char *pdfname=0, bool normalize=false, bool useAverage=true) const
Return a RooHist (derives from TGraphAsymErrors) containing the residuals of a histogram.
virtual void printTitle(std::ostream &os) const
Print frame title.
virtual Int_t defaultPrintContents(Option_t *opt) const
Define default print options, for a given print style.
static Bool_t _addDirStatus
non-persistent
Bool_t drawBefore(const char *before, const char *target)
Change the order in which our contained objects are drawn so that the target object is drawn just bef...
void SetMarkerColor(Color_t tcolor=1)
Double_t chiSquare(int nFitParam=0) const
Shortcut for RooPlot::chiSquare(const char* pdfname, const char* histname, int nFitParam=0)
virtual void printClassName(std::ostream &os) const
Print frame class name.
void SetContourLevel(Int_t level, Double_t value)
void SetXTitle(const char *title)
void SetFillColor(Color_t fcolor)
TAttMarker * getAttMarker(const char *name=0) const
Return a pointer to the marker attributes of the named object in this plot, or zero if the named obje...
void SetStats(Bool_t stats=kTRUE)
Like TH1::SetStats(), but statistics boxes are off by default in RooFit.
void SetNdivisions(Int_t n=510, Option_t *axis="X")
TString histName() const
Construct automatic name of internal TH1.
void updateYAxis(Double_t ymin, Double_t ymax, const char *label="")
Update our y-axis limits to accomodate an object whose spread in y is (ymin,ymax).
void SetMarkerStyle(Style_t mstyle=1)
void addObject(TObject *obj, Option_t *drawOptions="", Bool_t invisible=kFALSE)
Add a generic object to this plot.
TString getDrawOptions(const char *name) const
Return the Draw() options registered for the named object.
virtual void printArgs(std::ostream &os) const
Interface for printing of object arguments.
void SetDrawOption(Option_t *option="")
void SetZTitle(const char *title)
Double_t GetMinimum(Double_t minval=-FLT_MAX) const
static void AddDirectory(Bool_t add=kTRUE)
Configure whether new instances of RooPlot will add themselves to gDirectory.
void SetContour(Int_t nlevels, const Double_t *levels=0)
Double_t getFitRangeNEvt() const
Return the number of events in the fit range.
Double_t getPadFactor() const
Double_t getFitRangeBinW() const
Return the bin width that is being used to normalise the PDF.
const RooArgSet * getNormVars() const
RooPlot(const RooPlot &other)
void SetDirectory(TDirectory *dir)
Set the directory that this plot is associated to.
TAttFill * getAttFill(const char *name=0) const
Return a pointer to the fill attributes of the named object in this plot, or zero if the named object...
void SetTitle(const char *name)
Set the title of the RooPlot to 'title'.
virtual void printName(std::ostream &os) const
Print frame name.
void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X")
void SetLineWidth(Width_t lwidth)
void SetTickLength(Float_t length=0.02, Option_t *axis="X")
Double_t _normNumEvts
Pointer to normalization object ;.
TAttText * getAttText(const char *name=0) const
Return a pointer to the text attributes of the named object in this plot, or zero if the named object...
void SetLabelSize(Float_t size=0.02, Option_t *axis="X")
virtual void SetMinimum(Double_t minimum=-1111)
Set minimum value of Y axis.
void SetOption(Option_t *option=" ")
TObject * getObject(Int_t idx) const
Return the name of the object at slot 'idx' in this RooPlot.
RooAbsRealLValue * getPlotVar() const
void SetNameTitle(const char *name, const char *title)
Set the name and title of the RooPlot to 'name' and 'title'.
void SetName(const char *name)
Set the name of the RooPlot to 'name'.
void SetLabelFont(Style_t font=62, Option_t *axis="X")
void SetLineStyle(Style_t lstyle)
void setPadFactor(Double_t factor)
TAttLine * getAttLine(const char *name=0) const
Return a pointer to the line attributes of the named object in this plot, or zero if the named object...
void SetTitleFont(Style_t font=62, Option_t *axis="X")
void SetLineColor(Color_t lcolor)
void SetFillStyle(Style_t fstyle)
const char * nameOf(Int_t idx) const
Return the name of the object at slot 'idx' in this RooPlot.
Bool_t getInvisible(const char *name) const
Returns true of object with given name is set to be invisible.
void updateNormVars(const RooArgSet &vars)
Install the given set of observables are reference normalization variables for this frame.
RooPlot * emptyClone(const char *name)
Return empty clone of current RooPlot.
void SetMarkerAttributes()
Double_t GetMaximum(Double_t maxval=FLT_MAX) const
static RooPlot * frame(const RooAbsRealLValue &var, Double_t xmin, Double_t xmax, Int_t nBins)
Create a new frame for a given variable in x.
virtual ~RooPlot()
Destructor.
Bool_t setDrawOptions(const char *name, TString options)
Register the specified drawing options for the named object.
void SetLabelColor(Color_t color=1, Option_t *axis="X")
void addPlotable(RooPlotable *plotable, Option_t *drawOptions="", Bool_t invisible=kFALSE, Bool_t refreshNorm=kFALSE)
Add the specified plotable object to our plot.
void setInvisible(const char *name, Bool_t flag=kTRUE)
If flag is true object with 'name' is set to be invisible i.e.
void addTH1(TH1 *hist, Option_t *drawOptions="", Bool_t invisible=kFALSE)
Add a TH1 histogram object to this plot.
virtual void SetMaximum(Double_t maximum=-1111)
Set maximum value of Y axis.
void SetYTitle(const char *title)
TObject * findObject(const char *name, const TClass *clas=0) const
Find the named object in our list of items and return a pointer to it.
void Browse(TBrowser *b)
Plot RooPlot when double-clicked in browser.
virtual void printMultiline(std::ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const
Frame detailed printing.
std::unique_ptr< TLegend > BuildLegend() const
Build a legend that contains all objects that have been drawn on the plot.
void updateFitRangeNorm(const TH1 *hist)
Update our plot normalization over our plot variable's fit range, which will be determined by the fir...
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
RooCurve * getCurve(const char *name=0) const
Return a RooCurve pointer of the named object in this plot, or zero if the named object does not exis...
static Bool_t AddDirectoryStatus()
Query whether new instances of RooPlot will add themselves to gDirectory.
void SetTitleSize(Float_t size=0.02, Option_t *axis="X")
static Bool_t addDirectoryStatus()
Query whether new instances of RooPlot will add themselves to gDirectory.
void SetBarOffset(Float_t offset=0.25)
void SetBarWidth(Float_t width=0.5)
Int_t GetNdivisions(Option_t *axis="X") const
void SetAxisRange(Double_t xmin, Double_t xmax, Option_t *axis="X")
TString caller(const char *method) const
Utility function.
RooHist * pullHist(const char *histname=0, const char *pdfname=0, bool useAverage=true) const
Uses residHist() and sets normalize=true.
void initialize()
Perform initialization that is common to all constructors.
static RooPlot * frameWithLabels(const RooAbsRealLValue &var)
Create a new frame for a given variable in x, adding bin labels.
void remove(const char *name=0, Bool_t deleteToo=kTRUE)
Remove object with given name, or last object added if no name is given.
void SetTitleOffset(Float_t offset=1, Option_t *axis="X")
RooHist * getHist(const char *name=0) const
Return a RooCurve pointer of the named object in this plot, or zero if the named object does not exis...
virtual void printValue(std::ostream &os) const
Print frame arguments.
Class RooPotable is a base class for objects that can be inserted into RooPlots and take advantage of...
RooPlotable is a 'mix-in' base class that define the standard RooFit plotting and printing methods.
virtual StyleOption defaultPrintStyle(Option_t *opt) const
static std::ostream & defaultPrintStream(std::ostream *os=0)
Return a reference to the current default stream to use in Print().
virtual void printStream(std::ostream &os, Int_t contents, StyleOption style, TString indent="") const
Print description of object on ostream, printing contents set by contents integer,...
Fill Area Attributes class.
Class to manage histogram axis.
Using a TBrowser one can browse all ROOT objects.
TClass instances represent classes, structs and namespaces in the ROOT type system.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Describe directory structure in memory.
TH1 is the base class of all histogram classes in ROOT.
This class displays a legend box (TPaveText) containing several legend entries.
The TNamed class is the base class for all named ROOT classes.
Mother of all ROOT objects.