class RooPlot: public TNamed, public RooPrintable

Function Members (Methods)

public:
RooPlot()
RooPlot(Double_t xmin, Double_t xmax)
RooPlot(const RooAbsRealLValue& var1, const RooAbsRealLValue& var2)
RooPlot(const RooAbsRealLValue& var, Double_t xmin, Double_t xmax, Int_t nBins)
RooPlot(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax)
RooPlot(const char* name, const char* title, const RooAbsRealLValue& var, Double_t xmin, Double_t xmax, Int_t nBins)
RooPlot(const RooAbsRealLValue& var1, const RooAbsRealLValue& var2, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax)
virtual~RooPlot()
voidTObject::AbstractMethod(const char* method) const
voidaddObject(TObject* obj, Option_t* drawOptions = "", Bool_t invisible = kFALSE)
voidaddPlotable(RooPlotable* plotable, Option_t* drawOptions = "", Bool_t invisible = kFALSE, Bool_t refreshNorm = kFALSE)
voidaddTH1(TH1* hist, Option_t* drawOptions = "", Bool_t invisible = kFALSE)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
Double_tchiSquare(int nFitParam = 0) const
Double_tchiSquare(const char* pdfname, const char* histname, int nFitParam = 0) const
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
static ostream&RooPrintable::defaultStream(ostream* os = 0)
virtual voidTObject::Delete(Option_t* option = "")
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidDraw(Option_t* options = 0)
Bool_tdrawAfter(const char* after, const char* target)
Bool_tdrawBefore(const char* before, const char* target)
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTObject::Dump() const
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
TObject*findObject(const char* name, const TClass* clas = 0) const
TAttFill*getAttFill(const char* name = 0) const
TAttLine*getAttLine(const char* name = 0) const
TAttMarker*getAttMarker(const char* name = 0) const
TAttText*getAttText(const char* name = 0) const
virtual Stat_tGetBinContent(Int_t) const
virtual Stat_tGetBinContent(Int_t, Int_t) const
virtual Stat_tGetBinContent(Int_t, Int_t, Int_t) const
RooCurve*getCurve(const char* name = 0) const
virtual Option_t*TObject::GetDrawOption() const
TStringgetDrawOptions(const char* name) const
static Long_tTObject::GetDtorOnly()
Double_tgetFitRangeBinW() const
Double_tgetFitRangeNEvt() const
Double_tgetFitRangeNEvt(Double_t xlo, Double_t xhi) const
RooHist*getHist(const char* name = 0) const
virtual const char*TObject::GetIconName() const
Bool_tgetInvisible(const char* name) const
Double_tGetMaximum(Double_t maxval = FLT_MAX) const
Double_tGetMinimum(Double_t minval = -FLT_MAX) const
virtual const char*TNamed::GetName() const
Int_tGetNbinsX() const
Int_tGetNdivisions(Option_t* axis = "X") const
const RooArgSet*getNormVars() const
TObject*getObject(Int_t idx) const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Double_tgetPadFactor() const
RooAbsRealLValue*getPlotVar() const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
TAxis*GetXaxis() const
TAxis*GetYaxis() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
static voidRooPrintable::inLinePrint(ostream& os, const TNamed& named)
virtual voidTObject::Inspect() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
RooPrintable::PrintOptionRooPrintable::lessVerbose(RooPrintable::PrintOption opt) const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
const char*nameOf(Int_t idx) const
virtual Bool_tTObject::Notify()
Stat_tnumItems() const
static voidRooPrintable::oneLinePrint(ostream& os, const TNamed& named)
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TNamed&TNamed::operator=(const TNamed& rhs)
virtual voidTObject::Paint(Option_t* option = "")
RooPrintable::PrintOptionRooPrintable::parseOptions(Option_t* options) const
virtual voidTObject::Pop()
virtual voidPrint(Option_t* options = 0) const
virtual voidprintToStream(ostream& os, RooPrintable::PrintOption opt = Standard, TString indent = "") const
RooHist*pullHist(const char* histname = 0, const char* pdfname = 0) const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
RooHist*residHist(const char* histname = 0, const char* pdfname = 0, bool normalize = false) const
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidSetAxisColor(Color_t color = 1, Option_t* axis = "X")
voidSetAxisRange(Double_t xmin, Double_t xmax, Option_t* axis = "X")
voidSetBarOffset(Float_t offset = 0.25)
voidSetBarWidth(Float_t width = 0.5)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetContour(Int_t nlevels, const Double_t* levels = 0)
voidSetContourLevel(Int_t level, Double_t value)
virtual voidSetDrawOption(Option_t* option = "")
Bool_tsetDrawOptions(const char* name, TString options)
static voidTObject::SetDtorOnly(void* obj)
voidSetFillAttributes()
voidSetFillColor(Color_t fcolor)
voidSetFillStyle(Style_t fstyle)
voidsetInvisible(const char* name, Bool_t flag = kTRUE)
voidSetLabelColor(Color_t color = 1, Option_t* axis = "X")
voidSetLabelFont(Style_t font = 62, Option_t* axis = "X")
voidSetLabelOffset(Float_t offset = 0.005, Option_t* axis = "X")
voidSetLabelSize(Float_t size = 0.02, Option_t* axis = "X")
voidSetLineAttributes()
voidSetLineColor(Color_t lcolor)
voidSetLineStyle(Style_t lstyle)
voidSetLineWidth(Width_t lwidth)
voidSetMarkerAttributes()
voidSetMarkerColor(Color_t tcolor = 1)
voidSetMarkerSize(Size_t msize = 1)
voidSetMarkerStyle(Style_t mstyle = 1)
virtual voidSetMaximum(Double_t maximum = -1111)
virtual voidSetMinimum(Double_t minimum = -1111)
virtual voidSetName(const char* name)
virtual voidSetNameTitle(const char* name, const char* title)
voidSetNdivisions(Int_t n = 510, Option_t* axis = "X")
static voidTObject::SetObjectStat(Bool_t stat)
voidSetOption(Option_t* option = " ")
voidsetPadFactor(Double_t factor)
voidSetStats(Bool_t stats = kTRUE)
voidSetTickLength(Float_t length = 0.02, Option_t* axis = "X")
virtual voidSetTitle(const char* name)
voidSetTitleFont(Style_t font = 62, Option_t* axis = "X")
voidSetTitleOffset(Float_t offset = 1, Option_t* axis = "X")
voidSetTitleSize(Float_t size = 0.02, Option_t* axis = "X")
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetXTitle(const char* title)
voidSetYTitle(const char* title)
voidSetZTitle(const char* title)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
voidupdateNormVars(const RooArgSet& vars)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
RooPlot(const RooPlot& other)
TStringcaller(const char* method) const
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
TStringhistName() const
voidinitialize()
voidTObject::MakeZombie()
voidupdateFitRangeNorm(const TH1* hist)
voidupdateFitRangeNorm(const RooPlotable* rp, Bool_t refeshNorm = kFALSE)
voidupdateYAxis(Double_t ymin, Double_t ymax, const char* label = "")

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
enum RooPrintable::PrintOption { InLine
OneLine
Standard
Shape
Verbose
};
protected:
Double_t_defYmaxDefault maximum for Yaxis (as calculated from contents)
Double_t_defYminDefault minimum for Yaxis (as calculated from contents)
TDirectory*_dir! non-persistent
TH1*_histHistogram that we uses as basis for drawing the content
RooList_itemsA list of the items we contain.
TIterator*_iterator! non-persistent
Double_t_normBinWidthHistogram bin width (for normalization)
Double_t_normNumEvtsNumber of events in histogram (for normalization)
const RooPlotable*_normObj! Pointer to normalization object ;
RooArgSet*_normVarsVariables that PDF plots should be normalized over
Double_t_padFactorScale our y-axis to _padFactor of our maximum contents.
RooAbsRealLValue*_plotVarCloneA clone of the variable we are plotting.
RooArgSet*_plotVarSetA list owning the cloned tree nodes of the plotVarClone
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

