Logo ROOT  
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;}
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 
53  MCMCInterval *fInterval;
67  TGraph* fWalk;
68  TGraph* fBurnIn;
69  TGraph* fFirst;
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
RooStats::MCMCIntervalPlot::fLineColor
Color_t fLineColor
Definition: MCMCIntervalPlot.h:81
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
RooStats::MCMCInterval
Definition: MCMCInterval.h:32
RooStats::MCMCIntervalPlot::DrawKeysPdfInterval
void DrawKeysPdfInterval(const Option_t *options=NULL)
Definition: MCMCIntervalPlot.cxx:284
RooStats::MCMCIntervalPlot::fNLLGraph
TGraph * fNLLGraph
Definition: MCMCIntervalPlot.h:89
RooArgSet.h
RooStats::MCMCIntervalPlot::~MCMCIntervalPlot
virtual ~MCMCIntervalPlot()
Destructor of SamplingDistribution.
Definition: MCMCIntervalPlot.cxx:115
TNamed.h
RooStats::MCMCIntervalPlot::fWalk
TGraph * fWalk
Definition: MCMCIntervalPlot.h:85
RooStats::MCMCIntervalPlot::fWeightHist
TH1 * fWeightHist
Definition: MCMCIntervalPlot.h:77
RooStats::MCMCIntervalPlot::fParameters
RooArgSet * fParameters
Definition: MCMCIntervalPlot.h:72
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
RooStats::MCMCIntervalPlot::fLineWidth
Int_t fLineWidth
Definition: MCMCIntervalPlot.h:83
RooPrintable.h
RooStats::MCMCIntervalPlot::DrawInterval
void DrawInterval(const Option_t *options=NULL)
Definition: MCMCIntervalPlot.cxx:256
RooStats::MCMCIntervalPlot::SetLineColor
void SetLineColor(Color_t color)
Definition: MCMCIntervalPlot.h:56
RooStats::MCMCIntervalPlot::DrawTailFractionInterval
void DrawTailFractionInterval(const Option_t *options=NULL)
Definition: MCMCIntervalPlot.cxx:480
RooPrintable
Definition: RooPrintable.h:25
RooStats::MCMCIntervalPlot::fShowBurnIn
Bool_t fShowBurnIn
Definition: MCMCIntervalPlot.h:84
RooStats::MCMCIntervalPlot::MCMCIntervalPlot
MCMCIntervalPlot()
Definition: MCMCIntervalPlot.cxx:65
Color_t
short Color_t
Definition: RtypesCore.h:83
RooStats::MCMCIntervalPlot
Definition: MCMCIntervalPlot.h:37
bool
RooStats::MCMCIntervalPlot::fPosteriorHistHistCopy
TH1 * fPosteriorHistHistCopy
Definition: MCMCIntervalPlot.h:78
RooStats::MCMCIntervalPlot::DrawWeightHist
void DrawWeightHist(const Option_t *options=NULL)
Definition: MCMCIntervalPlot.cxx:776
RooStats::MCMCIntervalPlot::fPosteriorHist
TH1 * fPosteriorHist
Definition: MCMCIntervalPlot.h:73
RooStats::MCMCIntervalPlot::fInterval
MCMCInterval * fInterval
Definition: MCMCIntervalPlot.h:71
RooStats::MCMCIntervalPlot::fShadeColor
Color_t fShadeColor
Definition: MCMCIntervalPlot.h:82
RooProduct
Definition: RooProduct.h:30
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
RooStats::MCMCIntervalPlot::SetLineWidth
void SetLineWidth(Int_t width)
Definition: MCMCIntervalPlot.h:57
RooStats::MCMCIntervalPlot::DrawParameterVsTime
void DrawParameterVsTime(RooRealVar &param)
Definition: MCMCIntervalPlot.cxx:672
RooStats::MCMCIntervalPlot::DrawPosteriorKeysPdf
void * DrawPosteriorKeysPdf(const Option_t *options=NULL)
Definition: MCMCIntervalPlot.cxx:203
TNamed
Definition: TNamed.h:29
RooStats::MCMCIntervalPlot::DrawShortestInterval
void DrawShortestInterval(const Option_t *options=NULL)
Definition: MCMCIntervalPlot.cxx:274
RooStats::MCMCIntervalPlot::DrawPosteriorKeysProduct
void * DrawPosteriorKeysProduct(const Option_t *options=NULL)
Definition: MCMCIntervalPlot.cxx:541
MCMCInterval.h
RooStats::MCMCIntervalPlot::fBurnIn
TGraph * fBurnIn
Definition: MCMCIntervalPlot.h:86
RooStats::MCMCIntervalPlot::fNLLHist
TH1 * fNLLHist
Definition: MCMCIntervalPlot.h:76
RooProduct.h
RooStats::MCMCIntervalPlot::SetMCMCInterval
void SetMCMCInterval(MCMCInterval &interval)
Definition: MCMCIntervalPlot.cxx:138
RooStats::MCMCIntervalPlot::DrawPosterior
void DrawPosterior(const Option_t *options=NULL)
Definition: MCMCIntervalPlot.cxx:154
RooStats::MCMCIntervalPlot::fPosteriorKeysPdf
RooNDKeysPdf * fPosteriorKeysPdf
Definition: MCMCIntervalPlot.h:74
RooStats::MCMCIntervalPlot::fDimension
Int_t fDimension
Definition: MCMCIntervalPlot.h:80
TGraph
Definition: TGraph.h:41
RooStats::MCMCIntervalPlot::DrawChainScatter
void DrawChainScatter(RooRealVar &xVar, RooRealVar &yVar)
Definition: MCMCIntervalPlot.cxx:590
RooStats::MCMCIntervalPlot::fPosteriorKeysProduct
RooProduct * fPosteriorKeysProduct
Definition: MCMCIntervalPlot.h:75
RooStats::MCMCIntervalPlot::fParamGraph
TGraph * fParamGraph
Definition: MCMCIntervalPlot.h:88
RooStats::MCMCIntervalPlot::SetShadeColor
void SetShadeColor(Color_t color)
Definition: MCMCIntervalPlot.h:58
RooStats
Definition: Asimov.h:19
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TH1
Definition: TH1.h:57
RooNDKeysPdf.h
RooStats::MCMCIntervalPlot::DrawNLLVsTime
void DrawNLLVsTime()
Definition: MCMCIntervalPlot.cxx:711
RooStats::MCMCIntervalPlot::fPosteriorHistTFCopy
TH1 * fPosteriorHistTFCopy
Definition: MCMCIntervalPlot.h:79
RooStats::MCMCIntervalPlot::DrawHistInterval
void DrawHistInterval(const Option_t *options=NULL)
Definition: MCMCIntervalPlot.cxx:381
RooStats::MCMCIntervalPlot::Draw
void Draw(const Option_t *options=NULL)
Definition: MCMCIntervalPlot.cxx:147
RooNDKeysPdf
Definition: RooNDKeysPdf.h:48
RooRealVar
Definition: RooRealVar.h:36
RooStats::MCMCIntervalPlot::SetShowBurnIn
void SetShowBurnIn(Bool_t showBurnIn)
Definition: MCMCIntervalPlot.h:59
RooStats::MCMCIntervalPlot::fFirst
TGraph * fFirst
Definition: MCMCIntervalPlot.h:87
TH1.h
RooStats::MCMCIntervalPlot::DrawPosteriorHist
void * DrawPosteriorHist(const Option_t *options=NULL, const char *title=NULL, Bool_t scale=kTRUE)
Definition: MCMCIntervalPlot.cxx:164
RooStats::MCMCIntervalPlot::DrawNLLHist
void DrawNLLHist(const Option_t *options=NULL)
Definition: MCMCIntervalPlot.cxx:750
RooArgSet
Definition: RooArgSet.h:28
int