Logo ROOT   6.10/09
Reference Guide
MCMCIntervalPlot.h
Go to the documentation of this file.
1 // @(#)root/roostats:$Id$
2 // Authors: Kevin Belasco 17/06/2009
3 // Authors: Kyle Cranmer 17/06/2009
4 /*************************************************************************
5  * Project: RooStats *
6  * Package: RooFit/RooStats *
7  *************************************************************************
8  * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
9  * All rights reserved. *
10  * *
11  * For the licensing terms see $ROOTSYS/LICENSE. *
12  * For the list of contributors see $ROOTSYS/README/CREDITS. *
13  *************************************************************************/
14 
15 #ifndef ROOSTATS_MCMCIntervalPlot
16 #define ROOSTATS_MCMCIntervalPlot
17 
18 #include "RooPrintable.h"
19 #include "RooArgSet.h"
20 #include "TNamed.h"
21 #include "TH1.h"
22 #include "RooStats/MCMCInterval.h"
23 #include "RooNDKeysPdf.h"
24 #include "RooProduct.h"
25 
26 namespace RooStats {
27 
28  class MCMCIntervalPlot : public TNamed, public RooPrintable {
29 
30  public:
32  MCMCIntervalPlot(MCMCInterval& interval);
33 
34  /// Destructor of SamplingDistribution
35  virtual ~MCMCIntervalPlot();
36 
37  void SetMCMCInterval(MCMCInterval& interval);
38  void SetLineColor(Color_t color) {fLineColor = color;}
39  void SetLineWidth(Int_t width) {fLineWidth = width;}
40  void SetShadeColor(Color_t color) {fShadeColor = color;}
41  void SetShowBurnIn(Bool_t showBurnIn) { fShowBurnIn = showBurnIn; }
42 
43  void Draw(const Option_t* options = NULL);
44 
45  void DrawChainScatter(RooRealVar& xVar, RooRealVar& yVar);
46  void DrawParameterVsTime(RooRealVar& param);
47  void DrawNLLVsTime();
48  void DrawNLLHist(const Option_t* options = NULL);
49  void DrawWeightHist(const Option_t* options = NULL);
50 
51  private:
52 
72 
73  protected:
74  void DrawPosterior(const Option_t* options = NULL);
75  void* DrawPosteriorHist(const Option_t* options = NULL,
76  const char* title = NULL, Bool_t scale = kTRUE);
77  void* DrawPosteriorKeysPdf(const Option_t* options = NULL);
78  void* DrawPosteriorKeysProduct(const Option_t* options = NULL);
79 
80  void DrawInterval(const Option_t* options = NULL);
81  void DrawShortestInterval(const Option_t* options = NULL);
82  void DrawHistInterval(const Option_t* options = NULL);
83  void DrawKeysPdfInterval(const Option_t* options = NULL);
84  void DrawTailFractionInterval(const Option_t* options = NULL);
85 
86  ClassDef(MCMCIntervalPlot,1) /// Class containing the results of the MCMCCalculator
87  };
88 }
89 
90 #endif
This class provides simple and straightforward utilities to plot a MCMCInterval object.
const char Option_t
Definition: RtypesCore.h:62
int Int_t
Definition: RtypesCore.h:41
void Draw(const Option_t *options=NULL)
bool Bool_t
Definition: RtypesCore.h:59
#define NULL
Definition: RtypesCore.h:88
void DrawShortestInterval(const Option_t *options=NULL)
void DrawInterval(const Option_t *options=NULL)
#define ClassDef(name, id)
Definition: Rtypes.h:297
RooPlotable is a 'mix-in' base class that define the standard RooFit plotting and printing methods...
Definition: RooPrintable.h:25
void DrawWeightHist(const Option_t *options=NULL)
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
void SetShadeColor(Color_t color)
short Color_t
Definition: RtypesCore.h:79
RooRealVar represents a fundamental (non-derived) real valued object.
Definition: RooRealVar.h:36
void SetMCMCInterval(MCMCInterval &interval)
void * DrawPosteriorKeysProduct(const Option_t *options=NULL)
void SetLineColor(Color_t color)
void SetLineWidth(Int_t width)
void DrawTailFractionInterval(const Option_t *options=NULL)
Generic N-dimensional implementation of a kernel estimation p.d.f.
Definition: RooNDKeysPdf.h:45
RooProduct a RooAbsReal implementation that represent the product of a given set of other RooAbsReal ...
Definition: RooProduct.h:32
void * DrawPosteriorHist(const Option_t *options=NULL, const char *title=NULL, Bool_t scale=kTRUE)
void DrawNLLHist(const Option_t *options=NULL)
Namespace for the RooStats classes.
Definition: Asimov.h:20
RooNDKeysPdf * fPosteriorKeysPdf
void DrawPosterior(const Option_t *options=NULL)
void DrawKeysPdfInterval(const Option_t *options=NULL)
The TH1 histogram class.
Definition: TH1.h:56
void DrawChainScatter(RooRealVar &xVar, RooRealVar &yVar)
void DrawParameterVsTime(RooRealVar &param)
virtual ~MCMCIntervalPlot()
Destructor of SamplingDistribution.
void SetShowBurnIn(Bool_t showBurnIn)
void DrawHistInterval(const Option_t *options=NULL)
A Graph is a graphics object made of two arrays X and Y with npoints each.
Definition: TGraph.h:41
void * DrawPosteriorKeysPdf(const Option_t *options=NULL)
MCMCInterval is a concrete implementation of the RooStats::ConfInterval interface.
Definition: MCMCInterval.h:30
const Bool_t kTRUE
Definition: RtypesCore.h:91