Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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"
23#include "RooNDKeysPdf.h"
24#include "RooProduct.h"
25
26namespace RooStats {
27
28 class MCMCIntervalPlot : public TNamed, public RooPrintable {
29
30 public:
33
34 /// Destructor of SamplingDistribution
35 ~MCMCIntervalPlot() override;
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 showBurnIn) { fShowBurnIn = showBurnIn; }
42
43 void Draw(const Option_t* options = nullptr) override;
44
45 void DrawChainScatter(RooRealVar& xVar, RooRealVar& yVar);
47 void DrawNLLVsTime();
48 void DrawNLLHist(const Option_t* options = nullptr);
49 void DrawWeightHist(const Option_t* options = nullptr);
50
51 private:
54 TH1 *fPosteriorHist = nullptr;
57 TH1 *fNLLHist = nullptr;
58 TH1 *fWeightHist = nullptr;
65 bool fShowBurnIn = true;
66 TGraph *fWalk = nullptr;
67 TGraph *fBurnIn = nullptr;
68 TGraph *fFirst = nullptr;
69 TGraph *fParamGraph = nullptr;
70 TGraph *fNLLGraph = nullptr;
71
72 protected:
73 void DrawPosterior(const Option_t* options = nullptr);
74 void* DrawPosteriorHist(const Option_t* options = nullptr,
75 const char* title = nullptr, bool scale = true);
76 void* DrawPosteriorKeysPdf(const Option_t* options = nullptr);
77 void* DrawPosteriorKeysProduct(const Option_t* options = nullptr);
78
79 void DrawInterval(const Option_t* options = nullptr);
80 void DrawShortestInterval(const Option_t* options = nullptr);
81 void DrawHistInterval(const Option_t* options = nullptr);
82 void DrawKeysPdfInterval(const Option_t* options = nullptr);
83 void DrawTailFractionInterval(const Option_t* options = nullptr);
84
85 ClassDefOverride(MCMCIntervalPlot,1) // Class containing the results of the MCMCCalculator
86 };
87}
88
89#endif
short Color_t
Definition RtypesCore.h:92
const char Option_t
Definition RtypesCore.h:66
@ kGray
Definition Rtypes.h:65
@ kBlack
Definition Rtypes.h:65
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t width
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
Generic N-dimensional implementation of a kernel estimation p.d.f.
A 'mix-in' base class that define the standard RooFit plotting and printing methods.
Represents the product of a given set of RooAbsReal objects.
Definition RooProduct.h:29
Variable that can be changed from the outside.
Definition RooRealVar.h:37
This class provides simple and straightforward utilities to plot a MCMCInterval object.
void DrawNLLHist(const Option_t *options=nullptr)
void SetLineColor(Color_t color)
void * DrawPosteriorHist(const Option_t *options=nullptr, const char *title=nullptr, bool scale=true)
void DrawChainScatter(RooRealVar &xVar, RooRealVar &yVar)
void DrawTailFractionInterval(const Option_t *options=nullptr)
void SetMCMCInterval(MCMCInterval &interval)
~MCMCIntervalPlot() override
Destructor of SamplingDistribution.
void DrawPosterior(const Option_t *options=nullptr)
void DrawHistInterval(const Option_t *options=nullptr)
void * DrawPosteriorKeysProduct(const Option_t *options=nullptr)
void SetLineWidth(Int_t width)
void DrawWeightHist(const Option_t *options=nullptr)
void DrawInterval(const Option_t *options=nullptr)
void SetShadeColor(Color_t color)
void DrawParameterVsTime(RooRealVar &param)
void * DrawPosteriorKeysPdf(const Option_t *options=nullptr)
void DrawShortestInterval(const Option_t *options=nullptr)
void DrawKeysPdfInterval(const Option_t *options=nullptr)
void SetShowBurnIn(bool showBurnIn)
MCMCInterval is a concrete implementation of the RooStats::ConfInterval interface.
A TGraph is an object made of two arrays X and Y with npoints each.
Definition TGraph.h:41
TH1 is the base class of all histogram classes in ROOT.
Definition TH1.h:59
The TNamed class is the base class for all named ROOT classes.
Definition TNamed.h:29
Namespace for the RooStats classes.
Definition Asimov.h:19
th1 Draw()