Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
SPlot.h
Go to the documentation of this file.
1// @(#)root/roostats:$Id$
2// Author: Kyle Cranmer 21/07/2008
3
4/*************************************************************************
5 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef RooStats_SPlot
13#define RooStats_SPlot
14
15class RooAbsReal;
16class RooAbsPdf;
17class RooFitResult;
18class RooRealVar;
19class RooSimultaneous;
20
21
22#include "RooMsgService.h"
23
24#include "RooFitResult.h"
25#include "RooRealVar.h"
26#include "RooHist.h"
27#include "RooPlot.h"
28#include "RooDataSet.h"
29
30namespace RooStats{
31
32 class SPlot: public TNamed {
33
34 public:
35
36 ~SPlot() override;
38 SPlot(const SPlot &other);
39 SPlot(const char* name, const char* title);
40 SPlot(const char* name, const char* title, const RooDataSet &data);
41 SPlot(const char* name, const char* title,RooDataSet& data, RooAbsPdf* pdf,
42 const RooArgList &yieldsList,const RooArgSet &projDeps=RooArgSet(),
43 bool useWeights=true, bool copyDataSet = false, const char* newName = "",
44 const RooCmdArg& fitToarg5={},
45 const RooCmdArg& fitToarg6={},
46 const RooCmdArg& fitToarg7={},
47 const RooCmdArg& fitToarg8={});
48
50
52
54
56
57 void AddSWeight(RooAbsPdf* pdf, const RooArgList &yieldsTmp,
58 const RooArgSet &projDeps=RooArgSet(), bool includeWeights=true,
59 const RooCmdArg& fitToarg5={},
60 const RooCmdArg& fitToarg6={},
61 const RooCmdArg& fitToarg7={},
62 const RooCmdArg& fitToarg8={});
63
64 double GetSumOfEventSWeight(Int_t numEvent) const;
65
66 double GetYieldFromSWeight(const char* sVariable) const;
67
68 double GetSWeight(Int_t numEvent, const char* sVariable) const;
69
70
71
72 protected:
73
74 enum {
76 };
77
79
80 // RooListProxy fSWeightVars;
81
82 RooDataSet *fSData = nullptr;
83
84 ClassDefOverride(SPlot,1) // Class used for making sPlots
85
86
87 };
88
89}
90#endif
int Int_t
Signed integer 4 bytes (int).
Definition RtypesCore.h:59
#define BIT(n)
Definition Rtypes.h:91
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
char name[80]
Definition TGX11.cxx:148
Abstract interface for all probability density functions.
Definition RooAbsPdf.h:32
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:63
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition RooArgList.h:22
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:24
Named container for two doubles, two integers two object points and three string pointers that can be...
Definition RooCmdArg.h:26
Container class to hold unbinned data.
Definition RooDataSet.h:32
RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
Variable that can be changed from the outside.
Definition RooRealVar.h:37
Facilitates simultaneous fitting of multiple PDFs to subsets of a given dataset.
~SPlot() override
RooDataSet * fSData
Definition SPlot.h:82
SPlot(const char *name, const char *title)
void AddSWeight(RooAbsPdf *pdf, const RooArgList &yieldsTmp, const RooArgSet &projDeps=RooArgSet(), bool includeWeights=true, const RooCmdArg &fitToarg5={}, const RooCmdArg &fitToarg6={}, const RooCmdArg &fitToarg7={}, const RooCmdArg &fitToarg8={})
Int_t GetNumSWeightVars() const
RooArgList GetSWeightVars() const
double GetSWeight(Int_t numEvent, const char *sVariable) const
double GetYieldFromSWeight(const char *sVariable) const
SPlot(const char *name, const char *title, RooDataSet &data, RooAbsPdf *pdf, const RooArgList &yieldsList, const RooArgSet &projDeps=RooArgSet(), bool useWeights=true, bool copyDataSet=false, const char *newName="", const RooCmdArg &fitToarg5={}, const RooCmdArg &fitToarg6={}, const RooCmdArg &fitToarg7={}, const RooCmdArg &fitToarg8={})
SPlot(const SPlot &other)
SPlot(const char *name, const char *title, const RooDataSet &data)
double GetSumOfEventSWeight(Int_t numEvent) const
RooDataSet * GetSDataSet() const
RooDataSet * SetSData(RooDataSet *data)
RooArgList fSWeightVars
Definition SPlot.h:78
TNamed()
Definition TNamed.h:38
Namespace for the RooStats classes.
Definition CodegenImpl.h:66