File indexing completed on 2025-12-16 10:29:45
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef ROOSTATS_LikelihoodIntervalPlot
0017 #define ROOSTATS_LikelihoodIntervalPlot
0018
0019 #include "RooPrintable.h"
0020 #include "RooArgSet.h"
0021
0022 #include "TNamed.h"
0023
0024 #include "TH2F.h"
0025
0026 #include "RooStats/LikelihoodInterval.h"
0027
0028 namespace RooStats {
0029
0030 class LikelihoodIntervalPlot : public TNamed, public RooPrintable {
0031
0032 public:
0033 LikelihoodIntervalPlot();
0034
0035 LikelihoodIntervalPlot(LikelihoodInterval* theInterval);
0036
0037
0038 TObject * GetPlottedObject() const { return fPlotObject; }
0039
0040 void SetLikelihoodInterval(LikelihoodInterval* theInterval);
0041 void SetPlotParameters(const RooArgSet *params) ;
0042
0043
0044
0045 void SetRange(double x1, double x2) { fXmin = x1; fXmax = x2; }
0046
0047 void SetRange(double x1, double y1, double x2, double y2) {
0048 fXmin = x1; fXmax = x2;
0049 fYmin = y1; fYmax = y2;
0050 }
0051
0052
0053 void SetPrecision(double eps) { fPrecision = eps; }
0054
0055 void SetLineColor(const Color_t color) {fLineColor = color;}
0056
0057 void SetFillStyle(const Style_t style) {fFillStyle = style;}
0058
0059 void SetContourColor(const Color_t color) {fColor = color;}
0060 void SetMaximum(const double theMaximum) {fMaximum = theMaximum;}
0061 void SetNPoints(Int_t np) { fNPoints = np; }
0062
0063
0064
0065
0066
0067
0068
0069 void Draw(const Option_t *options=nullptr) override;
0070
0071 private:
0072 Color_t fColor = 0;
0073 Style_t fFillStyle = 4050;
0074 Color_t fLineColor = 0;
0075 Int_t fNdimPlot = 0;
0076 Int_t fNPoints = 0;
0077
0078 double fMaximum = -1;
0079
0080 double fXmin = 0;
0081 double fXmax = -1;
0082 double fYmin = 0;
0083 double fYmax = -1;
0084 double fPrecision = -1;
0085
0086 LikelihoodInterval *fInterval = nullptr;
0087
0088 RooArgSet *fParamsPlot = nullptr;
0089 TObject *fPlotObject = nullptr;
0090
0091 protected:
0092
0093 ClassDefOverride(LikelihoodIntervalPlot,2)
0094 };
0095 }
0096
0097 #endif