Logo ROOT  
Reference Guide
RooPlot.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id: RooPlot.h,v 1.37 2007/06/18 11:52:41 wouter Exp $
5  * Authors: *
6  * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7  * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8  * *
9  * Copyright (c) 2000-2005, Regents of the University of California *
10  * and Stanford University. All rights reserved. *
11  * *
12  * Redistribution and use in source and binary forms, *
13  * with or without modification, are permitted according to the terms *
14  * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15  *****************************************************************************/
16 #ifndef ROO_PLOT
17 #define ROO_PLOT
18 
19 #include "RooList.h"
20 #include "RooPrintable.h"
21 #include "TNamed.h"
22 
23 #include <memory>
24 #include <float.h>
25 
26 class TH1 ;
27 
28 class RooAbsReal;
29 class RooAbsRealLValue;
30 class RooArgSet ;
31 class RooHist;
32 class RooCurve ;
33 class RooPlotable;
34 class TDirectory ;
35 class TAttLine;
36 class TAttFill;
37 class TAttMarker;
38 class TAttText;
39 class TClass ;
40 class TAxis;
41 class TBrowser ;
42 class TLegend;
43 
44 class RooPlot : public TNamed, public RooPrintable {
45 public:
46  RooPlot() ;
47  RooPlot(const char* name, const char* title, const RooAbsRealLValue &var, Double_t xmin, Double_t xmax, Int_t nBins) ;
51  RooPlot(const RooAbsRealLValue &var1, const RooAbsRealLValue &var2);
52  RooPlot(const RooAbsRealLValue &var1, const RooAbsRealLValue &var2,
54  virtual ~RooPlot();
55 
56  static RooPlot* frame(const RooAbsRealLValue &var, Double_t xmin, Double_t xmax, Int_t nBins);
57  static RooPlot* frameWithLabels(const RooAbsRealLValue &var);
58 
59  RooPlot* emptyClone(const char* name) ;
60 
61  // implement the TH1 interface
62  virtual Stat_t GetBinContent(Int_t) const;
63  virtual Stat_t GetBinContent(Int_t, Int_t) const;
64  virtual Stat_t GetBinContent(Int_t, Int_t, Int_t) const;
65  virtual void Draw(Option_t *options= 0);
66 
67  // forwarding of relevant TH1 interface
68  TAxis* GetXaxis() const ;
69  TAxis* GetYaxis() const ;
70  Int_t GetNbinsX() const ;
71  Int_t GetNdivisions(Option_t* axis = "X") const ;
72  Double_t GetMinimum(Double_t minval = -FLT_MAX) const ;
73  Double_t GetMaximum(Double_t maxval = FLT_MAX) const ;
74 
75  void SetAxisColor(Color_t color = 1, Option_t* axis = "X") ;
76  void SetAxisRange(Double_t xmin, Double_t xmax, Option_t* axis = "X") ;
77  void SetBarOffset(Float_t offset = 0.25) ;
78  void SetBarWidth(Float_t width = 0.5) ;
79  void SetContour(Int_t nlevels, const Double_t* levels = 0) ;
80  void SetContourLevel(Int_t level, Double_t value) ;
81  void SetDrawOption(Option_t* option = "") ;
82  void SetFillAttributes() ;
83  void SetFillColor(Color_t fcolor) ;
84  void SetFillStyle(Style_t fstyle) ;
85  void SetLabelColor(Color_t color = 1, Option_t* axis = "X") ;
86  void SetLabelFont(Style_t font = 62, Option_t* axis = "X") ;
87  void SetLabelOffset(Float_t offset = 0.005, Option_t* axis = "X") ;
88  void SetLabelSize(Float_t size = 0.02, Option_t* axis = "X") ;
89  void SetLineAttributes() ;
90  void SetLineColor(Color_t lcolor) ;
91  void SetLineStyle(Style_t lstyle) ;
92  void SetLineWidth(Width_t lwidth) ;
93  void SetMarkerAttributes() ;
94  void SetMarkerColor(Color_t tcolor = 1) ;
95  void SetMarkerSize(Size_t msize = 1) ;
96  void SetMarkerStyle(Style_t mstyle = 1) ;
97  void SetName(const char *name) ;
98  void SetTitle(const char *name) ;
99  void SetNameTitle(const char *name, const char* title) ;
100  void SetNdivisions(Int_t n = 510, Option_t* axis = "X") ;
101  void SetOption(Option_t* option = " ") ;
102  void SetStats(Bool_t stats = kTRUE) ;
103  void SetTickLength(Float_t length = 0.02, Option_t* axis = "X") ;
104  void SetTitleFont(Style_t font = 62, Option_t* axis = "X") ;
105  void SetTitleOffset(Float_t offset = 1, Option_t* axis = "X") ;
106  void SetTitleSize(Float_t size = 0.02, Option_t* axis = "X") ;
107  void SetXTitle(const char* title) ;
108  void SetYTitle(const char* title) ;
109  void SetZTitle(const char* title) ;
110 
111  // container management
112  const char* nameOf(Int_t idx) const ;
113  TObject *findObject(const char *name, const TClass* clas=0) const;
114  TObject* getObject(Int_t idx) const ;
115  Stat_t numItems() const {return _items.GetSize();}
116 
117  void addPlotable(RooPlotable *plotable, Option_t *drawOptions= "", Bool_t invisible=kFALSE, Bool_t refreshNorm=kFALSE);
118  void addObject(TObject* obj, Option_t* drawOptions= "", Bool_t invisible=kFALSE);
119  void addTH1(TH1 *hist, Option_t* drawOptions= "", Bool_t invisible=kFALSE);
120  std::unique_ptr<TLegend> BuildLegend() const;
121 
122  void remove(const char* name=0, Bool_t deleteToo=kTRUE) ;
123 
124  // ascii printing
125  virtual void printName(std::ostream& os) const ;
126  virtual void printTitle(std::ostream& os) const ;
127  virtual void printClassName(std::ostream& os) const ;
128  virtual void printArgs(std::ostream& os) const ;
129  virtual void printValue(std::ostream& os) const ;
130  virtual void printMultiline(std::ostream& os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const ;
131 
132  virtual Int_t defaultPrintContents(Option_t* opt) const ;
133 
134  inline virtual void Print(Option_t *options= 0) const {
136  }
137 
138  // data member get/set methods
139  inline RooAbsRealLValue *getPlotVar() const { return _plotVarClone; }
140  ///Return the number of events in the fit range
141  inline Double_t getFitRangeNEvt() const { return _normNumEvts; }
142  Double_t getFitRangeNEvt(Double_t xlo, Double_t xhi) const ;
143  ///Return the bin width that is being used to normalise the PDF
144  inline Double_t getFitRangeBinW() const { return _normBinWidth; }
145  inline Double_t getPadFactor() const { return _padFactor; }
146  inline void setPadFactor(Double_t factor) { if(factor >= 0) _padFactor= factor; }
147  void updateNormVars(const RooArgSet &vars);
148  const RooArgSet *getNormVars() const { return _normVars; }
149 
150  // get attributes of contained objects
151  TAttLine *getAttLine(const char *name=0) const;
152  TAttFill *getAttFill(const char *name=0) const;
153  TAttMarker *getAttMarker(const char *name=0) const;
154  TAttText *getAttText(const char *name=0) const;
155 
156  // Convenient type-safe accessors
157  RooCurve* getCurve(const char* name=0) const ;
158  RooHist* getHist(const char* name=0) const ;
159 
160 
161  // rearrange drawing order of contained objects
162  Bool_t drawBefore(const char *before, const char *target);
163  Bool_t drawAfter(const char *after, const char *target);
164 
165  // get/set drawing options for contained objects
166  TString getDrawOptions(const char *name) const;
167  Bool_t setDrawOptions(const char *name, TString options);
168 
169  Bool_t getInvisible(const char* name) const ;
170  void setInvisible(const char* name, Bool_t flag=kTRUE) ;
171 
172  virtual void SetMaximum(Double_t maximum = -1111) ;
173  virtual void SetMinimum(Double_t minimum = -1111) ;
174 
175  ///Shortcut for RooPlot::chiSquare(const char* pdfname, const char* histname, int nFitParam=0)
176  Double_t chiSquare(int nFitParam=0) const { return chiSquare(0,0,nFitParam) ; }
177  Double_t chiSquare(const char* pdfname, const char* histname, int nFitParam=0) const ;
178 
179  RooHist* residHist(const char* histname=0, const char* pdfname=0,bool normalize=false, bool useAverage=kFALSE) const ;
180  ///Uses residHist() and sets normalize=true
181  RooHist* pullHist(const char* histname=0, const char* pdfname=0, bool useAverage=false) const
182  { return residHist(histname,pdfname,true,useAverage); }
183 
184  void Browse(TBrowser *b) ;
185 
186  /// \copydoc AddDirectoryStatus()
187  static Bool_t addDirectoryStatus() ;
188  /// \copydoc AddDirectory()
189  static Bool_t setAddDirectoryStatus(Bool_t flag) ;
190 
191  /// Configure whether new instances of RooPlot will add themselves to `gDirectory`.
192  /// Like TH1::AddDirectory().
193  static void AddDirectory(Bool_t add=kTRUE) {
195  }
196  /// Query whether new instances of RooPlot will add themselves to `gDirectory`.
197  /// When a file has been opened before a RooPlot instance is created,
198  /// this instance will be associated to the file. Closing the file will e.g.
199  /// write the instance to the file, and then delete it.
200  /// Like TH1::AddDirectoryStatus().
202  return addDirectoryStatus();
203  }
204 
205  void SetDirectory(TDirectory *dir);
206 
207 protected:
208 
209  RooPlot(const RooPlot& other); // cannot be copied
210 
211  class DrawOpt {
212  public:
213 
214  DrawOpt(const char* _rawOpt=0) : invisible(kFALSE) { drawOptions[0] = 0 ; initialize(_rawOpt) ; }
215  void initialize(const char* _rawOpt) ;
216  const char* rawOpt() const ;
217 
218  char drawOptions[128] ;
220  } ;
221 
222 
223  void initialize();
224  TString histName() const ;
225  TString caller(const char *method) const;
226  void updateYAxis(Double_t ymin, Double_t ymax, const char *label= "");
227  void updateFitRangeNorm(const TH1* hist);
228  void updateFitRangeNorm(const RooPlotable* rp, Bool_t refeshNorm=kFALSE);
229 
230  TH1* _hist ; // Histogram that we uses as basis for drawing the content
231 
232  RooList _items; // A list of the items we contain.
233  Double_t _padFactor; // Scale our y-axis to _padFactor of our maximum contents.
234  RooAbsRealLValue *_plotVarClone; // A clone of the variable we are plotting.
235  RooArgSet *_plotVarSet; // A list owning the cloned tree nodes of the plotVarClone
236  RooArgSet *_normVars; // Variables that PDF plots should be normalized over
237 
238  const RooPlotable* _normObj ; //! Pointer to normalization object ;
239  Double_t _normNumEvts; // Number of events in histogram (for normalization)
240  Double_t _normBinWidth; // Histogram bin width (for normalization)
241 
242  Double_t _defYmin ; // Default minimum for Yaxis (as calculated from contents)
243  Double_t _defYmax ; // Default maximum for Yaxis (as calculated from contents)
244 
245  TDirectory* _dir ; //! non-persistent
246 
247  static Bool_t _addDirStatus ; // static flag controlling AutoDirectoryAdd feature
248 
249  ClassDef(RooPlot,2) // Plot frame and container for graphics objects
250 };
251 
252 #endif
TAttText
Definition: TAttText.h:18
RooPlot::SetMarkerStyle
void SetMarkerStyle(Style_t mstyle=1)
Definition: RooPlot.cxx:1312
RooPlot::setInvisible
void setInvisible(const char *name, Bool_t flag=kTRUE)
If flag is true object with 'name' is set to be invisible i.e.
Definition: RooPlot.cxx:1047
n
const Int_t n
Definition: legend1.C:16
TAxis
Class to manage histogram axis.
Definition: TAxis.h:30
RooPlot::Draw
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
Definition: RooPlot.cxx:691
TBrowser
Definition: TBrowser.h:37
ymax
float ymax
Definition: THbookFile.cxx:95
RooPlot::getObject
TObject * getObject(Int_t idx) const
Return the name of the object at slot 'idx' in this RooPlot.
Definition: RooPlot.cxx:850
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
Style_t
short Style_t
Definition: RtypesCore.h:80
RooPlot::updateYAxis
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).
Definition: RooPlot.cxx:659
RooPlot::residHist
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'.
Definition: RooPlot.cxx:1136
RooPlot::SetYTitle
void SetYTitle(const char *title)
Definition: RooPlot.cxx:1330
RooPlot::remove
void remove(const char *name=0, Bool_t deleteToo=kTRUE)
Remove object with given name, or last object added if no name is given.
Definition: RooPlot.cxx:929
RooPlot::updateNormVars
void updateNormVars(const RooArgSet &vars)
Install the given set of observables are reference normalization variables for this frame.
Definition: RooPlot.cxx:380
RooPlot::findObject
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.
Definition: RooPlot.cxx:982
RooPlot::DrawOpt::DrawOpt
DrawOpt(const char *_rawOpt=0)
Definition: RooPlot.h:214
RooPlot::setDrawOptions
Bool_t setDrawOptions(const char *name, TString options)
Register the specified drawing options for the named object.
Definition: RooPlot.cxx:1019
RooPlot::Browse
void Browse(TBrowser *b)
Plot RooPlot when double-clicked in browser.
Definition: RooPlot.cxx:1340
RooPlot::GetMaximum
Double_t GetMaximum(Double_t maxval=FLT_MAX) const
Definition: RooPlot.cxx:1266
RooPlot::SetZTitle
void SetZTitle(const char *title)
Definition: RooPlot.cxx:1332
RooPlot::SetMarkerSize
void SetMarkerSize(Size_t msize=1)
Definition: RooPlot.cxx:1310
RooPlot::SetDirectory
void SetDirectory(TDirectory *dir)
Set the directory that this plot is associated to.
Definition: RooPlot.cxx:362
RooPlot::SetLabelColor
void SetLabelColor(Color_t color=1, Option_t *axis="X")
Definition: RooPlot.cxx:1290
RooPlot::getDrawOptions
TString getDrawOptions(const char *name) const
Return the Draw() options registered for the named object.
Definition: RooPlot.cxx:1007
RooPlot::getAttFill
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...
Definition: RooPlot.cxx:876
RooPlot::SetLineStyle
void SetLineStyle(Style_t lstyle)
Definition: RooPlot.cxx:1302
RooPlot::SetAxisColor
void SetAxisColor(Color_t color=1, Option_t *axis="X")
Definition: RooPlot.cxx:1270
xmax
float xmax
Definition: THbookFile.cxx:95
RooPlot::_defYmax
Double_t _defYmax
Definition: RooPlot.h:243
RooPlot::getFitRangeNEvt
Double_t getFitRangeNEvt() const
Return the number of events in the fit range.
Definition: RooPlot.h:141
TNamed.h
RooPlot::_dir
TDirectory * _dir
Definition: RooPlot.h:245
RooPlot::getCurve
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...
Definition: RooPlot.cxx:907
RooPlot::_addDirStatus
static Bool_t _addDirStatus
non-persistent
Definition: RooPlot.h:247
RooPlot::SetFillColor
void SetFillColor(Color_t fcolor)
Definition: RooPlot.cxx:1286
Float_t
float Float_t
Definition: RtypesCore.h:57
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
RooPrintable.h
RooPlot::AddDirectoryStatus
static Bool_t AddDirectoryStatus()
Query whether new instances of RooPlot will add themselves to gDirectory.
Definition: RooPlot.h:201
RooPlot::DrawOpt::invisible
Bool_t invisible
Definition: RooPlot.h:219
RooPlot::SetMaximum
virtual void SetMaximum(Double_t maximum=-1111)
Set maximum value of Y axis.
Definition: RooPlot.cxx:1081
RooPlot::_hist
TH1 * _hist
Definition: RooPlot.h:230
RooPlot::SetLineAttributes
void SetLineAttributes()
Definition: RooPlot.cxx:1298
RooPlot::SetBarOffset
void SetBarOffset(Float_t offset=0.25)
Definition: RooPlot.cxx:1274
RooPlot::AddDirectory
static void AddDirectory(Bool_t add=kTRUE)
Configure whether new instances of RooPlot will add themselves to gDirectory.
Definition: RooPlot.h:193
RooPlot::emptyClone
RooPlot * emptyClone(const char *name)
Return empty clone of current RooPlot.
Definition: RooPlot.cxx:296
RooPlot::defaultPrintContents
virtual Int_t defaultPrintContents(Option_t *opt) const
Define default print options, for a given print style.
Definition: RooPlot.cxx:1248
indent
static void indent(ostringstream &buf, int indent_level)
Definition: TClingCallFunc.cxx:87
RooAbsReal
Definition: RooAbsReal.h:61
RooPlot::SetContour
void SetContour(Int_t nlevels, const Double_t *levels=0)
Definition: RooPlot.cxx:1278
RooPlot::SetTitleFont
void SetTitleFont(Style_t font=62, Option_t *axis="X")
Definition: RooPlot.cxx:1322
TString
Definition: TString.h:136
RooPlot::SetBarWidth
void SetBarWidth(Float_t width=0.5)
Definition: RooPlot.cxx:1276
RooPrintable
Definition: RooPrintable.h:25
RooPlot::_items
RooList _items
Definition: RooPlot.h:232
Color_t
short Color_t
Definition: RtypesCore.h:83
RooPlot::SetLabelOffset
void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X")
Definition: RooPlot.cxx:1294
b
#define b(i)
Definition: RSha256.hxx:118
RooPlot::GetMinimum
Double_t GetMinimum(Double_t minval=-FLT_MAX) const
Definition: RooPlot.cxx:1264
RooPlot::DrawOpt::initialize
void initialize(const char *_rawOpt)
Initialize the DrawOpt helper class.
Definition: RooPlot.cxx:1160
RooPlot::drawAfter
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...
Definition: RooPlot.cxx:965
bool
RooPlot::frame
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.
Definition: RooPlot.cxx:249
RooPlot::getPadFactor
Double_t getPadFactor() const
Definition: RooPlot.h:145
RooPlot::initialize
void initialize()
Perform initialization that is common to all constructors.
Definition: RooPlot.cxx:307
RooPlot::_plotVarSet
RooArgSet * _plotVarSet
Definition: RooPlot.h:235
RooPlot::Print
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
Definition: RooPlot.h:134
RooPlot::addObject
void addObject(TObject *obj, Option_t *drawOptions="", Bool_t invisible=kFALSE)
Add a generic object to this plot.
Definition: RooPlot.cxx:422
RooPlot::printMultiline
virtual void printMultiline(std::ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const
Frame detailed printing.
Definition: RooPlot.cxx:794
RooPlot::printName
virtual void printName(std::ostream &os) const
Print frame name.
Definition: RooPlot.cxx:724
RooPlot::getFitRangeBinW
Double_t getFitRangeBinW() const
Return the bin width that is being used to normalise the PDF.
Definition: RooPlot.h:144
RooList.h
RooPlot::chiSquare
Double_t chiSquare(int nFitParam=0) const
Shortcut for RooPlot::chiSquare(const char* pdfname, const char* histname, int nFitParam=0)
Definition: RooPlot.h:176
RooPlot::SetFillAttributes
void SetFillAttributes()
Definition: RooPlot.cxx:1284
RooPlot::addPlotable
void addPlotable(RooPlotable *plotable, Option_t *drawOptions="", Bool_t invisible=kFALSE, Bool_t refreshNorm=kFALSE)
Add the specified plotable object to our plot.
Definition: RooPlot.cxx:570
RooPlot::SetFillStyle
void SetFillStyle(Style_t fstyle)
Definition: RooPlot.cxx:1288
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
RooPlot::addDirectoryStatus
static Bool_t addDirectoryStatus()
Query whether new instances of RooPlot will add themselves to gDirectory.
Definition: RooPlot.cxx:78
RooPlot::SetTitleOffset
void SetTitleOffset(Float_t offset=1, Option_t *axis="X")
Definition: RooPlot.cxx:1324
RooPlot::_defYmin
Double_t _defYmin
Definition: RooPlot.h:242
RooPlot::RooPlot
RooPlot()
Default constructor coverity[UNINIT_CTOR].
Definition: RooPlot.cxx:86
TAttLine
Definition: TAttLine.h:18
RooPlot::getAttLine
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...
Definition: RooPlot.cxx:866
xmin
float xmin
Definition: THbookFile.cxx:95
RooPlot::SetStats
void SetStats(Bool_t stats=kTRUE)
Like TH1::SetStats(), but statistics boxes are off by default in RooFit.
Definition: RooPlot.cxx:1318
RooPlot::DrawOpt::rawOpt
const char * rawOpt() const
Return the raw draw options.
Definition: RooPlot.cxx:1179
RooPrintable::defaultPrintStream
static std::ostream & defaultPrintStream(std::ostream *os=0)
Return a reference to the current default stream to use in Print().
Definition: RooPrintable.cxx:272
TNamed
Definition: TNamed.h:29
Width_t
short Width_t
Definition: RtypesCore.h:82
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
RooPlot::drawBefore
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...
Definition: RooPlot.cxx:954
RooPlot::printTitle
virtual void printTitle(std::ostream &os) const
Print frame title.
Definition: RooPlot.cxx:733
RooPlot::GetYaxis
TAxis * GetYaxis() const
Definition: RooPlot.cxx:1258
RooPlot::SetName
void SetName(const char *name)
Set the name of the RooPlot to 'name'.
Definition: RooPlot.cxx:1215
TAttMarker
Definition: TAttMarker.h:19
RooPlot
Definition: RooPlot.h:44
RooPlot::printArgs
virtual void printArgs(std::ostream &os) const
Interface for printing of object arguments.
Definition: RooPlot.cxx:751
RooPlot::~RooPlot
virtual ~RooPlot()
Destructor.
Definition: RooPlot.cxx:343
RooCurve
Definition: RooCurve.h:32
RooPlot::numItems
Stat_t numItems() const
Definition: RooPlot.h:115
RooPlot::_normObj
const RooPlotable * _normObj
Definition: RooPlot.h:238
RooPlot::SetNameTitle
void SetNameTitle(const char *name, const char *title)
Set the name and title of the RooPlot to 'name' and 'title'.
Definition: RooPlot.cxx:1226
RooPlot::SetTitleSize
void SetTitleSize(Float_t size=0.02, Option_t *axis="X")
Definition: RooPlot.cxx:1326
RooPlot::addTH1
void addTH1(TH1 *hist, Option_t *drawOptions="", Bool_t invisible=kFALSE)
Add a TH1 histogram object to this plot.
Definition: RooPlot.cxx:441
RooPlot::BuildLegend
std::unique_ptr< TLegend > BuildLegend() const
Build a legend that contains all objects that have been drawn on the plot.
Definition: RooPlot.cxx:1401
RooHist
Definition: RooHist.h:27
RooPlot::SetContourLevel
void SetContourLevel(Int_t level, Double_t value)
Definition: RooPlot.cxx:1280
RooPlot::SetLabelSize
void SetLabelSize(Float_t size=0.02, Option_t *axis="X")
Definition: RooPlot.cxx:1296
RooPlot::SetMarkerColor
void SetMarkerColor(Color_t tcolor=1)
Definition: RooPlot.cxx:1308
RooPlot::pullHist
RooHist * pullHist(const char *histname=0, const char *pdfname=0, bool useAverage=false) const
Uses residHist() and sets normalize=true.
Definition: RooPlot.h:181
ymin
float ymin
Definition: THbookFile.cxx:95
RooPlot::nameOf
const char * nameOf(Int_t idx) const
Return the name of the object at slot 'idx' in this RooPlot.
Definition: RooPlot.cxx:834
RooPlot::printClassName
virtual void printClassName(std::ostream &os) const
Print frame class name.
Definition: RooPlot.cxx:742
RooPlot::getAttText
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...
Definition: RooPlot.cxx:896
RooPlot::SetXTitle
void SetXTitle(const char *title)
Definition: RooPlot.cxx:1328
RooPlot::_plotVarClone
RooAbsRealLValue * _plotVarClone
Definition: RooPlot.h:234
RooPlot::SetLabelFont
void SetLabelFont(Style_t font=62, Option_t *axis="X")
Definition: RooPlot.cxx:1292
RooPlot::GetNdivisions
Int_t GetNdivisions(Option_t *axis="X") const
Definition: RooPlot.cxx:1262
Double_t
double Double_t
Definition: RtypesCore.h:59
RooPlot::getNormVars
const RooArgSet * getNormVars() const
Definition: RooPlot.h:148
RooPlot::SetLineColor
void SetLineColor(Color_t lcolor)
Definition: RooPlot.cxx:1300
RooPlot::DrawOpt
Definition: RooPlot.h:211
RooPlot::SetTitle
void SetTitle(const char *name)
Set the title of the RooPlot to 'title'.
Definition: RooPlot.cxx:1237
TCollection::GetSize
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Definition: TCollection.h:182
TClass
Definition: TClass.h:80
RooPlot::SetAxisRange
void SetAxisRange(Double_t xmin, Double_t xmax, Option_t *axis="X")
Definition: RooPlot.cxx:1272
RooPlot::SetDrawOption
void SetDrawOption(Option_t *option="")
Definition: RooPlot.cxx:1282
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TH1
Definition: TH1.h:57
name
char name[80]
Definition: TGX11.cxx:110
RooPlot::setPadFactor
void setPadFactor(Double_t factor)
Definition: RooPlot.h:146
RooPlot::SetMinimum
virtual void SetMinimum(Double_t minimum=-1111)
Set minimum value of Y axis.
Definition: RooPlot.cxx:1091
TDirectory
Definition: TDirectory.h:40
RooPrintable::printStream
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,...
Definition: RooPrintable.cxx:75
genreflex::verbose
bool verbose
Definition: rootcling_impl.cxx:133
RooPlot::caller
TString caller(const char *method) const
Utility function.
Definition: RooPlot.cxx:1066
RooPlot::getAttMarker
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...
Definition: RooPlot.cxx:886
RooPlot::setAddDirectoryStatus
static Bool_t setAddDirectoryStatus(Bool_t flag)
Configure whether new instances of RooPlot will add themselves to gDirectory.
Definition: RooPlot.cxx:79
RooPlotable
Definition: RooPlotable.h:26
TAttFill
Definition: TAttFill.h:19
TLegend
Definition: TLegend.h:23
RooPlot::printValue
virtual void printValue(std::ostream &os) const
Print frame arguments.
Definition: RooPlot.cxx:765
RooPlot::updateFitRangeNorm
void updateFitRangeNorm(const TH1 *hist)
Update our plot normalization over our plot variable's fit range, which will be determined by the fir...
Definition: RooPlot.cxx:604
RooPlot::SetMarkerAttributes
void SetMarkerAttributes()
Definition: RooPlot.cxx:1306
RooPlot::_padFactor
Double_t _padFactor
Definition: RooPlot.h:233
RooPlot::SetNdivisions
void SetNdivisions(Int_t n=510, Option_t *axis="X")
Definition: RooPlot.cxx:1314
RooPlot::SetOption
void SetOption(Option_t *option=" ")
Definition: RooPlot.cxx:1316
Stat_t
double Stat_t
Definition: RtypesCore.h:77
RooPlot::GetNbinsX
Int_t GetNbinsX() const
Definition: RooPlot.cxx:1260
RooPrintable::defaultPrintStyle
virtual StyleOption defaultPrintStyle(Option_t *opt) const
Definition: RooPrintable.cxx:241
RooPlot::_normVars
RooArgSet * _normVars
Definition: RooPlot.h:236
RooPlot::_normNumEvts
Double_t _normNumEvts
Pointer to normalization object ;.
Definition: RooPlot.h:239
RooPlot::frameWithLabels
static RooPlot * frameWithLabels(const RooAbsRealLValue &var)
Create a new frame for a given variable in x, adding bin labels.
Definition: RooPlot.cxx:261
RooAbsRealLValue
Definition: RooAbsRealLValue.h:31
RooPlot::SetLineWidth
void SetLineWidth(Width_t lwidth)
Definition: RooPlot.cxx:1304
RooPlot::getInvisible
Bool_t getInvisible(const char *name) const
Returns true of object with given name is set to be invisible.
Definition: RooPlot.cxx:1034
RooPlot::SetTickLength
void SetTickLength(Float_t length=0.02, Option_t *axis="X")
Definition: RooPlot.cxx:1320
RooList
Definition: RooList.h:21
RooPlot::getPlotVar
RooAbsRealLValue * getPlotVar() const
Definition: RooPlot.h:139
RooPlot::histName
TString histName() const
Construct automatic name of internal TH1.
Definition: RooPlot.cxx:330
RooPlot::DrawOpt::drawOptions
char drawOptions[128]
Definition: RooPlot.h:218
RooPlot::getHist
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...
Definition: RooPlot.cxx:917
RooPlot::_normBinWidth
Double_t _normBinWidth
Definition: RooPlot.h:240
RooArgSet
Definition: RooArgSet.h:28
RooPlot::GetXaxis
TAxis * GetXaxis() const
Definition: RooPlot.cxx:1256
int
Size_t
float Size_t
Definition: RtypesCore.h:87
RooPlot::GetBinContent
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.
Definition: RooPlot.cxx:390