RooPlot(const RooPlot& other)
RooPlot(Double_t xmin, Double_t xmax)
RooPlot(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax)
 Create an empty frame with the specified x- and y-axis limits.
RooPlot(const RooAbsRealLValue &var1, const RooAbsRealLValue &var2)
 Create an empty frame with the specified x- and y-axis limits
 and with labels determined by the specified variables.
RooPlot(const RooAbsRealLValue &var1, const RooAbsRealLValue &var2, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax)
 Create an empty frame with the specified x- and y-axis limits
 and with labels determined by the specified variables.
RooPlot(const char* name, const char* title, const RooAbsRealLValue &var, Double_t xmin, Double_t xmax, Int_t nbins)
 Create an empty frame with its title and x-axis range and label taken
 from the specified real variable. We keep a clone of the variable
 so that we do not depend on its lifetime and are decoupled from
 any later changes to its state.
RooPlot(const RooAbsRealLValue &var, Double_t xmin, Double_t xmax, Int_t nbins)
 Create an empty frame with its title and x-axis range and label taken
 from the specified real variable. We keep a clone of the variable
 so that we do not depend on its lifetime and are decoupled from
 any later changes to its state.
void initialize()
 Perform initialization that is common to all constructors.
TString histName()
~RooPlot()
 Delete the items in our container and our iterator.
void updateNormVars(const RooArgSet& vars)
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.
Stat_t GetBinContent(Int_t , Int_t ) const
 A plot object is a frame without any bin contents of its own so this
 method always returns zero.
