RooStats::SamplingDistPlot Class Reference

#include <SamplingDistPlot.h>

Inheritance diagram for RooStats::SamplingDistPlot:

TNamed RooPrintable TNamed RooPrintable TObject TObject TObject TObject RooStats::HypoTestPlot RooStats::HypoTestPlot List of all members.

Public Member Functions

 SamplingDistPlot (Int_t nbins=100)
virtual ~SamplingDistPlot ()
Double_t AddSamplingDistribution (const SamplingDistribution *samplingDist, Option_t *drawOptions="NORMALIZE HIST")
Double_t AddSamplingDistributionShaded (const SamplingDistribution *samplingDist, Double_t minShaded, Double_t maxShaded, Option_t *drawOptions="NORMALIZE HIST")
void AddLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2, const char *title=NULL)
void Draw (Option_t *options=0)
void ApplyDefaultStyle (void)
void SetLineColor (Color_t color, const SamplingDistribution *samplDist=0)
void SetLineWidth (Width_t lwidth, const SamplingDistribution *samplDist=0)
void SetLineStyle (Style_t style, const SamplingDistribution *samplDist=0)
void SetMarkerColor (Color_t color, const SamplingDistribution *samplDist=0)
void SetMarkerStyle (Style_t style, const SamplingDistribution *samplDist=0)
void SetMarkerSize (Size_t size, const SamplingDistribution *samplDist=0)
void RebinDistribution (Int_t rebinFactor, const SamplingDistribution *samplDist=0)
void SetAxisTitle (char *varName)
void SetApplyStyle (Bool_t s)
TH1FGetTH1F (const SamplingDistribution *samplDist)
void SetLogXaxis (Bool_t lx)
void SetLogYaxis (Bool_t ly)
void DumpToFile (const char *RootFileName, Option_t *option="", const char *ftitle="", Int_t compress=1)
 SamplingDistPlot (Int_t nbins=100)
virtual ~SamplingDistPlot ()
Double_t AddSamplingDistribution (const SamplingDistribution *samplingDist, Option_t *drawOptions="NORMALIZE HIST")
Double_t AddSamplingDistributionShaded (const SamplingDistribution *samplingDist, Double_t minShaded, Double_t maxShaded, Option_t *drawOptions="NORMALIZE HIST")
void AddLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2, const char *title=NULL)
void Draw (Option_t *options=0)
void ApplyDefaultStyle (void)
void SetLineColor (Color_t color, const SamplingDistribution *samplDist=0)
void SetLineWidth (Width_t lwidth, const SamplingDistribution *samplDist=0)
void SetLineStyle (Style_t style, const SamplingDistribution *samplDist=0)
void SetMarkerColor (Color_t color, const SamplingDistribution *samplDist=0)
void SetMarkerStyle (Style_t style, const SamplingDistribution *samplDist=0)
void SetMarkerSize (Size_t size, const SamplingDistribution *samplDist=0)
void RebinDistribution (Int_t rebinFactor, const SamplingDistribution *samplDist=0)
void SetAxisTitle (char *varName)
void SetApplyStyle (Bool_t s)
TH1FGetTH1F (const SamplingDistribution *samplDist)
void SetLogXaxis (Bool_t lx)
void SetLogYaxis (Bool_t ly)
void DumpToFile (const char *RootFileName, Option_t *option="", const char *ftitle="", Int_t compress=1)

Protected Member Functions

void SetSampleWeights (const SamplingDistribution *samplingDist)
void addObject (TObject *obj, Option_t *drawOptions=0)
void addOtherObject (TObject *obj, Option_t *drawOptions=0)
void GetAbsoluteInterval (Float_t &theMin, Float_t &theMax, Float_t &theYMax) const
void SetSampleWeights (const SamplingDistribution *samplingDist)
void addObject (TObject *obj, Option_t *drawOptions=0)
void addOtherObject (TObject *obj, Option_t *drawOptions=0)
void GetAbsoluteInterval (Float_t &theMin, Float_t &theMax, Float_t &theYMax) const

