12 #ifndef ROOSTATS_SamplingDistPlot
13 #define ROOSTATS_SamplingDistPlot
23 #ifndef ROOSTATS_SamplingDistribution
RooPlot * fRooPlot
TODO remove class variable and instantiate locally as necessary.
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
void GetAbsoluteInterval(Double_t &theMin, Double_t &theMax, Double_t &theYMax) const
void SetLogXaxis(Bool_t lx)
changes plot to log scale on x axis
This class displays a legend box (TPaveText) containing several legend entries.
void ApplyDefaultStyle(void)
Applies a predefined style if fApplyStyle is kTRUE (default).
RooPlot * GetPlot()
return plotter class used to draw the sampling distribution histograms object is managed by SamplingD...
void SetLineColor(Color_t color, const SamplingDistribution *samplDist=0)
Sets line color for given sampling distribution and fill color for the associated shaded TH1F...
Double_t AddSamplingDistribution(const SamplingDistribution *samplingDist, Option_t *drawOptions="NORMALIZE HIST")
adds the sampling distribution and returns the scale factor
1-D histogram with a float per channel (see TH1 documentation)}
void SetLogYaxis(Bool_t ly)
changes plot to log scale on y axis
void SetSampleWeights(const SamplingDistribution *samplingDist)
Determine if the sampling distribution has weights and store them.
Iterator abstract base class.
static const double x2[5]
#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.
void addObject(TObject *obj, Option_t *drawOptions=0)
void SetLineWidth(Width_t lwidth, const SamplingDistribution *samplDist=0)
void SetXRange(double mi, double ma)
change x range
void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
void AddTH1(TH1 *h, Option_t *drawOptions="")
add a TH1
void SetMarkerSize(Size_t size, const SamplingDistribution *samplDist=0)
Double_t AddSamplingDistributionShaded(const SamplingDistribution *samplingDist, Double_t minShaded, Double_t maxShaded, Option_t *drawOptions="NORMALIZE HIST")
Like AddSamplingDistribution, but also sets a shaded area in the minShaded and maxShaded boundaries...
RooList fOtherItems
holds TH1Fs only
void DumpToFile(const char *RootFileName, Option_t *option="", const char *ftitle="", Int_t compress=1)
write to Root file
void SetMarkerStyle(Style_t style, const SamplingDistribution *samplDist=0)
void SetLegend(TLegend *l)
set legend
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
TIterator * fIterator
other objects to be drawn like TLine etc.
void SetAxisTitle(char *varName)
A RooList is a TList with extra support for working with options that are associated with each node...
TH1 * GetHistogram(const SamplingDistribution *samplDist=NULL)
void SetYRange(double mi, double ma)
change y range
This class simply holds a sampling distribution of some test statistic.
void RebinDistribution(Int_t rebinFactor, const SamplingDistribution *samplDist=0)
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
void AddTF1(TF1 *f, const char *title=NULL, Option_t *drawOptions="SAME")
add a TF1
static const double x1[5]
TH1F * GetTH1F(const SamplingDistribution *samplDist=NULL)
Returns the TH1F associated with the give SamplingDistribution.
void AddLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2, const char *title=NULL)
add a line
void SetMarkerColor(Color_t color, const SamplingDistribution *samplDist=0)
std::vector< Double_t > fSampleWeights
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
This class provides simple and straightforward utilities to plot SamplingDistribution objects...
Mother of all ROOT objects.
void SetLineStyle(Style_t style, const SamplingDistribution *samplDist=0)
void addOtherObject(TObject *obj, Option_t *drawOptions=0)
void SetApplyStyle(Bool_t s)
If you do not want SamplingDistPlot to interfere with your style settings, call this function with "f...
virtual ~SamplingDistPlot()
Destructor of SamplingDistribution.
SamplingDistPlot(Int_t nbins=100)
Constructors for SamplingDistribution.
std::vector< Double_t > fSamplingDistr