Stat_t GetBinContent(Int_t , Int_t , Int_t ) const
 A plot object is a frame without any bin contents of its own so this
 method always returns zero.
void addObject(TObject* obj, Option_t* drawOptions = "", Bool_t invisible = kFALSE)
 Add a generic object to this plot. The specified options will be
 used to Draw() this object later. The caller transfers ownership
 of the object with this call, and the object will be deleted
 when its containing plot object is destroyed.
void addTH1(TH1* hist, Option_t* drawOptions = "", Bool_t invisible = kFALSE)
 Add a TH1 histogram object to this plot. The specified options
 will be used to Draw() this object later. "SAME" will be added to
 the options if they are not already present. Note that histograms
 should probably not be drawn with error bars since they will not
 be calculated correctly for bins with low statistics, and will
 not be accounted for in the automatic y-axis range adjustment. To
 histogram data in a RooDataSet without these problems, use
 RooDataSet::plotOn(). The caller transfers ownership of the
 object with this call, and the object will be deleted when its
 containing plot object is destroyed.
void addPlotable(RooPlotable* plotable, Option_t* drawOptions = "", Bool_t invisible = kFALSE, Bool_t refreshNorm = kFALSE)
 Add the specified plotable object to our plot. Increase our y-axis
 limits to fit this object if necessary. The default lower-limit
 is zero unless we are plotting an object that takes on negative values.
 This call transfers ownership of the plotable object to this class.
 The plotable object will be deleted when this plot object is deleted.
void updateFitRangeNorm(const TH1* hist)
 Update our plot normalization over our plot variable's fit range,
 which will be determined by the first suitable object added to our plot.
void updateFitRangeNorm(const RooPlotable* rp, Bool_t refeshNorm = kFALSE)
 Update our plot normalization over our plot variable's fit range,
 which will be determined by the first suitable object added to our plot.
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). Use the specified y-axis label if we don't
 have one assigned already.
void Draw(Option_t* options = 0)
 Draw this plot and all of the elements it contains. The specified options
 only apply to the drawing of our frame. The options specified in our add...()
 methods will be used to draw each object we contain.
void printToStream(ostream& os, RooPrintable::PrintOption opt = Standard, TString indent = "") const
 Print info about this plot object to the specified stream.

  Standard: plot variable and number of contained objects
     Shape: list of our contained objects
const char* nameOf(Int_t idx) const
 Return the name of the object at slot 'idx' in this RooPlot.
 If the given index is out of range, return a null pointer
TObject* getObject(Int_t idx) const
 Return the name of the object at slot 'idx' in this RooPlot.
 If the given index is out of range, return a null pointer
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 does not exist or does not have line attributes.
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 does not exist or does not have fill attributes.
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 object does not exist or does not have marker attributes.
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 does not exist or does not have text attributes.
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 exist or is not a RooCurve
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 exist or is not a RooCurve
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 before the specified object.
 Returns kFALSE if either object does not exist.
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 after the specified object.
 Returns kFALSE if either object does not exist.
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. Return zero and print a warning message if the named
 object cannot be found. If no name is supplied the last object
 added is returned.

 Note that the returned pointer is to a
 TObject and so will generally need casting. Use the getAtt...()
 methods to change the drawing style attributes of a contained
 object directly.
TString getDrawOptions(const char* name) const
 Return the Draw() options registered for the named object. Return
 an empty string if the named object cannot be found.
Bool_t setDrawOptions(const char* name, TString options)
 Register the specified drawing options for the named object.
 Return kFALSE if the named object cannot be found.
Bool_t getInvisible(const char* name) const
void setInvisible(const char* name, Bool_t flag = kTRUE)
TString caller(const char* method) const
void SetMaximum(Double_t maximum = -1111)
void SetMinimum(Double_t minimum = -1111)
Double_t chiSquare(const char* pdfname, const char* histname, int nFitParam = 0) const
 Find curve object
RooHist* residHist(const char* histname = 0, const char* pdfname = 0, bool normalize = false) const
 Find curve object