Protected Attributes

TH1FfHist
TLegendfLegend
RooList fItems
RooList fOtherItems
TIteratorfIterator
RooPlotfRooPlot
Bool_t fLogXaxis
Bool_t fLogYaxis
Bool_t fApplyStyle
Style_t fFillStyle
TH1FfHist
TLegendfLegend
TIteratorfIterator
RooPlotfRooPlot

Private Attributes

std::vector< Double_tfSamplingDistr
std::vector< Double_tfSampleWeights
Bool_t fIsWeighted
Int_t fBins
Int_t fMarkerType
Int_t fColor
TString fVarName
std::vector< Double_tfSamplingDistr
std::vector< Double_tfSampleWeights

Detailed Description

Definition at line 33 of file SamplingDistPlot.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Definition at line 67 of file SamplingDistPlot.h.

References fVarName.

void RooStats::SamplingDistPlot::SetApplyStyle ( Bool_t  s  )  [inline]

Definition at line 71 of file SamplingDistPlot.h.

References fApplyStyle.

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]

Definition at line 79 of file SamplingDistPlot.h.

References fLogXaxis.

void RooStats::SamplingDistPlot::SetLogYaxis ( Bool_t  ly  )  [inline]

Definition at line 81 of file SamplingDistPlot.h.

References fLogYaxis.

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().

void SamplingDistPlot::addObject ( TObject obj,
Option_t drawOptions = 0 
) [protected]

Definition at line 190 of file SamplingDistPlot.cxx.

References TList::Add(), fItems, and TNamed::fName.

Referenced by AddSamplingDistribution(), and AddSamplingDistributionShaded().

void SamplingDistPlot::addOtherObject ( TObject obj,
Option_t drawOptions = 0 
) [protected]

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]

Definition at line 67 of file SamplingDistPlot.h.

References fVarName.

void RooStats::SamplingDistPlot::SetApplyStyle ( Bool_t  s  )  [inline]

Definition at line 71 of file SamplingDistPlot.h.

References fApplyStyle.

TH1F* RooStats::SamplingDistPlot::GetTH1F ( const SamplingDistribution samplDist  ) 

void RooStats::SamplingDistPlot::SetLogXaxis ( Bool_t  lx  )  [inline]

Definition at line 79 of file SamplingDistPlot.h.

References fLogXaxis.

void RooStats::SamplingDistPlot::SetLogYaxis ( Bool_t  ly  )  [inline]

Definition at line 81 of file SamplingDistPlot.h.

References fLogYaxis.

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]


Member Data Documentation

std::vector<Double_t> RooStats::SamplingDistPlot::fSamplingDistr [private]

Definition at line 87 of file SamplingDistPlot.h.

Referenced by AddSamplingDistribution().

std::vector<Double_t> RooStats::SamplingDistPlot::fSampleWeights [private]

Definition at line 88 of file SamplingDistPlot.h.

Referenced by AddSamplingDistribution(), and SetSampleWeights().

Bool_t RooStats::SamplingDistPlot::fIsWeighted [private]

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]

Definition at line 104 of file SamplingDistPlot.h.

Referenced by addOtherObject(), and Draw().

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]

Definition at line 106 of file SamplingDistPlot.h.

Referenced by Draw(), and DumpToFile().

Bool_t RooStats::SamplingDistPlot::fLogXaxis [protected]

Definition at line 107 of file SamplingDistPlot.h.

Referenced by Draw(), and SetLogXaxis().

Bool_t RooStats::SamplingDistPlot::fLogYaxis [protected]

Definition at line 108 of file SamplingDistPlot.h.

Referenced by Draw(), and SetLogYaxis().

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]

Definition at line 111 of file SamplingDistPlot.h.

Referenced by AddSamplingDistributionShaded().

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.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:57:09 2011 for ROOT_528-00b_version by  doxygen 1.5.1