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)
virtual void printValue(std::ostream &os) const
Print frame arguments.
void SetBarWidth(Float_t width=0.5)
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 SetLineColor(Color_t lcolor)
A RooCurve is a one-dimensional graphical representation of a real-valued function.
virtual void printName(std::ostream &os) const
Print frame name.
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 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'.
void addObject(TObject *obj, Option_t *drawOptions="", Bool_t invisible=kFALSE)
Add a generic object to this plot.
RooHist * pullHist(const char *histname=0, const char *pdfname=0, bool useAverage=false) 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...
void SetTitle(const char *name)
Set the title of the RooPlot to 'title'.
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 SetDrawOption(Option_t *option="")
Set drawing option for object.
virtual StyleOption defaultPrintStyle(Option_t *opt) const
TObject * getObject(Int_t idx) const
Return the name of the object at slot 'idx' in this RooPlot.
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...
Double_t GetMaximum(Double_t maxval=FLT_MAX) const
Iterator abstract base class.
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...
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 ;.
TString histName() const
Construct automatic name of internal TH1.
virtual void printMultiline(std::ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const
Frame detailed printing.
void initialize(const char *_rawOpt)
Initialize the DrawOpt helper class.
void SetLineStyle(Style_t lstyle)
void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X")
void SetAxisRange(Double_t xmin, Double_t xmax, Option_t *axis="X")
Using a TBrowser one can browse all ROOT objects.
void initialize()
Perform initialization that is common to all constructors.
void SetLabelSize(Float_t size=0.02, Option_t *axis="X")
Double_t length(const TVector2 &v)
void SetContourLevel(Int_t level, Double_t value)
Class to manage histogram axis.
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
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()
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 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)
virtual Int_t defaultPrintContents(Option_t *opt) const
Define default print options, for a given print style.
void SetContour(Int_t nlevels, const Double_t *levels=0)
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'...
const char * rawOpt() const
Return the raw draw options.
RooAbsRealLValue * _plotVarClone
void SetLabelFont(Style_t font=62, Option_t *axis="X")
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
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...
Double_t chiSquare(int nFitParam=0) const
void SetTickLength(Float_t length=0.02, Option_t *axis="X")
static void indent(ostringstream &buf, int indent_level)
RooAbsRealLValue * getPlotVar() const
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. ...
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.
static std::ostream & defaultPrintStream(std::ostream *os=0)
Return a reference to the current default stream to use in Print().
virtual Int_t GetSize() const
Int_t GetNdivisions(Option_t *axis="X") const
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
void SetMarkerStyle(Style_t mstyle=1)
Describe directory structure in memory.
virtual void printArgs(std::ostream &os) const
Interface for printing of object arguments.
const RooPlotable * _normObj
static Bool_t setAddDirectoryStatus(Bool_t flag)
void setPadFactor(Double_t factor)
Double_t getFitRangeBinW() const
TString caller(const char *method) const
Utility function.
void SetBarOffset(Float_t offset=0.25)
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...
virtual void printTitle(std::ostream &os) const
Print frame title.
RooPlot * emptyClone(const char *name)
Return empty clone of current RooPlot.
void SetTitleOffset(Float_t offset=1, Option_t *axis="X")
Mother of all ROOT objects.
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 printClassName(std::ostream &os) const
Print frame class name.
const RooArgSet * getNormVars() const
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
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...
Double_t GetMinimum(Double_t minval=-FLT_MAX) const
void SetAxisColor(Color_t color=1, Option_t *axis="X")
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 SetFillColor(Color_t fcolor)
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].
TString getDrawOptions(const char *name) const
Return the Draw() options registered for the named object.
Double_t getPadFactor() const
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
Double_t getFitRangeNEvt() const