#include <SamplingDistPlot.h>
Inheritance diagram for RooStats::SamplingDistPlot:
Definition at line 33 of file SamplingDistPlot.h.
SamplingDistPlot::SamplingDistPlot | ( | Int_t | nbins = 100 |
) |
Definition at line 41 of file SamplingDistPlot.cxx.
References fBins, fColor, fIsWeighted, fItems, fIterator, fMarkerType, kFALSE, and TList::MakeIterator().
virtual RooStats::SamplingDistPlot::~SamplingDistPlot | ( | ) | [inline, virtual] |
Definition at line 41 of file SamplingDistPlot.h.
RooStats::SamplingDistPlot::SamplingDistPlot | ( | Int_t | nbins = 100 |
) |
virtual RooStats::SamplingDistPlot::~SamplingDistPlot | ( | ) | [inline, virtual] |
Definition at line 41 of file SamplingDistPlot.h.
Double_t SamplingDistPlot::AddSamplingDistribution | ( | const SamplingDistribution * | samplingDist, | |
Option_t * | drawOptions = "NORMALIZE HIST" | |||
) |
Definition at line 84 of file SamplingDistPlot.cxx.
References TLegend::AddEntry(), addObject(), TString::Contains(), TString::Data(), fBins, fColor, fHist, TH1::Fill(), fIsWeighted, fLegend, fMarkerType, fSampleWeights, fSamplingDistr, fVarName, TNamed::GetName(), RooStats::SamplingDistribution::GetSamplingDistribution(), TNamed::GetTitle(), RooStats::SamplingDistribution::GetVarName(), TH1::GetXaxis(), TH1::Integral(), kFALSE, TString::ReplaceAll(), TH1::Scale(), TAttLine::SetLineColor(), TAttMarker::SetMarkerColor(), TAttMarker::SetMarkerStyle(), SetSampleWeights(), TH1::SetStats(), TNamed::SetTitle(), TString::Strip(), TH1::Sumw2(), title, and TString::ToUpper().
Referenced by AddSamplingDistributionShaded().
Double_t SamplingDistPlot::AddSamplingDistributionShaded | ( | const SamplingDistribution * | samplingDist, | |
Double_t | minShaded, | |||
Double_t | maxShaded, | |||
Option_t * | drawOptions = "NORMALIZE HIST" | |||
) |
Definition at line 140 of file SamplingDistPlot.cxx.
References addObject(), AddSamplingDistribution(), TNamed::Clone(), TString::Contains(), TString::Data(), fFillStyle, fHist, TH1::GetBinCenter(), TNamed::GetName(), TH1::GetNbinsX(), i, TString::ReplaceAll(), TH1F::SetBinContent(), TAttFill::SetFillStyle(), TAttLine::SetLineWidth(), TString::Strip(), and TString::ToUpper().
void SamplingDistPlot::AddLine | ( | Double_t | x1, | |
Double_t | y1, | |||
Double_t | x2, | |||
Double_t | y2, | |||
const char * | title = NULL | |||
) |
Definition at line 164 of file SamplingDistPlot.cxx.
References TLegend::AddEntry(), addOtherObject(), fLegend, kBlack, and line.
void SamplingDistPlot::Draw | ( | Option_t * | options = 0 |
) | [virtual] |
Reimplemented from TObject.
Definition at line 224 of file SamplingDistPlot.cxx.
References ApplyDefaultStyle(), coutW, TString::Data(), fApplyStyle, fIterator, fLegend, fLogXaxis, fLogYaxis, fOtherItems, fRooPlot, fVarName, GetAbsoluteInterval(), TIterator::GetOption(), TStyle::GetOptLogx(), TStyle::GetOptLogy(), gStyle, TList::MakeIterator(), TIterator::Next(), NULL, RooFit::Plotting, TIterator::Reset(), TStyle::SetOptLogx(), TStyle::SetOptLogy(), and RooPlot::SetTitle().
void SamplingDistPlot::ApplyDefaultStyle | ( | void | ) |
Definition at line 269 of file SamplingDistPlot.cxx.
References fApplyStyle, fLegend, gStyle, TPave::SetBorderSize(), TStyle::SetCanvasBorderMode(), TStyle::SetCanvasColor(), TAttFill::SetFillColor(), TStyle::SetFrameBorderMode(), TStyle::SetFrameFillStyle(), TStyle::SetPadBorderMode(), TStyle::SetPadColor(), TStyle::SetPaperSize(), and TStyle::SetStatColor().
Referenced by Draw().
void SamplingDistPlot::SetLineColor | ( | Color_t | color, | |
const SamplingDistribution * | samplDist = 0 | |||
) |
Definition at line 315 of file SamplingDistPlot.cxx.
References fHist, fIterator, TNamed::GetName(), TIterator::Next(), TIterator::Reset(), and TAttLine::SetLineColor().
void SamplingDistPlot::SetLineWidth | ( | Width_t | lwidth, | |
const SamplingDistribution * | samplDist = 0 | |||
) |
Definition at line 345 of file SamplingDistPlot.cxx.
References fHist, fIterator, TNamed::GetName(), TIterator::Next(), TIterator::Reset(), and TAttLine::SetLineWidth().
void SamplingDistPlot::SetLineStyle | ( | Style_t | style, | |
const SamplingDistribution * | samplDist = 0 | |||
) |
Definition at line 365 of file SamplingDistPlot.cxx.
References fHist, fIterator, TNamed::GetName(), TIterator::Next(), TIterator::Reset(), and TAttLine::SetLineStyle().
void SamplingDistPlot::SetMarkerColor | ( | Color_t | color, | |
const SamplingDistribution * | samplDist = 0 | |||
) |
Definition at line 405 of file SamplingDistPlot.cxx.
References fHist, fIterator, TNamed::GetName(), TIterator::Next(), TIterator::Reset(), and TAttMarker::SetMarkerColor().
void SamplingDistPlot::SetMarkerStyle | ( | Style_t | style, | |
const SamplingDistribution * | samplDist = 0 | |||
) |
Definition at line 385 of file SamplingDistPlot.cxx.
References fHist, fIterator, TNamed::GetName(), TIterator::Next(), TIterator::Reset(), and TAttMarker::SetMarkerStyle().
void SamplingDistPlot::SetMarkerSize | ( | Size_t | size, | |
const SamplingDistribution * | samplDist = 0 | |||
) |
Definition at line 425 of file SamplingDistPlot.cxx.
References fHist, fIterator, TNamed::GetName(), TIterator::Next(), TIterator::Reset(), and TAttMarker::SetMarkerSize().
void SamplingDistPlot::RebinDistribution | ( | Int_t | rebinFactor, | |
const SamplingDistribution * | samplDist = 0 | |||
) |
Definition at line 464 of file SamplingDistPlot.cxx.
References fHist, fIterator, TNamed::GetName(), TIterator::Next(), TH1::Rebin(), and TIterator::Reset().
void RooStats::SamplingDistPlot::SetAxisTitle | ( | char * | varName | ) | [inline] |
void RooStats::SamplingDistPlot::SetApplyStyle | ( | Bool_t | s | ) | [inline] |
TH1F * SamplingDistPlot::GetTH1F | ( | const SamplingDistribution * | samplDist | ) |
Definition at line 445 of file SamplingDistPlot.cxx.
References fHist, fIterator, TNamed::GetName(), TIterator::Next(), NULL, and TIterator::Reset().
void RooStats::SamplingDistPlot::SetLogXaxis | ( | Bool_t | lx | ) | [inline] |
void RooStats::SamplingDistPlot::SetLogYaxis | ( | Bool_t | ly | ) | [inline] |
void SamplingDistPlot::DumpToFile | ( | const char * | RootFileName, | |
Option_t * | option = "" , |
|||
const char * | ftitle = "" , |
|||
Int_t | compress = 1 | |||
) |
Definition at line 485 of file SamplingDistPlot.cxx.
References TDirectoryFile::cd(), TFile::Close(), fRooPlot, and TObject::Write().
void SamplingDistPlot::SetSampleWeights | ( | const SamplingDistribution * | samplingDist | ) | [protected] |
Definition at line 176 of file SamplingDistPlot.cxx.
References fIsWeighted, fSampleWeights, RooStats::SamplingDistribution::GetSampleWeights(), kFALSE, and kTRUE.
Referenced by AddSamplingDistribution().
Definition at line 190 of file SamplingDistPlot.cxx.
References TList::Add(), fItems, and TNamed::fName.
Referenced by AddSamplingDistribution(), and AddSamplingDistributionShaded().
Definition at line 206 of file SamplingDistPlot.cxx.
References TList::Add(), TNamed::fName, and fOtherItems.
Referenced by AddLine().
void SamplingDistPlot::GetAbsoluteInterval | ( | Float_t & | theMin, | |
Float_t & | theMax, | |||
Float_t & | theYMax | |||
) | const [protected] |
Definition at line 292 of file SamplingDistPlot.cxx.
References fIterator, TIterator::Next(), and TIterator::Reset().
Referenced by Draw().
Double_t RooStats::SamplingDistPlot::AddSamplingDistribution | ( | const SamplingDistribution * | samplingDist, | |
Option_t * | drawOptions = "NORMALIZE HIST" | |||
) |
Double_t RooStats::SamplingDistPlot::AddSamplingDistributionShaded | ( | const SamplingDistribution * | samplingDist, | |
Double_t | minShaded, | |||
Double_t | maxShaded, | |||
Option_t * | drawOptions = "NORMALIZE HIST" | |||
) |
void RooStats::SamplingDistPlot::AddLine | ( | Double_t | x1, | |
Double_t | y1, | |||
Double_t | x2, | |||
Double_t | y2, | |||
const char * | title = NULL | |||
) |
void RooStats::SamplingDistPlot::Draw | ( | Option_t * | options = 0 |
) | [virtual] |
Reimplemented from TObject.
void RooStats::SamplingDistPlot::ApplyDefaultStyle | ( | void | ) |
void RooStats::SamplingDistPlot::SetLineColor | ( | Color_t | color, | |
const SamplingDistribution * | samplDist = 0 | |||
) |
void RooStats::SamplingDistPlot::SetLineWidth | ( | Width_t | lwidth, | |
const SamplingDistribution * | samplDist = 0 | |||
) |
void RooStats::SamplingDistPlot::SetLineStyle | ( | Style_t | style, | |
const SamplingDistribution * | samplDist = 0 | |||
) |
void RooStats::SamplingDistPlot::SetMarkerColor | ( | Color_t | color, | |
const SamplingDistribution * | samplDist = 0 | |||
) |
void RooStats::SamplingDistPlot::SetMarkerStyle | ( | Style_t | style, | |
const SamplingDistribution * | samplDist = 0 | |||
) |
void RooStats::SamplingDistPlot::SetMarkerSize | ( | Size_t | size, | |
const SamplingDistribution * | samplDist = 0 | |||
) |
void RooStats::SamplingDistPlot::RebinDistribution | ( | Int_t | rebinFactor, | |
const SamplingDistribution * | samplDist = 0 | |||
) |
void RooStats::SamplingDistPlot::SetAxisTitle | ( | char * | varName | ) | [inline] |
void RooStats::SamplingDistPlot::SetApplyStyle | ( | Bool_t | s | ) | [inline] |
TH1F* RooStats::SamplingDistPlot::GetTH1F | ( | const SamplingDistribution * | samplDist | ) |
void RooStats::SamplingDistPlot::SetLogXaxis | ( | Bool_t | lx | ) | [inline] |
void RooStats::SamplingDistPlot::SetLogYaxis | ( | Bool_t | ly | ) | [inline] |
void RooStats::SamplingDistPlot::DumpToFile | ( | const char * | RootFileName, | |
Option_t * | option = "" , |
|||
const char * | ftitle = "" , |
|||
Int_t | compress = 1 | |||
) |
void RooStats::SamplingDistPlot::SetSampleWeights | ( | const SamplingDistribution * | samplingDist | ) | [protected] |
void RooStats::SamplingDistPlot::addObject | ( | TObject * | obj, | |
Option_t * | drawOptions = 0 | |||
) | [protected] |
void RooStats::SamplingDistPlot::addOtherObject | ( | TObject * | obj, | |
Option_t * | drawOptions = 0 | |||
) | [protected] |
void RooStats::SamplingDistPlot::GetAbsoluteInterval | ( | Float_t & | theMin, | |
Float_t & | theMax, | |||
Float_t & | theYMax | |||
) | const [protected] |
std::vector<Double_t> RooStats::SamplingDistPlot::fSamplingDistr [private] |
std::vector<Double_t> RooStats::SamplingDistPlot::fSampleWeights [private] |
Definition at line 88 of file SamplingDistPlot.h.
Referenced by AddSamplingDistribution(), and SetSampleWeights().
Definition at line 90 of file SamplingDistPlot.h.
Referenced by AddSamplingDistribution(), SamplingDistPlot(), and SetSampleWeights().
Int_t RooStats::SamplingDistPlot::fBins [private] |
Definition at line 92 of file SamplingDistPlot.h.
Referenced by AddSamplingDistribution(), and SamplingDistPlot().
Int_t RooStats::SamplingDistPlot::fMarkerType [private] |
Definition at line 93 of file SamplingDistPlot.h.
Referenced by AddSamplingDistribution(), and SamplingDistPlot().
Int_t RooStats::SamplingDistPlot::fColor [private] |
Definition at line 94 of file SamplingDistPlot.h.
Referenced by AddSamplingDistribution(), and SamplingDistPlot().
TString RooStats::SamplingDistPlot::fVarName [private] |
Definition at line 96 of file SamplingDistPlot.h.
Referenced by AddSamplingDistribution(), Draw(), and SetAxisTitle().
TH1F* RooStats::SamplingDistPlot::fHist [protected] |
Definition at line 100 of file SamplingDistPlot.h.
Referenced by AddSamplingDistribution(), AddSamplingDistributionShaded(), GetTH1F(), RebinDistribution(), SetLineColor(), SetLineStyle(), SetLineWidth(), SetMarkerColor(), SetMarkerSize(), and SetMarkerStyle().
TLegend* RooStats::SamplingDistPlot::fLegend [protected] |
Definition at line 101 of file SamplingDistPlot.h.
Referenced by AddLine(), AddSamplingDistribution(), ApplyDefaultStyle(), and Draw().
RooList RooStats::SamplingDistPlot::fItems [protected] |
Definition at line 103 of file SamplingDistPlot.h.
Referenced by addObject(), and SamplingDistPlot().
RooList RooStats::SamplingDistPlot::fOtherItems [protected] |
TIterator* RooStats::SamplingDistPlot::fIterator [protected] |
Definition at line 105 of file SamplingDistPlot.h.
Referenced by Draw(), GetAbsoluteInterval(), GetTH1F(), RebinDistribution(), SamplingDistPlot(), SetLineColor(), SetLineStyle(), SetLineWidth(), SetMarkerColor(), SetMarkerSize(), and SetMarkerStyle().
RooPlot* RooStats::SamplingDistPlot::fRooPlot [protected] |
Bool_t RooStats::SamplingDistPlot::fLogXaxis [protected] |
Bool_t RooStats::SamplingDistPlot::fLogYaxis [protected] |
Bool_t RooStats::SamplingDistPlot::fApplyStyle [protected] |
Definition at line 110 of file SamplingDistPlot.h.
Referenced by ApplyDefaultStyle(), Draw(), and SetApplyStyle().
Style_t RooStats::SamplingDistPlot::fFillStyle [protected] |
std::vector<Double_t> RooStats::SamplingDistPlot::fSamplingDistr [private] |
Definition at line 87 of file SamplingDistPlot.h.
std::vector<Double_t> RooStats::SamplingDistPlot::fSampleWeights [private] |
Definition at line 88 of file SamplingDistPlot.h.
TH1F* RooStats::SamplingDistPlot::fHist [protected] |
Definition at line 100 of file SamplingDistPlot.h.
TLegend* RooStats::SamplingDistPlot::fLegend [protected] |
Definition at line 101 of file SamplingDistPlot.h.
TIterator* RooStats::SamplingDistPlot::fIterator [protected] |
Definition at line 105 of file SamplingDistPlot.h.
RooPlot* RooStats::SamplingDistPlot::fRooPlot [protected] |
Definition at line 106 of file SamplingDistPlot.h.