91 void SetName(
const char *name) ;
115 void remove(
const char* name=0,
Bool_t deleteToo=
kTRUE) ;
118 virtual void printName(std::ostream& os)
const ;
119 virtual void printTitle(std::ostream& os)
const ;
121 virtual void printArgs(std::ostream& os)
const ;
122 virtual void printValue(std::ostream& os)
const ;
167 Double_t chiSquare(
const char* pdfname,
const char* histname,
int nFitParam=0)
const ;
169 RooHist*
residHist(
const char* histname=0,
const char* pdfname=0,
bool normalize=
false,
bool useAverage=
kFALSE)
const ;
170 RooHist*
pullHist(
const char* histname=0,
const char* pdfname=0,
bool useAverage=
false)
const 171 {
return residHist(histname,pdfname,
true,useAverage); }
187 const char*
rawOpt()
const ;
void SetNdivisions(Int_t n=510, Option_t *axis="X")
void SetOption(Option_t *option=" ")
void SetXTitle(const char *title)
TString getDrawOptions(const char *name) const
Return the Draw() options registered for the named object.
void SetBarWidth(Float_t width=0.5)
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...
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, which is interpreted as an OR of 'enum ContentsOptions' values and in the style given by 'enum StyleOption'.
Bool_t getInvisible(const char *name) const
Returns true of object with given name is set to be invisible.
void SetLineColor(Color_t lcolor)
A RooCurve is a one-dimensional graphical representation of a real-valued function.
void SetLabelColor(Color_t color=1, Option_t *axis="X")
void SetName(const char *name)
Set the name of the RooPlot to 'name'.
virtual ~RooPlot()
Destructor.
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
void addObject(TObject *obj, Option_t *drawOptions="", Bool_t invisible=kFALSE)
Add a generic object to this plot.
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
Double_t chiSquare(int nFitParam=0) const
void SetYTitle(const char *title)
void SetMarkerColor(Color_t tcolor=1)
void addTH1(TH1 *hist, Option_t *drawOptions="", Bool_t invisible=kFALSE)
Add a TH1 histogram object to this plot.
void addPlotable(RooPlotable *plotable, Option_t *drawOptions="", Bool_t invisible=kFALSE, Bool_t refreshNorm=kFALSE)
Add the specified plotable object to our plot.
void SetZTitle(const char *title)
Class RooPotable is a base class for objects that can be inserted into RooPlots and take advantage of...
void SetStats(Bool_t stats=kTRUE)
DrawOpt(const char *_rawOpt=0)
void updateNormVars(const RooArgSet &vars)
Install the given set of observables are reference normalization variables for this frame...
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...
Int_t GetNdivisions(Option_t *axis="X") const
void SetTitle(const char *name)
Set the title of the RooPlot to 'title'.
void SetDrawOption(Option_t *option="")
Set drawing option for object.
Iterator abstract base class.
Double_t getFitRangeBinW() const
void SetTitleSize(Float_t size=0.02, Option_t *axis="X")
virtual void SetMinimum(Double_t minimum=-1111)
Set minimum value of Y axis.
void setInvisible(const char *name, Bool_t flag=kTRUE)
If flag is true object with 'name' is set to be invisible i.e.
A RooHist is a graphical representation of binned data based on the TGraphAsymmErrors class...
Fill Area Attributes class.
static Bool_t _addDirStatus
non-persistent
#define ClassDef(name, id)
RooPlotable is a 'mix-in' base class that define the standard RooFit plotting and printing methods...
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...
The TNamed class is the base class for all named ROOT classes.
Bool_t setDrawOptions(const char *name, TString options)
Register the specified drawing options for the named object.
Double_t _defYmin
non-persistent
void SetLineWidth(Width_t lwidth)
Double_t _normNumEvts
Pointer to normalization object ;.
const char * rawOpt() const
Return the raw draw options.
Double_t GetMinimum(Double_t minval=-FLT_MAX) const
const RooArgSet * getNormVars() const
void initialize(const char *_rawOpt)
Initialize the DrawOpt helper class.
virtual Stat_t GetBinContent(Int_t) const
A plot object is a frame without any bin contents of its own so this method always returns zero...
void SetLineStyle(Style_t lstyle)
void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X")
virtual void printName(std::ostream &os) const
Print frame name.
void SetAxisRange(Double_t xmin, Double_t xmax, Option_t *axis="X")
Using a TBrowser one can browse all ROOT objects.
void SetLabelSize(Float_t size=0.02, Option_t *axis="X")
TString caller(const char *method) const
Utility function.
void SetContourLevel(Int_t level, Double_t value)
Class to manage histogram axis.
virtual void SetMaximum(Double_t maximum=-1111)
Set maximum value of Y axis.
void updateFitRangeNorm(const TH1 *hist)
Update our plot normalization over our plot variable's fit range, which will be determined by the fir...
void SetMarkerAttributes()
const char * nameOf(Int_t idx) const
Return the name of the object at slot 'idx' in this RooPlot.
void SetNameTitle(const char *name, const char *title)
Set the name and title of the RooPlot to 'name' and 'title'.
void SetMarkerSize(Size_t msize=1)
void SetContour(Int_t nlevels, const Double_t *levels=0)
RooAbsRealLValue * _plotVarClone
void SetLabelFont(Style_t font=62, Option_t *axis="X")
void SetTitleFont(Style_t font=62, Option_t *axis="X")
The ROOT global object gROOT contains a list of all defined classes.
void Browse(TBrowser *b)
Plot RooPlot when double-clicked in browser.
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...
A RooList is a TList with extra support for working with options that are associated with each node...
virtual void printClassName(std::ostream &os) const
Print frame class name.
void SetTickLength(Float_t length=0.02, Option_t *axis="X")
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...
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
static std::ostream & defaultPrintStream(std::ostream *os=0)
Return a reference to the current default stream to use in Print().
Double_t getPadFactor() const
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...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
void SetMarkerStyle(Style_t mstyle=1)
virtual void printArgs(std::ostream &os) const
Interface for printing of object arguments.
Describe directory structure in memory.
const RooPlotable * _normObj
static Bool_t setAddDirectoryStatus(Bool_t flag)
virtual void printMultiline(std::ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const
Frame detailed printing.
virtual StyleOption defaultPrintStyle(Option_t *opt) const
void setPadFactor(Double_t factor)
RooHist * residHist(const char *histname=0, const char *pdfname=0, bool normalize=false, bool useAverage=kFALSE) const
Return a RooHist containing the residuals of histogram 'histname' with respect to curve 'curvename'...
TObject * getObject(Int_t idx) const
Return the name of the object at slot 'idx' in this RooPlot.
void SetBarOffset(Float_t offset=0.25)
virtual Int_t defaultPrintContents(Option_t *opt) const
Define default print options, for a given print style.
Double_t GetMaximum(Double_t maxval=FLT_MAX) const
RooPlot * emptyClone(const char *name)
Return empty clone of current RooPlot.
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 SetTitleOffset(Float_t offset=1, Option_t *axis="X")
Mother of all ROOT objects.
TString histName() const
Construct automatic name of internal TH1.
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
RooAbsRealLValue * getPlotVar() const
void SetAxisColor(Color_t color=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...
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
virtual void printTitle(std::ostream &os) const
Print frame title.
Double_t getFitRangeNEvt() const
void SetFillColor(Color_t fcolor)
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
void SetFillStyle(Style_t fstyle)
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).
static Bool_t addDirectoryStatus()
RooPlot()
Default constructor coverity[UNINIT_CTOR].
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.
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
RooHist * pullHist(const char *histname=0, const char *pdfname=0, bool useAverage=false) const
virtual void printValue(std::ostream &os) const
Print frame arguments.