Double_t getFitRangeNEvt(Double_t xlo, Double_t xhi) const
void SetName(const char* name)
void SetNameTitle(const char* name, const char* title)
void SetTitle(const char* name)
TAxis* GetXaxis()
{ return _hist->GetXaxis() ; }
TAxis* GetYaxis()
{ return _hist->GetYaxis() ; }
Int_t GetNbinsX()
{ return _hist->GetNbinsX() ; }
Int_t GetNdivisions(Option_t* axis = "X") const
{ return _hist->GetNdivisions(axis) ; }
Double_t GetMinimum(Double_t minval = -FLT_MAX) const
{ return _hist->GetMinimum(minval) ; }
Double_t GetMaximum(Double_t maxval = FLT_MAX) const
{ return _hist->GetMaximum(maxval) ; }
void SetAxisColor(Color_t color = 1, Option_t* axis = "X")
{ _hist->SetAxisColor(color,axis) ; }
void SetAxisRange(Double_t xmin, Double_t xmax, Option_t* axis = "X")
{ _hist->SetAxisRange(xmin,xmax,axis) ; }
void SetBarOffset(Float_t offset = 0.25)
{ _hist->SetBarOffset(offset) ; }
void SetBarWidth(Float_t width = 0.5)
{ _hist->SetBarWidth(width) ; }
void SetContour(Int_t nlevels, const Double_t* levels = 0)
{ _hist->SetContour(nlevels,levels) ; }
void SetContourLevel(Int_t level, Double_t value)
{ _hist->SetContourLevel(level,value) ; }
void SetDrawOption(Option_t* option = "")
{ _hist->SetDrawOption(option) ; }
void SetFillAttributes()
{ _hist->SetFillAttributes() ; }
void SetFillColor(Color_t fcolor)
{ _hist->SetFillColor(fcolor) ; }
void SetFillStyle(Style_t fstyle)
{ _hist->SetFillStyle(fstyle) ; }
void SetLabelColor(Color_t color = 1, Option_t* axis = "X")
{ _hist->SetLabelColor(color,axis) ; }
void SetLabelFont(Style_t font = 62, Option_t* axis = "X")
{ _hist->SetLabelFont(font,axis) ; }
void SetLabelOffset(Float_t offset = 0.005, Option_t* axis = "X")
{ _hist->SetLabelOffset(offset,axis) ; }
void SetLabelSize(Float_t size = 0.02, Option_t* axis = "X")
{ _hist->SetLabelSize(size,axis) ; }
void SetLineAttributes()
{ _hist->SetLineAttributes() ; }
void SetLineColor(Color_t lcolor)
{ _hist->SetLineColor(lcolor) ; }
void SetLineStyle(Style_t lstyle)
{ _hist->SetLineStyle(lstyle) ; }
void SetLineWidth(Width_t lwidth)
{ _hist->SetLineWidth(lwidth) ; }
void SetMarkerAttributes()
{ _hist->SetMarkerAttributes() ; }
void SetMarkerColor(Color_t tcolor = 1)
{ _hist->SetMarkerColor(tcolor) ; }
void SetMarkerSize(Size_t msize = 1)
{ _hist->SetMarkerSize(msize) ; }
void SetMarkerStyle(Style_t mstyle = 1)
{ _hist->SetMarkerStyle(mstyle) ; }
void SetNdivisions(Int_t n = 510, Option_t* axis = "X")
{ _hist->SetNdivisions(n,axis) ; }
void SetOption(Option_t* option = " ")
{ _hist->SetOption(option) ; }
void SetStats(Bool_t stats = kTRUE)
{ _hist->SetStats(stats) ; }
void SetTickLength(Float_t length = 0.02, Option_t* axis = "X")
{ _hist->SetTickLength(length,axis) ; }
void SetTitleFont(Style_t font = 62, Option_t* axis = "X")
{ _hist->SetTitleFont(font,axis) ; }
void SetTitleOffset(Float_t offset = 1, Option_t* axis = "X")
{ _hist->SetTitleOffset(offset,axis) ; }
void SetTitleSize(Float_t size = 0.02, Option_t* axis = "X")
{ _hist->SetTitleSize(size,axis) ; }
void SetXTitle(const char* title)
{ _hist->SetXTitle(title) ; }
void SetYTitle(const char* title)
{ _hist->SetYTitle(title) ; }
void SetZTitle(const char* title)
{ _hist->SetZTitle(title) ; }
void Streamer(TBuffer& b)
RooPlot(const RooPlot& other)
Stat_t numItems()
{return _items.GetSize();}
void Print(Option_t* options = 0) const
RooAbsRealLValue * getPlotVar()
 data member get/set methods
{ return _plotVarClone; }
Double_t getFitRangeNEvt()
{ return _normNumEvts; }
Double_t getFitRangeBinW()
{ return _normBinWidth; }
Double_t getPadFactor()
{ return _padFactor; }
void setPadFactor(Double_t factor)
{ if(factor >= 0) _padFactor= factor; }
const RooArgSet * getNormVars()
{ return _normVars; }
Double_t chiSquare(int nFitParam = 0) const
{ return chiSquare(0,0,nFitParam) ; }
RooHist* pullHist(const char* histname = 0, const char* pdfname = 0) const
{ return residHist(histname,pdfname,true); }

Last update: Thu Jan 17 08:45:30 2008
Copyright (c) 2000-2005, Regents of the University of California *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.