Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
_roofit.pyzdoc
Go to the documentation of this file.
1/**
2\defgroup RoofitPythonizations RooFit Pythonizations
3\ingroup Roofitmain
4- [RooAbsCollection](\ref _rooabscollection)
5 - [printLatex](\ref _rooabscollection_printlatex)
6- [RooAbsData](\ref _rooabsdata)
7 - [createHistogram](\ref _rooabsdata_createhistogram)
8 - [plotOn](\ref _rooabsdata_ploton)
9 - [reduce](\ref _rooabsdata_reduce)
10 - [statOn](\ref _rooabsdata_staton)
11- [RooAbsPdf](\ref _rooabspdf)
12 - [createCdf](\ref _rooabspdf_createcdf)
13 - [createNLL](\ref _rooabspdf_createnll)
14 - [fitTo](\ref _rooabspdf_fitto)
15 - [generate](\ref _rooabspdf_generate)
16 - [generateBinned](\ref _rooabspdf_generatebinned)
17 - [paramOn](\ref _rooabspdf_paramon)
18 - [plotOn](\ref _rooabspdf_ploton)
19 - [prepareMultiGen](\ref _rooabspdf_preparemultigen)
20- [RooAbsReal](\ref _rooabsreal)
21 - [chi2FitTo](\ref _rooabsreal_chi2fitto)
22 - [createChi2](\ref _rooabsreal_createchi2)
23 - [createHistogram](\ref _rooabsreal_createhistogram)
24 - [createIntegral](\ref _rooabsreal_createintegral)
25 - [createRunningIntegral](\ref _rooabsreal_createrunningintegral)
26 - [plotOn](\ref _rooabsreal_ploton)
27- [RooAbsRealLValue](\ref _rooabsreallvalue)
28 - [createHistogram](\ref _rooabsreallvalue_createhistogram)
29 - [frame](\ref _rooabsreallvalue_frame)
30- [RooArgSet](\ref _rooargset)
31 - [__init__](\ref _rooargset___init__)
32- [RooBCPGenDecay](\ref _roobcpgendecay)
33 - [__init__](\ref _roobcpgendecay___init__)
34- [RooBCPEffDecay](\ref _roobcpeffdecay)
35 - [__init__](\ref _roobcpeffdecay___init__)
36- [RooBDecay](\ref _roobdecay)
37 - [__init__](\ref _roobdecay___init__)
38- [RooBMixDecay](\ref _roobmixdecay)
39 - [__init__](\ref _roobmixdecay___init__)
40- [RooCategory](\ref _roocategory)
41 - [__init__](\ref _roocategory___init__)
42- [RooDataHist](\ref _roodatahist)
43 - [__init__](\ref _roodatahist___init__)
44 - [from_numpy](\ref _roodatahist_from_numpy)
45 - [to_numpy](\ref _roodatahist_to_numpy)
46- [RooDataSet](\ref _roodataset)
47 - [__init__](\ref _roodataset___init__)
48 - [from_numpy](\ref _roodataset_from_numpy)
49 - [from_pandas](\ref _roodataset_from_pandas)
50 - [plotOnXY](\ref _roodataset_plotonxy)
51 - [to_numpy](\ref _roodataset_to_numpy)
52 - [to_pandas](\ref _roodataset_to_pandas)
53- [RooDecay](\ref _roodecay)
54 - [__init__](\ref _roodecay___init__)
55- [RooGenFitStudy](\ref _roogenfitstudy)
56 - [setGenConfig](\ref _roogenfitstudy_setgenconfig)
57- [RooMCStudy](\ref _roomcstudy)
58 - [__init__](\ref _roomcstudy___init__)
59 - [plotError](\ref _roomcstudy_ploterror)
60 - [plotNLL](\ref _roomcstudy_plotnll)
61 - [plotParam](\ref _roomcstudy_plotparam)
62 - [plotParamOn](\ref _roomcstudy_plotparamon)
63 - [plotPull](\ref _roomcstudy_plotpull)
64- [RooMsgService](\ref _roomsgservice)
65 - [addStream](\ref _roomsgservice_addstream)
66- [RooProdPdf](\ref _rooprodpdf)
67 - [__init__](\ref _rooprodpdf___init__)
68- [RooRealVar](\ref _roorealvar)
69 - [bins](\ref _roorealvar_bins)
70- [RooSimultaneous](\ref _roosimultaneous)
71 - [__init__](\ref _roosimultaneous___init__)
72 - [plotOn](\ref _roosimultaneous_ploton)
73- [RooSimWSTool](\ref _roosimwstool)
74 - [build](\ref _roosimwstool_build)
75- [RooWorkspace](\ref _rooworkspace)
76 - [Import](\ref _rooworkspace_import)
77 - [__init__](\ref _rooworkspace___init__)
78 - [_ipython_key_completions_](\ref _rooworkspace__ipython_key_completions_)
79 - [RooWorkspace_import](\ref _rooworkspace_rooworkspace_import)
80- [SPlot](\ref _splot)
81 - [_SPlot_AddSWeight](\ref _splot__splot_addsweight)
82 - [_SPlot_init](\ref _splot__splot_init)
83
84\anchor _rooabscollection
85## RooAbsCollection
86\see RooAbsCollection
87
88Some member functions of RooAbsCollection that take a RooCmdArg as argument also support keyword arguments.
89So far, this applies to RooAbsCollection::printLatex. For example, the following code is equivalent in PyROOT:
90\code{.py}
91# Directly passing a RooCmdArg:
92params.printLatex(ROOT.RooFit.Sibling(initParams), ROOT.RooFit.Columns(2))
93
94# With keyword arguments:
95params.printLatex(Sibling=initParams, Columns =2)
96\endcode
97
98\anchor _rooabscollection_printlatex
99### RooAbsCollection.printLatex
100The RooAbsCollection::printLatex() function is pythonized with the command argument pythonization.
101The keywords must correspond to the CmdArgs of the function.
102
103\see RooAbsCollection::printLatex(const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const
104
105\anchor _rooabsdata
106## RooAbsData
107\see RooAbsData
108
109Some member functions of RooAbsData that take a RooCmdArg as argument also support keyword arguments.
110This applies to RooAbsData::plotOn, RooAbsData::createHistogram, RooAbsData::reduce, RooAbsData::statOn.
111For example, the following code is equivalent in PyROOT:
112\code{.py}
113# Directly passing a RooCmdArg:
114data.plotOn(frame, ROOT.RooFit.CutRange("r1"))
115
116# With keyword arguments:
117data.plotOn(frame, CutRange="r1")
118\endcode
119
120\anchor _rooabsdata_createhistogram
121### RooAbsData.createHistogram
122The RooAbsData::createHistogram() function is pythonized with the command argument pythonization.
123The keywords must correspond to the CmdArgs of the function.
124
125\see RooAbsData::createHistogram(const char *name, const RooAbsRealLValue& xvar, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const
126
127\anchor _rooabsdata_ploton
128### RooAbsData.plotOn
129The RooAbsData::plotOn() function is pythonized with the command argument pythonization.
130The keywords must correspond to the CmdArgs of the function.
131
132\see RooAbsData::plotOn(RooPlot* frame, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const
133
134\anchor _rooabsdata_reduce
135### RooAbsData.reduce
136The RooAbsData::reduce() function is pythonized with the command argument pythonization.
137The keywords must correspond to the CmdArgs of the function.
138
139\see RooAbsData::reduce(const RooCmdArg& arg1,const RooCmdArg& arg2, const RooCmdArg& arg3,const RooCmdArg& arg4, const RooCmdArg& arg5,const RooCmdArg& arg6, const RooCmdArg& arg7,const RooCmdArg& arg8)
140
141\anchor _rooabsdata_staton
142### RooAbsData.statOn
143The RooAbsData::statOn() function is pythonized with the command argument pythonization.
144The keywords must correspond to the CmdArgs of the function.
145
146\see RooAbsData::statOn(RooPlot* frame, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
147
148\anchor _rooabspdf
149## RooAbsPdf
150\see RooAbsPdf
151
152Some member functions of RooAbsPdf that take a RooCmdArg as argument also support keyword arguments.
153So far, this applies to RooAbsPdf::fitTo, RooAbsPdf::plotOn, RooAbsPdf::generate, RooAbsPdf::paramOn, RooAbsPdf::createCdf,
154RooAbsPdf::generateBinned, RooAbsPdf::prepareMultiGen and RooAbsPdf::createNLL.
155For example, the following code is equivalent in PyROOT:
156\code{.py}
157# Directly passing a RooCmdArg:
158pdf.fitTo(data, ROOT.RooFit.Range("r1"))
159
160# With keyword arguments:
161pdf.fitTo(data, Range="r1")
162\endcode
163
164\anchor _rooabspdf_createcdf
165### RooAbsPdf.createCdf
166The RooAbsPdf::createCdf() function is pythonized with the command argument pythonization.
167The keywords must correspond to the CmdArgs of the function.
168
169\see RooAbsPdf::createCdf(const RooArgSet& iset, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
170
171\anchor _rooabspdf_createnll
172### RooAbsPdf.createNLL
173The RooAbsPdf::createNLL() function is pythonized with the command argument pythonization.
174The keywords must correspond to the CmdArgs of the function.
175
176\see RooAbsPdf::createNLL()
177
178\anchor _rooabspdf_fitto
179### RooAbsPdf.fitTo
180The RooAbsPdf::fitTo() function is pythonized with the command argument pythonization.
181The keywords must correspond to the CmdArgs of the function.
182
183\see RooAbsPdf::fitTo()
184
185\anchor _rooabspdf_generate
186### RooAbsPdf.generate
187The RooAbsPdf::generate() function is pythonized with the command argument pythonization.
188The keywords must correspond to the CmdArgs of the function.
189
190\see RooAbsPdf::generate(const RooArgSet &whatVars, const RooCmdArg& arg1,const RooCmdArg& arg2, const RooCmdArg& arg3,const RooCmdArg& arg4, const RooCmdArg& arg5,const RooCmdArg& arg6)
191
192\anchor _rooabspdf_generatebinned
193### RooAbsPdf.generateBinned
194The RooAbsPdf::generateBinned() function is pythonized with the command argument pythonization.
195The keywords must correspond to the CmdArgs of the function.
196
197\see RooAbsPdf::generateBinned(const RooArgSet &whatVars, const RooCmdArg& arg1,const RooCmdArg& arg2, const RooCmdArg& arg3,const RooCmdArg& arg4, const RooCmdArg& arg5,const RooCmdArg& arg6) const
198
199\anchor _rooabspdf_paramon
200### RooAbsPdf.paramOn
201The RooAbsPdf::paramOn() function is pythonized with the command argument pythonization.
202The keywords must correspond to the CmdArgs of the function.
203
204\see RooAbsPdf::paramOn(RooPlot* frame, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
205
206\anchor _rooabspdf_ploton
207### RooAbsPdf.plotOn
208The RooAbsPdf::plotOn() function is pythonized with the command argument pythonization.
209The keywords must correspond to the CmdArgs of the function.
210
211\see RooAbsPdf::plotOn(RooPlot* frame, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8, const RooCmdArg& arg9, const RooCmdArg& arg10) const
212
213\anchor _rooabspdf_preparemultigen
214### RooAbsPdf.prepareMultiGen
215The RooAbsPdf::prepareMultiGen() function is pythonized with the command argument pythonization.
216The keywords must correspond to the CmdArgs of the function.
217
218\see RooAbsPdf::prepareMultiGen(const RooArgSet &whatVars, const RooCmdArg& arg1,const RooCmdArg& arg2, const RooCmdArg& arg3,const RooCmdArg& arg4, const RooCmdArg& arg5,const RooCmdArg& arg6)
219
220\anchor _rooabsreal
221## RooAbsReal
222\see RooAbsReal
223
224Some member functions of RooAbsReal that take a RooCmdArg as argument also support keyword arguments.
225So far, this applies to RooAbsReal::plotOn, RooAbsReal::createHistogram, RooAbsReal::chi2FitTo,
226RooAbsReal::createChi2, RooAbsReal::createRunningIntegral and RooAbsReal::createIntegral
227For example, the following code is equivalent in PyROOT:
228\code{.py}
229# Directly passing a RooCmdArg:
230var.plotOn(frame, ROOT.RooFit.Components("background"))
231
232# With keyword arguments:
233var.plotOn(frame, Components="background")
234\endcode
235
236\anchor _rooabsreal_chi2fitto
237### RooAbsReal.chi2FitTo
238The RooAbsReal::chi2FitTo() function is pythonized with the command argument pythonization.
239The keywords must correspond to the CmdArgs of the function.
240
241\see RooAbsReal::chi2FitTo(RooDataSet& xydata, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
242
243\anchor _rooabsreal_createchi2
244### RooAbsReal.createChi2
245The RooAbsReal::createChi2() function is pythonized with the command argument pythonization.
246The keywords must correspond to the CmdArgs of the function.
247
248\see RooAbsReal::createChi2(RooDataHist& data, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
249
250\anchor _rooabsreal_createhistogram
251### RooAbsReal.createHistogram
252The RooAbsReal::createHistogram() function is pythonized with the command argument pythonization.
253The keywords must correspond to the CmdArgs of the function.
254
255\see RooAbsReal::createHistogram(const char *name, const RooAbsRealLValue& xvar, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const
256
257\anchor _rooabsreal_createintegral
258### RooAbsReal.createIntegral
259The RooAbsReal::createIntegral() function is pythonized with the command argument pythonization.
260The keywords must correspond to the CmdArgs of the function.
261
262\see RooAbsReal::createIntegral(const RooArgSet& iset, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const
263
264\anchor _rooabsreal_createrunningintegral
265### RooAbsReal.createRunningIntegral
266The RooAbsReal::createRunningIntegral() function is pythonized with the command argument pythonization.
267The keywords must correspond to the CmdArgs of the function.
268
269\see RooAbsReal::createRunningIntegral(const RooArgSet& iset, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
270
271\anchor _rooabsreal_ploton
272### RooAbsReal.plotOn
273The RooAbsReal::plotOn() function is pythonized with the command argument pythonization.
274The keywords must correspond to the CmdArgs of the function.
275
276\see RooAbsReal::plotOn(RooPlot* frame, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8, const RooCmdArg& arg9, const RooCmdArg& arg10) const
277
278\anchor _rooabsreallvalue
279## RooAbsRealLValue
280\see RooAbsRealLValue
281
282Some member functions of RooAbsRealLValue that take a RooCmdArg as argument also support keyword arguments.
283So far, this applies to RooAbsRealLValue::createHistogram and RooAbsRealLValue::frame.
284For example, the following code is equivalent in PyROOT:
285\code{.py}
286# Directly passing a RooCmdArg:
287frame = x.frame(ROOT.RooFit.Name("xframe"), ROOT.RooFit.Title("RooPlot with decorations"), ROOT.RooFit.Bins(40))
288
289# With keyword arguments:
290frame = x.frame(Name="xframe", Title="RooPlot with decorations", Bins=40)
291\endcode
292
293\anchor _rooabsreallvalue_createhistogram
294### RooAbsRealLValue.createHistogram
295The RooAbsRealLValue::createHistogram() function is pythonized with the command argument pythonization.
296The keywords must correspond to the CmdArgs of the function.
297
298\see RooAbsRealLValue::createHistogram(const char *name, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const
299
300\anchor _rooabsreallvalue_frame
301### RooAbsRealLValue.frame
302The RooAbsRealLValue::frame() function is pythonized with the command argument pythonization.
303The keywords must correspond to the CmdArgs of the function.
304
305\see RooAbsRealLValue::frame(const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const
306
307\anchor _rooargset
308## RooArgSet
309\see RooArgSet
310
311\anchor _rooargset___init__
312### RooArgSet.__init__
313Pythonization of RooArgSet constructor to support implicit
314conversion from Python sets.
315
316\anchor _roobcpgendecay
317## RooBCPGenDecay
318\see RooBCPGenDecay
319
320\anchor _roobcpgendecay___init__
321### RooBCPGenDecay.__init__
322The RooBCPGenDecay constructor is pythonized with enum values.
323
324\see RooBCPGenDecay(const char *name, const char *title, RooRealVar& t, RooAbsCategory& tag, RooAbsReal& tau, RooAbsReal& dm, RooAbsReal& avgMistag, RooAbsReal& a, RooAbsReal& b, RooAbsReal& delMistag, RooAbsReal& mu, const RooResolutionModel& model, DecayType type)
325
326\anchor _roobcpeffdecay
327## RooBCPEffDecay
328\see RooBCPEffDecay
329
330\anchor _roobcpeffdecay___init__
331### RooBCPEffDecay.__init__
332The RooBCPEffDecay constructor is pythonized with enum values.
333
334\see RooBCPEffDecay(const char *name, const char *title, RooRealVar& t, RooAbsCategory& tag, RooAbsReal& tau, RooAbsReal& dm, RooAbsReal& avgMistag, RooAbsReal& CPeigenval, RooAbsReal& a, RooAbsReal& b, RooAbsReal& effRatio, RooAbsReal& delMistag, const RooResolutionModel& model, DecayType type)
335
336\anchor _roobdecay
337## RooBDecay
338\see RooBDecay
339
340\anchor _roobdecay___init__
341### RooBDecay.__init__
342The RooBDecay constructor is pythonized with enum values.
343
344\see RooBDecay(const char *name, const char *title, RooRealVar& t, RooAbsReal& tau, RooAbsReal& dgamma, RooAbsReal& f0, RooAbsReal& f1, RooAbsReal& f2, RooAbsReal& f3, RooAbsReal& dm, const RooResolutionModel& model, DecayType type)
345
346\anchor _roobmixdecay
347## RooBMixDecay
348\see RooBMixDecay
349
350\anchor _roobmixdecay___init__
351### RooBMixDecay.__init__
352The RooBMixDecay constructor is pythonized with enum values.
353
354\see RooBMixDecay(const char *name, const char *title, RooRealVar& t, RooAbsCategory& mixState, RooAbsCategory& tagFlav, RooAbsReal& tau, RooAbsReal& dm, RooAbsReal& mistag, RooAbsReal& delMistag, const RooResolutionModel& model, DecayType type)
355
356\anchor _roocategory
357## RooCategory
358\see RooCategory
359
360Constructor of RooCategory takes a map as an argument also supports python dictionaries.
361For example, the following code is equivalent in PyROOT:
362\code{.py}
363# Default bindings :
364mixState = ROOT.RooCategory("mixState", "B0/B0bar mixing state")
365mixState.defineType("mixed", -1)
366mixState.defineType("unmixed", 1)
367
368# With pythonization :
369mixState = ROOT.RooCategory("mixState", "B0/B0bar mixing state", {"mixed" : -1, "unmixed" : 1})
370\endcode
371
372\anchor _roocategory___init__
373### RooCategory.__init__
374The RooCategory constructor is pythonized for converting python dict to std::map.
375The instances in the dict must correspond to the template argument in std::map of the constructor.
376
377\see RooCategory(const char* name, const char* title, const std::map<std::string, int>& allowedStates)
378
379\anchor _roodatahist
380## RooDataHist
381\see RooDataHist
382
383Constructor of RooDataHist takes a RooCmdArg as argument also supports keyword arguments.
384For example, the following code is equivalent in PyROOT:
385\code{.py}
386# Directly passing a RooCmdArg:
387dh = ROOT.RooDataHist("dh", "dh", ROOT.RooArgList(x), ROOT.RooFit.Import("SampleA", histo))
388
389# With keyword arguments:
390dh = ROOT.RooDataHist("dh", "dh", ROOT.RooArgList(x), Import=("SampleA", histo))
391\endcode
392
393\anchor _roodatahist___init__
394### RooDataHist.__init__
395The RooDataHist constructor is pythonized with the command argument pythonization and for converting python dict to std::map.
396The keywords must correspond to the CmdArg of the constructor function.
397The instances in dict must correspond to the template argument in std::map of the constructor.
398
399\see RooDataHist(std::string_view name, std::string_view title, const RooArgList& vars, RooCategory& indexCat, std::map<std::string,TH1*> histMap, Double_t initWgt)
400
401\see RooDataHist(std::string_view name, std::string_view title, const RooArgList& vars, RooCategory& indexCat, std::map<std::string,RooDataHist*> dhistMap, Double_t wgt)
402
403\anchor _roodatahist_from_numpy
404### RooDataHist.from_numpy
405Create a RooDataHist from numpy arrays.
406
407Note: The argument structure was inspired by numpy.histogramdd.
408
409Args:
410 hist_weights (numpy.ndarray): The multidimensional histogram bin
411 weights.
412 bins (list): The bin specification, where each element is either:
413 * a numpy array describing the monotonically
414 increasing bin edges along each dimension.
415 * a scalar value for the number of bins (in this
416 case, the corresponding item in the `ranges`
417 argument must be filled)
418 * `None` for a category dimension or if you want to
419 use the default binning of the RooFit variable
420 variables (RooArgSet, or list/tuple of RooAbsArgs):
421 Specification of the variables in the RooDataHist, will be
422 forwarded to the RooDataHist constructor. Both real values and
423 categories are supported.
424 ranges (list): An optional list specifying the variable range
425 limits. Each element is either:
426 * `None` if a full bin edges array is given to
427 `bins` or for a category dimension
428 * a tuple with two values corresponding to the
429 minimum and maximum values
430 weights_squared_sum (numpy.ndarray):
431 The sum of squared weights of the original samples that were
432 used to fill the histogram. If the input weights are from a
433 weighted histogram, this parameter is no longer optional.
434 name (str): Name of the RooDataSet, `None` is equivalent to an
435 empty string.
436 title (str): Title of the RooDataSet, `None` is equivalent to an
437 empty string.
438
439Returns:
440 RooDataHist
441
442\anchor _roodatahist_to_numpy
443### RooDataHist.to_numpy
444Converts the weights and bin edges of a RooDataHist to numpy arrays.
445
446Note: The output structure was inspired by numpy.histogramdd.
447
448Returns:
449 weight (numpy.ndarray): The weights for each histrogram bin.
450 bin_edges (list): A list of `n_dim` arrays describing the bin edges
451 for each dimension. For dimensions of category
452 types, the list element is `None`.
453
454\anchor _roodataset
455## RooDataSet
456\see RooDataSet
457
458Some member functions of RooDataSet that take a RooCmdArg as argument also support keyword arguments.
459So far, this applies to RooDataSet() constructor and RooDataSet::plotOnXY.
460For example, the following code is equivalent in PyROOT:
461\code{.py}
462# Directly passing a RooCmdArg:
463dxy = ROOT.RooDataSet("dxy", "dxy", ROOT.RooArgSet(x, y), ROOT.RooFit.StoreError(ROOT.RooArgSet(x, y)))
464
465# With keyword arguments:
466dxy = ROOT.RooDataSet("dxy", "dxy", ROOT.RooArgSet(x, y), StoreError=(ROOT.RooArgSet(x, y)))
467\endcode
468
469\anchor _roodataset___init__
470### RooDataSet.__init__
471The RooDataSet constructor is pythonized with the command argument pythonization.
472The keywords must correspond to the CmdArgs of the constructor.
473
474\see RooDataSet(std::string_view name, std::string_view title, const RooArgSet& vars, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4,const RooCmdArg& arg5, const RooCmdArg& arg6,const RooCmdArg& arg7,const RooCmdArg& arg8)
475
476\anchor _roodataset_from_numpy
477### RooDataSet.from_numpy
478Create a RooDataSet from a dictionary of numpy arrays.
479Args:
480 data (dict): Dictionary with strings as keys and numpy arrays as
481 values, to be imported into the RooDataSet.
482 variables (RooArgSet, or list/tuple of RooAbsArgs):
483 Specification of the variables in the RooDataSet, will be
484 forwarded to the RooDataSet constructor. Both real values and
485 categories are supported.
486 name (str): Name of the RooDataSet, `None` is equivalent to an
487 empty string.
488 title (str): Title of the RooDataSet, `None` is equivalent to an
489 empty string.
490 weight_name (str): Key of the array in `data` that will be used for
491 the dataset weights.
492
493Returns:
494 RooDataSet
495
496\anchor _roodataset_from_pandas
497### RooDataSet.from_pandas
498Create a RooDataSet from a pandas DataFrame.
499Args:
500 df (pandas.DataFrame): Pandas DataFrame to import.
501 variables (RooArgSet, or list/tuple of RooAbsArgs):
502 Specification of the variables in the RooDataSet, will be
503 forwarded to the RooDataSet constructor. Both real values and
504 categories are supported.
505 name (str): Name of the RooDataSet, `None` is equivalent to an
506 empty string.
507 title (str): Title of the RooDataSet, `None` is equivalent to an
508 empty string.
509 weight_name (str): Key of the array in `data` that will be used for
510 the dataset weights.
511
512Returns:
513 RooDataSet
514
515\anchor _roodataset_plotonxy
516### RooDataSet.plotOnXY
517The RooDataSet::plotOnXY() function is pythonized with the command argument pythonization.
518The keywords must correspond to the CmdArgs of the function.
519
520\see RooDataSet::plotOnXY(RooPlot* frame, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const
521
522\anchor _roodataset_to_numpy
523### RooDataSet.to_numpy
524Export a RooDataSet to a dictionary of numpy arrays.
525
526Args:
527 copy (bool): If False, the data will not be copied. Use with
528 caution, as the numpy arrays and the RooAbsData now
529 own the same memory. If the dataset uses a
530 RooTreeDataStore, there will always be a copy and the
531 copy argument is ignored.
532
533Returns:
534 dict: A dictionary with the variable or weight names as keys and
535 the numpy arrays as values.
536
537\anchor _roodataset_to_pandas
538### RooDataSet.to_pandas
539Export a RooDataSet to a pandas DataFrame.
540
541Args:
542
543Note:
544 Pandas copies the data from the numpy arrays when creating a
545 DataFrame. That's why we can disable copying in the to_numpy call.
546
547Returns:
548 pandas.DataFrame: A dataframe with the variable or weight names as
549 column names and the a row for each variable or
550 weight in the dataset.
551
552\anchor _roodecay
553## RooDecay
554\see RooDecay
555
556Some constructors of classes like RooDecay, RooBDecay, RooBCPGenDecay, RooBCPEffDecay and RooBMixDecay that take an enum
557DecayType as argument also support keyword arguments.
558For example, the following code is equivalent in PyROOT:
559\code{.py}
560# Directly passing keyword argument with string corresponding to enum value name:
561decay_tm = ROOT.RooDecay("decay_tm", "decay", dt, tau, tm, ROOT.RooDecay.DoubleSided)
562
563# With enum value:
564decay_tm = ROOT.RooDecay("decay_tm", "decay", dt, tau, tm, type="DoubleSided")
565\endcode
566
567\anchor _roodecay___init__
568### RooDecay.__init__
569The RooDecay constructor is pythonized with enum values.
570
571\see RooDecay(const char *name, const char *title, RooRealVar& t, RooAbsReal& tau, const RooResolutionModel& model, DecayType type)
572
573\anchor _roogenfitstudy
574## RooGenFitStudy
575\see RooGenFitStudy
576
577Some member functions of RooGenFitStudy that take a RooCmdArg as argument also support keyword arguments.
578So far, this applies to RooGenFitStudy::setGenConfig.
579
580\anchor _roogenfitstudy_setgenconfig
581### RooGenFitStudy.setGenConfig
582The RooGenFitStudy::setGenConfig() function is pythonized with the command argument pythonization.
583The keywords must correspond to the CmdArg of the function.
584
585\see RooGenFitStudy::setGenConfig(const char* pdfName, const char* obsName, const RooCmdArg& arg1, const RooCmdArg& arg2,const RooCmdArg& arg3)
586
587\see RooGenFitStudy::setFitConfig(const char* pdfName, const char* obsName, const RooCmdArg& arg1,const RooCmdArg& arg2,const RooCmdArg& arg3)
588
589\anchor _roomcstudy
590## RooMCStudy
591\see RooMCStudy
592
593Some member functions of RooMCStudy that take a RooCmdArg as argument also support keyword arguments.
594So far, this applies to constructor RooMCStudy(), RooMCStudy::plotParamOn, RooMCStudy::plotParam, RooMCStudy::plotNLL, RooMCStudy::plotError and RooMCStudy::plotPull.
595For example, the following code is equivalent in PyROOT:
596\code{.py}
597# Directly passing a RooCmdArg:
598frame3 = mcstudy.plotPull(mean, ROOT.RooFit.Bins(40), ROOT.RooFit.FitGauss(True))
599
600# With keyword arguments:
601frame3 = mcstudy.plotPull(mean, Bins=40, FitGauss=True)
602\endcode
603
604\anchor _roomcstudy___init__
605### RooMCStudy.__init__
606The RooMCStudy constructor is pythonized with the command argument pythonization.
607The keywords must correspond to the CmdArg of the constructor function.
608
609\see RooMCStudy(const RooAbsPdf& model, const RooArgSet& observables, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
610
611\anchor _roomcstudy_ploterror
612### RooMCStudy.plotError
613The RooMCStudy::plotError() function is pythonized with the command argument pythonization.
614The keywords must correspond to the CmdArg of the function.
615
616\see RooMCStudy::plotError(const RooRealVar& param, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
617
618\anchor _roomcstudy_plotnll
619### RooMCStudy.plotNLL
620The RooMCStudy::plotNLL() function is pythonized with the command argument pythonization.
621The keywords must correspond to the CmdArg of the function.
622
623\see RooMCStudy::plotNLL(const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
624
625\anchor _roomcstudy_plotparam
626### RooMCStudy.plotParam
627The RooMCStudy::plotParam() function is pythonized with the command argument pythonization.
628The keywords must correspond to the CmdArg of the function.
629
630\see RooMCStudy::plotParam(const RooRealVar& param, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
631
632\see RooMCStudy::plotParam(const char* paramName, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
633
634\anchor _roomcstudy_plotparamon
635### RooMCStudy.plotParamOn
636The RooMCStudy::plotParamOn() function is pythonized with the command argument pythonization.
637The keywords must correspond to the CmdArg of the function.
638
639\see RooMCStudy::plotParamOn(RooPlot* frame, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
640
641\anchor _roomcstudy_plotpull
642### RooMCStudy.plotPull
643The RooMCStudy::plotError() function is pythonized with the command argument pythonization.
644The keywords must correspond to the CmdArg of the function.
645
646\see RooMCStudy::plotPull(const RooRealVar& param, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
647
648\anchor _roomsgservice
649## RooMsgService
650\see RooMsgService
651
652Some member functions of RooMsgService that take a RooCmdArg as argument also support keyword arguments.
653So far, this applies to RooMsgService::addStream.
654For example, the following code is equivalent in PyROOT:
655\code{.py}
656# Directly passing a RooCmdArg:
657ROOT.RooMsgService.instance().addStream(ROOT.RooFit.DEBUG, ROOT.RooFit.Topic(ROOT.RooFit.Tracing), ROOT.RooFit.ClassName("RooGaussian"))
658
659# With keyword arguments:
660ROOT.RooMsgService.instance().addStream(ROOT.RooFit.DEBUG, Topic = ROOT.RooFit.Tracing, ClassName = "RooGaussian")
661\endcode
662
663\anchor _roomsgservice_addstream
664### RooMsgService.addStream
665The RooMsgService::addStream() function is pythonized with the command argument pythonization.
666The keywords must correspond to the CmdArg of the function.
667
668\see RooMsgService::addStream(RooFit::MsgLevel level, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6)
669
670\anchor _rooprodpdf
671## RooProdPdf
672\see RooProdPdf
673
674RooProdPdf() constructor takes a RooCmdArg as argument also supports keyword arguments.
675For example, the following code is equivalent in PyROOT:
676\code{.py}
677# Directly passing a RooCmdArg:
678model = ROOT.RooProdPdf(
679 "model", "model", ROOT.RooArgSet(shapePdf), ROOT.RooFit.Conditional(ROOT.RooArgSet(effPdf), ROOT.RooArgSet(cut))
680 )
681
682# With keyword arguments:
683model = ROOT.RooProdPdf(
684 "model", "model", ROOT.RooArgSet(shapePdf), Conditional=(ROOT.RooArgSet(effPdf), ROOT.RooArgSet(cut))
685 )
686\endcode
687
688\anchor _rooprodpdf___init__
689### RooProdPdf.__init__
690The RooProdPdf constructor is pythonized with the command argument pythonization.
691The keywords must correspond to the CmdArgs of the constructor.
692
693\see RooProdPdf(const char* name, const char* title, const RooArgSet& fullPdfSet, const RooCmdArg& arg1 , const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
694
695\anchor _roorealvar
696## RooRealVar
697\see RooRealVar
698
699\anchor _roorealvar_bins
700### RooRealVar.bins
701Return the binning of this RooRealVar as a numpy array.
702
703\anchor _roosimultaneous
704## RooSimultaneous
705\see RooSimultaneous
706
707Some member functions of RooSimultaneous that take a RooCmdArg as argument also support keyword arguments.
708So far, this applies to RooSimultaneous::plotOn.
709For example, the following code is equivalent in PyROOT:
710\code{.py}
711# Directly passing a RooCmdArg:
712pdfSim.plotOn(frame, ROOT.RooFit.Slice(sample,"control"), ROOT.RooFit.ProjWData(sampleSet, combData))
713
714# With keyword arguments:
715simPdf.plotOn(frame, Slice=(sample, "control"), ProjWData=(sampleSet, combData))
716\endcode
717
718\anchor _roosimultaneous___init__
719### RooSimultaneous.__init__
720The RooSimultaneous constructor that takes a map of category names
721to PDFs is accepting a Python dictionary in Python.
722
723\see RooSimultaneous(const char *name, const char *title, std::map<std::string,RooAbsPdf*> pdfMap, RooAbsCategoryLValue& inIndexCat)
724
725\anchor _roosimultaneous_ploton
726### RooSimultaneous.plotOn
727The RooSimultaneous::plotOn() function is pythonized with the command argument pythonization.
728The keywords must correspond to the CmdArgs of the function.
729
730\see RooSimultaneous::plotOn(RooPlot* frame, const RooCmdArg& arg1 , const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8, const RooCmdArg& arg9, const RooCmdArg& arg10) const
731
732\anchor _roosimwstool
733## RooSimWSTool
734\see RooSimWSTool
735
736Some member functions of RooSimWSTool that take a RooCmdArg as argument also support keyword arguments.
737So far, this applies to RooSimWSTool::build.
738For example, the following code is equivalent in PyROOT:
739\code{.py}
740# Directly passing a RooCmdArg:
741sct.build("model_sim2", "model", ROOT.RooFit.SplitParam("p0", "c,d"))
742
743# With keyword arguments:
744sct.build("model_sim2", "model", SplitParam=("p0", "c,d"))
745\endcode
746
747\anchor _roosimwstool_build
748### RooSimWSTool.build
749The RooSimWSTool::build() function is pythonized with the command argument pythonization.
750The keywords must correspond to the CmdArgs of the function.
751
752\see RooSimWSTool::build(const char* simPdfName, const char* protoPdfName, const RooCmdArg& arg1,const RooCmdArg& arg2, const RooCmdArg& arg3,const RooCmdArg& arg4, const RooCmdArg& arg5,const RooCmdArg& arg6)
753
754\anchor _rooworkspace
755## RooWorkspace
756\see RooWorkspace
757
758The RooWorkspace::import function can't be used in PyROOT because `import` is a reserved python keyword.
759For this reason, an alternative with a capitalized name is provided:
760\code{.py}
761workspace.Import(x)
762\endcode
763
764\anchor _rooworkspace_import
765### RooWorkspace.Import
766Support the C++ `import()` as `Import()` in python
767
768\see RooWorkspace::import(const RooAbsArg& arg, const RooCmdArg& arg1,const RooCmdArg& arg2,const RooCmdArg& arg3, const RooCmdArg& arg4,const RooCmdArg& arg5,const RooCmdArg& arg6, const RooCmdArg& arg7,const RooCmdArg& arg8,const RooCmdArg& arg9)
769
770\see RooWorkspace::import(RooAbsData& data, const RooCmdArg& arg1,const RooCmdArg& arg2,const RooCmdArg& arg3, const RooCmdArg& arg4,const RooCmdArg& arg5,const RooCmdArg& arg6, const RooCmdArg& arg7,const RooCmdArg& arg8,const RooCmdArg& arg9)
771
772\see RooWorkspace::import(const char *fileSpec, const RooCmdArg& arg1,const RooCmdArg& arg2,const RooCmdArg& arg3, const RooCmdArg& arg4,const RooCmdArg& arg5,const RooCmdArg& arg6, const RooCmdArg& arg7,const RooCmdArg& arg8,const RooCmdArg& arg9)
773
774\anchor _rooworkspace___init__
775### RooWorkspace.__init__
776The RooWorkspace constructor is pythonized with the command argument pythonization.
777The keywords must correspond to the CmdArgs of the constructor.
778
779\see RooWorkspace::import(const RooAbsArg& arg, const RooCmdArg& arg1,const RooCmdArg& arg2,const RooCmdArg& arg3, const RooCmdArg& arg4,const RooCmdArg& arg5,const RooCmdArg& arg6, const RooCmdArg& arg7,const RooCmdArg& arg8,const RooCmdArg& arg9)
780
781\anchor _rooworkspace__ipython_key_completions_
782### RooWorkspace._ipython_key_completions_
783Support tab completion for `__getitem__`, suggesting all components in
784the workspace.
785
786\anchor _rooworkspace_rooworkspace_import
787### RooWorkspace.RooWorkspace_import
788The RooWorkspace::import function can't be used in PyROOT because `import` is a reserved python keyword.
789So, Import() is used and pythonized with the command argument pythonization.
790The keywords must correspond to the CmdArg of the `import()` function.
791
792\anchor _splot
793## SPlot
794\see SPlot
795
796The constructor of RooStats::SPlot takes RooCmdArg as arguments also support keyword arguments.
797This also applies to SPlot::AddSWeights. For example, the following code is equivalent in PyROOT:
798\code{.py}
799# Directly passing a RooCmdArg:
800RooStats.SPlot(data, ROOT.RooStats.RooCmdArg("Strategy", 0))
801
802# With keyword arguments:
803RooStats.SPlot(data, Strategy = 0)
804\endcode
805
806\anchor _splot__splot_addsweight
807### SPlot._SPlot_AddSWeight
808The SPlot::AddSWeight function is pythonized with the command argument pythonization.
809For example, the following code is equivalent in PyROOT:
810\code{.py}
811
812splot = ROOT.RooStats.SPlot("sData", "An SPlot", data, massModel, [zYield, qcdYield])
813
814# Directly passing a RooCmdArg:
815splot.AddSWeight(pdf, [zYield, qcdYield], ROOT.RooStats.RooCmdArg("Strategy", 0), ROOT.RooStats.RooCmdArg("InitialHesse", 1))
816
817# With keyword arguments:
818splot.AddSWeight(pdf, [zYield, qcdYield], Strategy=3, InitialHesse=1)
819\endcode
820
821\see SPlot::AddSWeight( RooAbsPdf* pdf, const RooArgList &yieldsTmp, const RooArgSet &projDeps, bool includeWeights, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
822
823\anchor _splot__splot_init
824### SPlot._SPlot_init
825The SPlot constructor is pythonized with the command argument pythonization.
826The keywords must correspond to the CmdArgs of the constructor. The constructor automatically calls AddSWeight() with the given RooCmdArg
827
828For example, the following code is equivalent in PyROOT:
829\code{.py}
830# Directly passing a RooCmdArg:
831sData = ROOT.RooStats.SPlot("sData", "An SPlot", data, massModel, [zYield, qcdYield], ROOT.RooStats.RooCmdArg("Strategy", 0))
832
833# With keyword arguments:
834sData = ROOT.RooStats.SPlot("sData", "An SPlot", data, massModel, [zYield, qcdYield], Strategy=0)
835\endcode
836
837\see SPlot::SPlot(const char* name, const char* title, RooDataSet& data, RooAbsPdf* pdf, const RooArgList &yieldsList, const RooArgSet &projDeps, bool useWeights, bool cloneData, const char* newName, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8):TNamed(name, title)
838
839
840\class RooAbsCollection
841\brief \parblock \endparblock
842\htmlonly
843<div class="pyrootbox">
844\endhtmlonly
845## PyROOT
846Some member functions of RooAbsCollection that take a RooCmdArg as argument also support keyword arguments.
847So far, this applies to RooAbsCollection::printLatex. For example, the following code is equivalent in PyROOT:
848\code{.py}
849# Directly passing a RooCmdArg:
850params.printLatex(ROOT.RooFit.Sibling(initParams), ROOT.RooFit.Columns(2))
851
852# With keyword arguments:
853params.printLatex(Sibling=initParams, Columns =2)
854\endcode
855\htmlonly
856</div>
857\endhtmlonly
858
859\fn RooAbsCollection::printLatex(const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const
860\brief \parblock \endparblock
861\htmlonly
862<div class="pyrootbox">
863\endhtmlonly
864## PyROOT
865The RooAbsCollection::printLatex() function is pythonized with the command argument pythonization.
866The keywords must correspond to the CmdArgs of the function.
867\htmlonly
868</div>
869\endhtmlonly
870
871\class RooAbsData
872\brief \parblock \endparblock
873\htmlonly
874<div class="pyrootbox">
875\endhtmlonly
876## PyROOT
877Some member functions of RooAbsData that take a RooCmdArg as argument also support keyword arguments.
878This applies to RooAbsData::plotOn, RooAbsData::createHistogram, RooAbsData::reduce, RooAbsData::statOn.
879For example, the following code is equivalent in PyROOT:
880\code{.py}
881# Directly passing a RooCmdArg:
882data.plotOn(frame, ROOT.RooFit.CutRange("r1"))
883
884# With keyword arguments:
885data.plotOn(frame, CutRange="r1")
886\endcode
887\htmlonly
888</div>
889\endhtmlonly
890
891\fn RooAbsData::createHistogram(const char *name, const RooAbsRealLValue& xvar, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const
892\brief \parblock \endparblock
893\htmlonly
894<div class="pyrootbox">
895\endhtmlonly
896## PyROOT
897The RooAbsData::createHistogram() function is pythonized with the command argument pythonization.
898The keywords must correspond to the CmdArgs of the function.
899\htmlonly
900</div>
901\endhtmlonly
902
903\fn RooAbsData::plotOn(RooPlot* frame, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const
904\brief \parblock \endparblock
905\htmlonly
906<div class="pyrootbox">
907\endhtmlonly
908## PyROOT
909The RooAbsData::plotOn() function is pythonized with the command argument pythonization.
910The keywords must correspond to the CmdArgs of the function.
911\htmlonly
912</div>
913\endhtmlonly
914
915\fn RooAbsData::reduce(const RooCmdArg& arg1,const RooCmdArg& arg2, const RooCmdArg& arg3,const RooCmdArg& arg4, const RooCmdArg& arg5,const RooCmdArg& arg6, const RooCmdArg& arg7,const RooCmdArg& arg8)
916\brief \parblock \endparblock
917\htmlonly
918<div class="pyrootbox">
919\endhtmlonly
920## PyROOT
921The RooAbsData::reduce() function is pythonized with the command argument pythonization.
922The keywords must correspond to the CmdArgs of the function.
923\htmlonly
924</div>
925\endhtmlonly
926
927\fn RooAbsData::statOn(RooPlot* frame, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
928\brief \parblock \endparblock
929\htmlonly
930<div class="pyrootbox">
931\endhtmlonly
932## PyROOT
933The RooAbsData::statOn() function is pythonized with the command argument pythonization.
934The keywords must correspond to the CmdArgs of the function.
935\htmlonly
936</div>
937\endhtmlonly
938
939\class RooAbsPdf
940\brief \parblock \endparblock
941\htmlonly
942<div class="pyrootbox">
943\endhtmlonly
944## PyROOT
945Some member functions of RooAbsPdf that take a RooCmdArg as argument also support keyword arguments.
946So far, this applies to RooAbsPdf::fitTo, RooAbsPdf::plotOn, RooAbsPdf::generate, RooAbsPdf::paramOn, RooAbsPdf::createCdf,
947RooAbsPdf::generateBinned, RooAbsPdf::prepareMultiGen and RooAbsPdf::createNLL.
948For example, the following code is equivalent in PyROOT:
949\code{.py}
950# Directly passing a RooCmdArg:
951pdf.fitTo(data, ROOT.RooFit.Range("r1"))
952
953# With keyword arguments:
954pdf.fitTo(data, Range="r1")
955\endcode
956\htmlonly
957</div>
958\endhtmlonly
959
960\fn RooAbsPdf::createCdf(const RooArgSet& iset, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
961\brief \parblock \endparblock
962\htmlonly
963<div class="pyrootbox">
964\endhtmlonly
965## PyROOT
966The RooAbsPdf::createCdf() function is pythonized with the command argument pythonization.
967The keywords must correspond to the CmdArgs of the function.
968\htmlonly
969</div>
970\endhtmlonly
971
972\fn RooAbsPdf::createNLL()
973\brief \parblock \endparblock
974\htmlonly
975<div class="pyrootbox">
976\endhtmlonly
977## PyROOT
978The RooAbsPdf::createNLL() function is pythonized with the command argument pythonization.
979The keywords must correspond to the CmdArgs of the function.
980\htmlonly
981</div>
982\endhtmlonly
983
984\fn RooAbsPdf::fitTo()
985\brief \parblock \endparblock
986\htmlonly
987<div class="pyrootbox">
988\endhtmlonly
989## PyROOT
990The RooAbsPdf::fitTo() function is pythonized with the command argument pythonization.
991The keywords must correspond to the CmdArgs of the function.
992\htmlonly
993</div>
994\endhtmlonly
995
996\fn RooAbsPdf::generate(const RooArgSet &whatVars, const RooCmdArg& arg1,const RooCmdArg& arg2, const RooCmdArg& arg3,const RooCmdArg& arg4, const RooCmdArg& arg5,const RooCmdArg& arg6)
997\brief \parblock \endparblock
998\htmlonly
999<div class="pyrootbox">
1000\endhtmlonly
1001## PyROOT
1002The RooAbsPdf::generate() function is pythonized with the command argument pythonization.
1003The keywords must correspond to the CmdArgs of the function.
1004\htmlonly
1005</div>
1006\endhtmlonly
1007
1008\fn RooAbsPdf::generateBinned(const RooArgSet &whatVars, const RooCmdArg& arg1,const RooCmdArg& arg2, const RooCmdArg& arg3,const RooCmdArg& arg4, const RooCmdArg& arg5,const RooCmdArg& arg6) const
1009\brief \parblock \endparblock
1010\htmlonly
1011<div class="pyrootbox">
1012\endhtmlonly
1013## PyROOT
1014The RooAbsPdf::generateBinned() function is pythonized with the command argument pythonization.
1015The keywords must correspond to the CmdArgs of the function.
1016\htmlonly
1017</div>
1018\endhtmlonly
1019
1020\fn RooAbsPdf::paramOn(RooPlot* frame, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
1021\brief \parblock \endparblock
1022\htmlonly
1023<div class="pyrootbox">
1024\endhtmlonly
1025## PyROOT
1026The RooAbsPdf::paramOn() function is pythonized with the command argument pythonization.
1027The keywords must correspond to the CmdArgs of the function.
1028\htmlonly
1029</div>
1030\endhtmlonly
1031
1032\fn RooAbsPdf::plotOn(RooPlot* frame, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8, const RooCmdArg& arg9, const RooCmdArg& arg10) const
1033\brief \parblock \endparblock
1034\htmlonly
1035<div class="pyrootbox">
1036\endhtmlonly
1037## PyROOT
1038The RooAbsPdf::plotOn() function is pythonized with the command argument pythonization.
1039The keywords must correspond to the CmdArgs of the function.
1040\htmlonly
1041</div>
1042\endhtmlonly
1043
1044\fn RooAbsPdf::prepareMultiGen(const RooArgSet &whatVars, const RooCmdArg& arg1,const RooCmdArg& arg2, const RooCmdArg& arg3,const RooCmdArg& arg4, const RooCmdArg& arg5,const RooCmdArg& arg6)
1045\brief \parblock \endparblock
1046\htmlonly
1047<div class="pyrootbox">
1048\endhtmlonly
1049## PyROOT
1050The RooAbsPdf::prepareMultiGen() function is pythonized with the command argument pythonization.
1051The keywords must correspond to the CmdArgs of the function.
1052\htmlonly
1053</div>
1054\endhtmlonly
1055
1056\class RooAbsReal
1057\brief \parblock \endparblock
1058\htmlonly
1059<div class="pyrootbox">
1060\endhtmlonly
1061## PyROOT
1062Some member functions of RooAbsReal that take a RooCmdArg as argument also support keyword arguments.
1063So far, this applies to RooAbsReal::plotOn, RooAbsReal::createHistogram, RooAbsReal::chi2FitTo,
1064RooAbsReal::createChi2, RooAbsReal::createRunningIntegral and RooAbsReal::createIntegral
1065For example, the following code is equivalent in PyROOT:
1066\code{.py}
1067# Directly passing a RooCmdArg:
1068var.plotOn(frame, ROOT.RooFit.Components("background"))
1069
1070# With keyword arguments:
1071var.plotOn(frame, Components="background")
1072\endcode
1073\htmlonly
1074</div>
1075\endhtmlonly
1076
1077\fn RooAbsReal::chi2FitTo(RooDataSet& xydata, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
1078\brief \parblock \endparblock
1079\htmlonly
1080<div class="pyrootbox">
1081\endhtmlonly
1082## PyROOT
1083The RooAbsReal::chi2FitTo() function is pythonized with the command argument pythonization.
1084The keywords must correspond to the CmdArgs of the function.
1085\htmlonly
1086</div>
1087\endhtmlonly
1088
1089\fn RooAbsReal::createChi2(RooDataHist& data, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
1090\brief \parblock \endparblock
1091\htmlonly
1092<div class="pyrootbox">
1093\endhtmlonly
1094## PyROOT
1095The RooAbsReal::createChi2() function is pythonized with the command argument pythonization.
1096The keywords must correspond to the CmdArgs of the function.
1097\htmlonly
1098</div>
1099\endhtmlonly
1100
1101\fn RooAbsReal::createHistogram(const char *name, const RooAbsRealLValue& xvar, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const
1102\brief \parblock \endparblock
1103\htmlonly
1104<div class="pyrootbox">
1105\endhtmlonly
1106## PyROOT
1107The RooAbsReal::createHistogram() function is pythonized with the command argument pythonization.
1108The keywords must correspond to the CmdArgs of the function.
1109\htmlonly
1110</div>
1111\endhtmlonly
1112
1113\fn RooAbsReal::createIntegral(const RooArgSet& iset, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const
1114\brief \parblock \endparblock
1115\htmlonly
1116<div class="pyrootbox">
1117\endhtmlonly
1118## PyROOT
1119The RooAbsReal::createIntegral() function is pythonized with the command argument pythonization.
1120The keywords must correspond to the CmdArgs of the function.
1121\htmlonly
1122</div>
1123\endhtmlonly
1124
1125\fn RooAbsReal::createRunningIntegral(const RooArgSet& iset, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
1126\brief \parblock \endparblock
1127\htmlonly
1128<div class="pyrootbox">
1129\endhtmlonly
1130## PyROOT
1131The RooAbsReal::createRunningIntegral() function is pythonized with the command argument pythonization.
1132The keywords must correspond to the CmdArgs of the function.
1133\htmlonly
1134</div>
1135\endhtmlonly
1136
1137\fn RooAbsReal::plotOn(RooPlot* frame, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8, const RooCmdArg& arg9, const RooCmdArg& arg10) const
1138\brief \parblock \endparblock
1139\htmlonly
1140<div class="pyrootbox">
1141\endhtmlonly
1142## PyROOT
1143The RooAbsReal::plotOn() function is pythonized with the command argument pythonization.
1144The keywords must correspond to the CmdArgs of the function.
1145\htmlonly
1146</div>
1147\endhtmlonly
1148
1149\class RooAbsRealLValue
1150\brief \parblock \endparblock
1151\htmlonly
1152<div class="pyrootbox">
1153\endhtmlonly
1154## PyROOT
1155Some member functions of RooAbsRealLValue that take a RooCmdArg as argument also support keyword arguments.
1156So far, this applies to RooAbsRealLValue::createHistogram and RooAbsRealLValue::frame.
1157For example, the following code is equivalent in PyROOT:
1158\code{.py}
1159# Directly passing a RooCmdArg:
1160frame = x.frame(ROOT.RooFit.Name("xframe"), ROOT.RooFit.Title("RooPlot with decorations"), ROOT.RooFit.Bins(40))
1161
1162# With keyword arguments:
1163frame = x.frame(Name="xframe", Title="RooPlot with decorations", Bins=40)
1164\endcode
1165\htmlonly
1166</div>
1167\endhtmlonly
1168
1169\fn RooAbsRealLValue::createHistogram(const char *name, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const
1170\brief \parblock \endparblock
1171\htmlonly
1172<div class="pyrootbox">
1173\endhtmlonly
1174## PyROOT
1175The RooAbsRealLValue::createHistogram() function is pythonized with the command argument pythonization.
1176The keywords must correspond to the CmdArgs of the function.
1177\htmlonly
1178</div>
1179\endhtmlonly
1180
1181\fn RooAbsRealLValue::frame(const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const
1182\brief \parblock \endparblock
1183\htmlonly
1184<div class="pyrootbox">
1185\endhtmlonly
1186## PyROOT
1187The RooAbsRealLValue::frame() function is pythonized with the command argument pythonization.
1188The keywords must correspond to the CmdArgs of the function.
1189\htmlonly
1190</div>
1191\endhtmlonly
1192
1193\fn RooBCPGenDecay(const char *name, const char *title, RooRealVar& t, RooAbsCategory& tag, RooAbsReal& tau, RooAbsReal& dm, RooAbsReal& avgMistag, RooAbsReal& a, RooAbsReal& b, RooAbsReal& delMistag, RooAbsReal& mu, const RooResolutionModel& model, DecayType type)
1194\brief \parblock \endparblock
1195\htmlonly
1196<div class="pyrootbox">
1197\endhtmlonly
1198## PyROOT
1199The RooBCPGenDecay constructor is pythonized with enum values.
1200\htmlonly
1201</div>
1202\endhtmlonly
1203
1204\fn RooBCPEffDecay(const char *name, const char *title, RooRealVar& t, RooAbsCategory& tag, RooAbsReal& tau, RooAbsReal& dm, RooAbsReal& avgMistag, RooAbsReal& CPeigenval, RooAbsReal& a, RooAbsReal& b, RooAbsReal& effRatio, RooAbsReal& delMistag, const RooResolutionModel& model, DecayType type)
1205\brief \parblock \endparblock
1206\htmlonly
1207<div class="pyrootbox">
1208\endhtmlonly
1209## PyROOT
1210The RooBCPEffDecay constructor is pythonized with enum values.
1211\htmlonly
1212</div>
1213\endhtmlonly
1214
1215\fn RooBDecay(const char *name, const char *title, RooRealVar& t, RooAbsReal& tau, RooAbsReal& dgamma, RooAbsReal& f0, RooAbsReal& f1, RooAbsReal& f2, RooAbsReal& f3, RooAbsReal& dm, const RooResolutionModel& model, DecayType type)
1216\brief \parblock \endparblock
1217\htmlonly
1218<div class="pyrootbox">
1219\endhtmlonly
1220## PyROOT
1221The RooBDecay constructor is pythonized with enum values.
1222\htmlonly
1223</div>
1224\endhtmlonly
1225
1226\fn RooBMixDecay(const char *name, const char *title, RooRealVar& t, RooAbsCategory& mixState, RooAbsCategory& tagFlav, RooAbsReal& tau, RooAbsReal& dm, RooAbsReal& mistag, RooAbsReal& delMistag, const RooResolutionModel& model, DecayType type)
1227\brief \parblock \endparblock
1228\htmlonly
1229<div class="pyrootbox">
1230\endhtmlonly
1231## PyROOT
1232The RooBMixDecay constructor is pythonized with enum values.
1233\htmlonly
1234</div>
1235\endhtmlonly
1236
1237\class RooCategory
1238\brief \parblock \endparblock
1239\htmlonly
1240<div class="pyrootbox">
1241\endhtmlonly
1242## PyROOT
1243Constructor of RooCategory takes a map as an argument also supports python dictionaries.
1244For example, the following code is equivalent in PyROOT:
1245\code{.py}
1246# Default bindings :
1247mixState = ROOT.RooCategory("mixState", "B0/B0bar mixing state")
1248mixState.defineType("mixed", -1)
1249mixState.defineType("unmixed", 1)
1250
1251# With pythonization :
1252mixState = ROOT.RooCategory("mixState", "B0/B0bar mixing state", {"mixed" : -1, "unmixed" : 1})
1253\endcode
1254\htmlonly
1255</div>
1256\endhtmlonly
1257
1258\fn RooCategory(const char* name, const char* title, const std::map<std::string, int>& allowedStates)
1259\brief \parblock \endparblock
1260\htmlonly
1261<div class="pyrootbox">
1262\endhtmlonly
1263## PyROOT
1264The RooCategory constructor is pythonized for converting python dict to std::map.
1265The instances in the dict must correspond to the template argument in std::map of the constructor.
1266\htmlonly
1267</div>
1268\endhtmlonly
1269
1270\class RooDataHist
1271\brief \parblock \endparblock
1272\htmlonly
1273<div class="pyrootbox">
1274\endhtmlonly
1275## PyROOT
1276Constructor of RooDataHist takes a RooCmdArg as argument also supports keyword arguments.
1277For example, the following code is equivalent in PyROOT:
1278\code{.py}
1279# Directly passing a RooCmdArg:
1280dh = ROOT.RooDataHist("dh", "dh", ROOT.RooArgList(x), ROOT.RooFit.Import("SampleA", histo))
1281
1282# With keyword arguments:
1283dh = ROOT.RooDataHist("dh", "dh", ROOT.RooArgList(x), Import=("SampleA", histo))
1284\endcode
1285\htmlonly
1286</div>
1287\endhtmlonly
1288
1289\fn RooDataHist(std::string_view name, std::string_view title, const RooArgList& vars, RooCategory& indexCat, std::map<std::string,TH1*> histMap, Double_t initWgt)
1290\brief \parblock \endparblock
1291\htmlonly
1292<div class="pyrootbox">
1293\endhtmlonly
1294## PyROOT
1295The RooDataHist constructor is pythonized with the command argument pythonization and for converting python dict to std::map.
1296The keywords must correspond to the CmdArg of the constructor function.
1297The instances in dict must correspond to the template argument in std::map of the constructor.
1298\htmlonly
1299</div>
1300\endhtmlonly
1301
1302\fn RooDataHist(std::string_view name, std::string_view title, const RooArgList& vars, RooCategory& indexCat, std::map<std::string,RooDataHist*> dhistMap, Double_t wgt)
1303\brief \parblock \endparblock
1304\htmlonly
1305<div class="pyrootbox">
1306\endhtmlonly
1307## PyROOT
1308The RooDataHist constructor is pythonized with the command argument pythonization and for converting python dict to std::map.
1309The keywords must correspond to the CmdArg of the constructor function.
1310The instances in dict must correspond to the template argument in std::map of the constructor.
1311\htmlonly
1312</div>
1313\endhtmlonly
1314
1315\class RooDataSet
1316\brief \parblock \endparblock
1317\htmlonly
1318<div class="pyrootbox">
1319\endhtmlonly
1320## PyROOT
1321Some member functions of RooDataSet that take a RooCmdArg as argument also support keyword arguments.
1322So far, this applies to RooDataSet() constructor and RooDataSet::plotOnXY.
1323For example, the following code is equivalent in PyROOT:
1324\code{.py}
1325# Directly passing a RooCmdArg:
1326dxy = ROOT.RooDataSet("dxy", "dxy", ROOT.RooArgSet(x, y), ROOT.RooFit.StoreError(ROOT.RooArgSet(x, y)))
1327
1328# With keyword arguments:
1329dxy = ROOT.RooDataSet("dxy", "dxy", ROOT.RooArgSet(x, y), StoreError=(ROOT.RooArgSet(x, y)))
1330\endcode
1331\htmlonly
1332</div>
1333\endhtmlonly
1334
1335\fn RooDataSet(std::string_view name, std::string_view title, const RooArgSet& vars, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4,const RooCmdArg& arg5, const RooCmdArg& arg6,const RooCmdArg& arg7,const RooCmdArg& arg8)
1336\brief \parblock \endparblock
1337\htmlonly
1338<div class="pyrootbox">
1339\endhtmlonly
1340## PyROOT
1341The RooDataSet constructor is pythonized with the command argument pythonization.
1342The keywords must correspond to the CmdArgs of the constructor.
1343\htmlonly
1344</div>
1345\endhtmlonly
1346
1347\fn RooDataSet::plotOnXY(RooPlot* frame, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const
1348\brief \parblock \endparblock
1349\htmlonly
1350<div class="pyrootbox">
1351\endhtmlonly
1352## PyROOT
1353The RooDataSet::plotOnXY() function is pythonized with the command argument pythonization.
1354The keywords must correspond to the CmdArgs of the function.
1355\htmlonly
1356</div>
1357\endhtmlonly
1358
1359\class RooDecay
1360\brief \parblock \endparblock
1361\htmlonly
1362<div class="pyrootbox">
1363\endhtmlonly
1364## PyROOT
1365Some constructors of classes like RooDecay, RooBDecay, RooBCPGenDecay, RooBCPEffDecay and RooBMixDecay that take an enum
1366DecayType as argument also support keyword arguments.
1367For example, the following code is equivalent in PyROOT:
1368\code{.py}
1369# Directly passing keyword argument with string corresponding to enum value name:
1370decay_tm = ROOT.RooDecay("decay_tm", "decay", dt, tau, tm, ROOT.RooDecay.DoubleSided)
1371
1372# With enum value:
1373decay_tm = ROOT.RooDecay("decay_tm", "decay", dt, tau, tm, type="DoubleSided")
1374\endcode
1375\htmlonly
1376</div>
1377\endhtmlonly
1378
1379\fn RooDecay(const char *name, const char *title, RooRealVar& t, RooAbsReal& tau, const RooResolutionModel& model, DecayType type)
1380\brief \parblock \endparblock
1381\htmlonly
1382<div class="pyrootbox">
1383\endhtmlonly
1384## PyROOT
1385The RooDecay constructor is pythonized with enum values.
1386\htmlonly
1387</div>
1388\endhtmlonly
1389
1390\class RooGenFitStudy
1391\brief \parblock \endparblock
1392\htmlonly
1393<div class="pyrootbox">
1394\endhtmlonly
1395## PyROOT
1396Some member functions of RooGenFitStudy that take a RooCmdArg as argument also support keyword arguments.
1397So far, this applies to RooGenFitStudy::setGenConfig.
1398\htmlonly
1399</div>
1400\endhtmlonly
1401
1402\fn RooGenFitStudy::setGenConfig(const char* pdfName, const char* obsName, const RooCmdArg& arg1, const RooCmdArg& arg2,const RooCmdArg& arg3)
1403\brief \parblock \endparblock
1404\htmlonly
1405<div class="pyrootbox">
1406\endhtmlonly
1407## PyROOT
1408The RooGenFitStudy::setGenConfig() function is pythonized with the command argument pythonization.
1409The keywords must correspond to the CmdArg of the function.
1410\htmlonly
1411</div>
1412\endhtmlonly
1413
1414\fn RooGenFitStudy::setFitConfig(const char* pdfName, const char* obsName, const RooCmdArg& arg1,const RooCmdArg& arg2,const RooCmdArg& arg3)
1415\brief \parblock \endparblock
1416\htmlonly
1417<div class="pyrootbox">
1418\endhtmlonly
1419## PyROOT
1420The RooGenFitStudy::setGenConfig() function is pythonized with the command argument pythonization.
1421The keywords must correspond to the CmdArg of the function.
1422\htmlonly
1423</div>
1424\endhtmlonly
1425
1426\class RooMCStudy
1427\brief \parblock \endparblock
1428\htmlonly
1429<div class="pyrootbox">
1430\endhtmlonly
1431## PyROOT
1432Some member functions of RooMCStudy that take a RooCmdArg as argument also support keyword arguments.
1433So far, this applies to constructor RooMCStudy(), RooMCStudy::plotParamOn, RooMCStudy::plotParam, RooMCStudy::plotNLL, RooMCStudy::plotError and RooMCStudy::plotPull.
1434For example, the following code is equivalent in PyROOT:
1435\code{.py}
1436# Directly passing a RooCmdArg:
1437frame3 = mcstudy.plotPull(mean, ROOT.RooFit.Bins(40), ROOT.RooFit.FitGauss(True))
1438
1439# With keyword arguments:
1440frame3 = mcstudy.plotPull(mean, Bins=40, FitGauss=True)
1441\endcode
1442\htmlonly
1443</div>
1444\endhtmlonly
1445
1446\fn RooMCStudy(const RooAbsPdf& model, const RooArgSet& observables, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
1447\brief \parblock \endparblock
1448\htmlonly
1449<div class="pyrootbox">
1450\endhtmlonly
1451## PyROOT
1452The RooMCStudy constructor is pythonized with the command argument pythonization.
1453The keywords must correspond to the CmdArg of the constructor function.
1454\htmlonly
1455</div>
1456\endhtmlonly
1457
1458\fn RooMCStudy::plotError(const RooRealVar& param, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
1459\brief \parblock \endparblock
1460\htmlonly
1461<div class="pyrootbox">
1462\endhtmlonly
1463## PyROOT
1464The RooMCStudy::plotError() function is pythonized with the command argument pythonization.
1465The keywords must correspond to the CmdArg of the function.
1466\htmlonly
1467</div>
1468\endhtmlonly
1469
1470\fn RooMCStudy::plotNLL(const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
1471\brief \parblock \endparblock
1472\htmlonly
1473<div class="pyrootbox">
1474\endhtmlonly
1475## PyROOT
1476The RooMCStudy::plotNLL() function is pythonized with the command argument pythonization.
1477The keywords must correspond to the CmdArg of the function.
1478\htmlonly
1479</div>
1480\endhtmlonly
1481
1482\fn RooMCStudy::plotParam(const RooRealVar& param, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
1483\brief \parblock \endparblock
1484\htmlonly
1485<div class="pyrootbox">
1486\endhtmlonly
1487## PyROOT
1488The RooMCStudy::plotParam() function is pythonized with the command argument pythonization.
1489The keywords must correspond to the CmdArg of the function.
1490\htmlonly
1491</div>
1492\endhtmlonly
1493
1494\fn RooMCStudy::plotParam(const char* paramName, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
1495\brief \parblock \endparblock
1496\htmlonly
1497<div class="pyrootbox">
1498\endhtmlonly
1499## PyROOT
1500The RooMCStudy::plotParam() function is pythonized with the command argument pythonization.
1501The keywords must correspond to the CmdArg of the function.
1502\htmlonly
1503</div>
1504\endhtmlonly
1505
1506\fn RooMCStudy::plotParamOn(RooPlot* frame, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
1507\brief \parblock \endparblock
1508\htmlonly
1509<div class="pyrootbox">
1510\endhtmlonly
1511## PyROOT
1512The RooMCStudy::plotParamOn() function is pythonized with the command argument pythonization.
1513The keywords must correspond to the CmdArg of the function.
1514\htmlonly
1515</div>
1516\endhtmlonly
1517
1518\fn RooMCStudy::plotPull(const RooRealVar& param, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
1519\brief \parblock \endparblock
1520\htmlonly
1521<div class="pyrootbox">
1522\endhtmlonly
1523## PyROOT
1524The RooMCStudy::plotError() function is pythonized with the command argument pythonization.
1525The keywords must correspond to the CmdArg of the function.
1526\htmlonly
1527</div>
1528\endhtmlonly
1529
1530\class RooMsgService
1531\brief \parblock \endparblock
1532\htmlonly
1533<div class="pyrootbox">
1534\endhtmlonly
1535## PyROOT
1536Some member functions of RooMsgService that take a RooCmdArg as argument also support keyword arguments.
1537So far, this applies to RooMsgService::addStream.
1538For example, the following code is equivalent in PyROOT:
1539\code{.py}
1540# Directly passing a RooCmdArg:
1541ROOT.RooMsgService.instance().addStream(ROOT.RooFit.DEBUG, ROOT.RooFit.Topic(ROOT.RooFit.Tracing), ROOT.RooFit.ClassName("RooGaussian"))
1542
1543# With keyword arguments:
1544ROOT.RooMsgService.instance().addStream(ROOT.RooFit.DEBUG, Topic = ROOT.RooFit.Tracing, ClassName = "RooGaussian")
1545\endcode
1546\htmlonly
1547</div>
1548\endhtmlonly
1549
1550\fn RooMsgService::addStream(RooFit::MsgLevel level, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6)
1551\brief \parblock \endparblock
1552\htmlonly
1553<div class="pyrootbox">
1554\endhtmlonly
1555## PyROOT
1556The RooMsgService::addStream() function is pythonized with the command argument pythonization.
1557The keywords must correspond to the CmdArg of the function.
1558\htmlonly
1559</div>
1560\endhtmlonly
1561
1562\class RooProdPdf
1563\brief \parblock \endparblock
1564\htmlonly
1565<div class="pyrootbox">
1566\endhtmlonly
1567## PyROOT
1568RooProdPdf() constructor takes a RooCmdArg as argument also supports keyword arguments.
1569For example, the following code is equivalent in PyROOT:
1570\code{.py}
1571# Directly passing a RooCmdArg:
1572model = ROOT.RooProdPdf(
1573 "model", "model", ROOT.RooArgSet(shapePdf), ROOT.RooFit.Conditional(ROOT.RooArgSet(effPdf), ROOT.RooArgSet(cut))
1574 )
1575
1576# With keyword arguments:
1577model = ROOT.RooProdPdf(
1578 "model", "model", ROOT.RooArgSet(shapePdf), Conditional=(ROOT.RooArgSet(effPdf), ROOT.RooArgSet(cut))
1579 )
1580\endcode
1581\htmlonly
1582</div>
1583\endhtmlonly
1584
1585\fn RooProdPdf(const char* name, const char* title, const RooArgSet& fullPdfSet, const RooCmdArg& arg1 , const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
1586\brief \parblock \endparblock
1587\htmlonly
1588<div class="pyrootbox">
1589\endhtmlonly
1590## PyROOT
1591The RooProdPdf constructor is pythonized with the command argument pythonization.
1592The keywords must correspond to the CmdArgs of the constructor.
1593\htmlonly
1594</div>
1595\endhtmlonly
1596
1597\class RooSimultaneous
1598\brief \parblock \endparblock
1599\htmlonly
1600<div class="pyrootbox">
1601\endhtmlonly
1602## PyROOT
1603Some member functions of RooSimultaneous that take a RooCmdArg as argument also support keyword arguments.
1604So far, this applies to RooSimultaneous::plotOn.
1605For example, the following code is equivalent in PyROOT:
1606\code{.py}
1607# Directly passing a RooCmdArg:
1608pdfSim.plotOn(frame, ROOT.RooFit.Slice(sample,"control"), ROOT.RooFit.ProjWData(sampleSet, combData))
1609
1610# With keyword arguments:
1611simPdf.plotOn(frame, Slice=(sample, "control"), ProjWData=(sampleSet, combData))
1612\endcode
1613\htmlonly
1614</div>
1615\endhtmlonly
1616
1617\fn RooSimultaneous(const char *name, const char *title, std::map<std::string,RooAbsPdf*> pdfMap, RooAbsCategoryLValue& inIndexCat)
1618\brief \parblock \endparblock
1619\htmlonly
1620<div class="pyrootbox">
1621\endhtmlonly
1622## PyROOT
1623The RooSimultaneous constructor that takes a map of category names
1624to PDFs is accepting a Python dictionary in Python.
1625\htmlonly
1626</div>
1627\endhtmlonly
1628
1629\fn RooSimultaneous::plotOn(RooPlot* frame, const RooCmdArg& arg1 , const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8, const RooCmdArg& arg9, const RooCmdArg& arg10) const
1630\brief \parblock \endparblock
1631\htmlonly
1632<div class="pyrootbox">
1633\endhtmlonly
1634## PyROOT
1635The RooSimultaneous::plotOn() function is pythonized with the command argument pythonization.
1636The keywords must correspond to the CmdArgs of the function.
1637\htmlonly
1638</div>
1639\endhtmlonly
1640
1641\class RooSimWSTool
1642\brief \parblock \endparblock
1643\htmlonly
1644<div class="pyrootbox">
1645\endhtmlonly
1646## PyROOT
1647Some member functions of RooSimWSTool that take a RooCmdArg as argument also support keyword arguments.
1648So far, this applies to RooSimWSTool::build.
1649For example, the following code is equivalent in PyROOT:
1650\code{.py}
1651# Directly passing a RooCmdArg:
1652sct.build("model_sim2", "model", ROOT.RooFit.SplitParam("p0", "c,d"))
1653
1654# With keyword arguments:
1655sct.build("model_sim2", "model", SplitParam=("p0", "c,d"))
1656\endcode
1657\htmlonly
1658</div>
1659\endhtmlonly
1660
1661\fn RooSimWSTool::build(const char* simPdfName, const char* protoPdfName, const RooCmdArg& arg1,const RooCmdArg& arg2, const RooCmdArg& arg3,const RooCmdArg& arg4, const RooCmdArg& arg5,const RooCmdArg& arg6)
1662\brief \parblock \endparblock
1663\htmlonly
1664<div class="pyrootbox">
1665\endhtmlonly
1666## PyROOT
1667The RooSimWSTool::build() function is pythonized with the command argument pythonization.
1668The keywords must correspond to the CmdArgs of the function.
1669\htmlonly
1670</div>
1671\endhtmlonly
1672
1673\class RooWorkspace
1674\brief \parblock \endparblock
1675\htmlonly
1676<div class="pyrootbox">
1677\endhtmlonly
1678## PyROOT
1679The RooWorkspace::import function can't be used in PyROOT because `import` is a reserved python keyword.
1680For this reason, an alternative with a capitalized name is provided:
1681\code{.py}
1682workspace.Import(x)
1683\endcode
1684\htmlonly
1685</div>
1686\endhtmlonly
1687
1688\fn RooWorkspace::import(const RooAbsArg& arg, const RooCmdArg& arg1,const RooCmdArg& arg2,const RooCmdArg& arg3, const RooCmdArg& arg4,const RooCmdArg& arg5,const RooCmdArg& arg6, const RooCmdArg& arg7,const RooCmdArg& arg8,const RooCmdArg& arg9)
1689\brief \parblock \endparblock
1690\htmlonly
1691<div class="pyrootbox">
1692\endhtmlonly
1693## PyROOT
1694Support the C++ `import()` as `Import()` in python
1695\htmlonly
1696</div>
1697\endhtmlonly
1698
1699\fn RooWorkspace::import(RooAbsData& data, const RooCmdArg& arg1,const RooCmdArg& arg2,const RooCmdArg& arg3, const RooCmdArg& arg4,const RooCmdArg& arg5,const RooCmdArg& arg6, const RooCmdArg& arg7,const RooCmdArg& arg8,const RooCmdArg& arg9)
1700\brief \parblock \endparblock
1701\htmlonly
1702<div class="pyrootbox">
1703\endhtmlonly
1704## PyROOT
1705Support the C++ `import()` as `Import()` in python
1706\htmlonly
1707</div>
1708\endhtmlonly
1709
1710\fn RooWorkspace::import(const char *fileSpec, const RooCmdArg& arg1,const RooCmdArg& arg2,const RooCmdArg& arg3, const RooCmdArg& arg4,const RooCmdArg& arg5,const RooCmdArg& arg6, const RooCmdArg& arg7,const RooCmdArg& arg8,const RooCmdArg& arg9)
1711\brief \parblock \endparblock
1712\htmlonly
1713<div class="pyrootbox">
1714\endhtmlonly
1715## PyROOT
1716Support the C++ `import()` as `Import()` in python
1717\htmlonly
1718</div>
1719\endhtmlonly
1720
1721\fn RooWorkspace::import(const RooAbsArg& arg, const RooCmdArg& arg1,const RooCmdArg& arg2,const RooCmdArg& arg3, const RooCmdArg& arg4,const RooCmdArg& arg5,const RooCmdArg& arg6, const RooCmdArg& arg7,const RooCmdArg& arg8,const RooCmdArg& arg9)
1722\brief \parblock \endparblock
1723\htmlonly
1724<div class="pyrootbox">
1725\endhtmlonly
1726## PyROOT
1727The RooWorkspace constructor is pythonized with the command argument pythonization.
1728The keywords must correspond to the CmdArgs of the constructor.
1729\htmlonly
1730</div>
1731\endhtmlonly
1732
1733\class RooStats::SPlot
1734\brief \parblock \endparblock
1735\htmlonly
1736<div class="pyrootbox">
1737\endhtmlonly
1738## PyROOT
1739The constructor of RooStats::SPlot takes RooCmdArg as arguments also support keyword arguments.
1740This also applies to SPlot::AddSWeights. For example, the following code is equivalent in PyROOT:
1741\code{.py}
1742# Directly passing a RooCmdArg:
1743RooStats.SPlot(data, ROOT.RooStats.RooCmdArg("Strategy", 0))
1744
1745# With keyword arguments:
1746RooStats.SPlot(data, Strategy = 0)
1747\endcode
1748\htmlonly
1749</div>
1750\endhtmlonly
1751
1752\fn SPlot::AddSWeight( RooAbsPdf* pdf, const RooArgList &yieldsTmp, const RooArgSet &projDeps, bool includeWeights, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8)
1753\brief \parblock \endparblock
1754\htmlonly
1755<div class="pyrootbox">
1756\endhtmlonly
1757## PyROOT
1758The SPlot::AddSWeight function is pythonized with the command argument pythonization.
1759For example, the following code is equivalent in PyROOT:
1760\code{.py}
1761
1762splot = ROOT.RooStats.SPlot("sData", "An SPlot", data, massModel, [zYield, qcdYield])
1763
1764# Directly passing a RooCmdArg:
1765splot.AddSWeight(pdf, [zYield, qcdYield], ROOT.RooStats.RooCmdArg("Strategy", 0), ROOT.RooStats.RooCmdArg("InitialHesse", 1))
1766
1767# With keyword arguments:
1768splot.AddSWeight(pdf, [zYield, qcdYield], Strategy=3, InitialHesse=1)
1769\endcode
1770\htmlonly
1771</div>
1772\endhtmlonly
1773
1774\fn SPlot::SPlot(const char* name, const char* title, RooDataSet& data, RooAbsPdf* pdf, const RooArgList &yieldsList, const RooArgSet &projDeps, bool useWeights, bool cloneData, const char* newName, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8):TNamed(name, title)
1775\brief \parblock \endparblock
1776\htmlonly
1777<div class="pyrootbox">
1778\endhtmlonly
1779## PyROOT
1780The SPlot constructor is pythonized with the command argument pythonization.
1781The keywords must correspond to the CmdArgs of the constructor. The constructor automatically calls AddSWeight() with the given RooCmdArg
1782
1783For example, the following code is equivalent in PyROOT:
1784\code{.py}
1785# Directly passing a RooCmdArg:
1786sData = ROOT.RooStats.SPlot("sData", "An SPlot", data, massModel, [zYield, qcdYield], ROOT.RooStats.RooCmdArg("Strategy", 0))
1787
1788# With keyword arguments:
1789sData = ROOT.RooStats.SPlot("sData", "An SPlot", data, massModel, [zYield, qcdYield], Strategy=0)
1790\endcode
1791\htmlonly
1792</div>
1793\endhtmlonly
1794
1795\fn RooFit::DataError(Int_t)
1796\brief \parblock \endparblock
1797\htmlonly
1798<div class="pyrootbox">
1799\endhtmlonly
1800## PyROOT
1801If you want to use the `"None"` enum value to disable error plotting, you
1802can also pass `None` directly instead of passing a string:
1803
1804~~~ {.py}
1805 data.plotOn(frame, DataError=None)
1806 # instead of DataError="None"
1807~~~
1808\htmlonly
1809</div>
1810\endhtmlonly
1811
1812\fn RooFit::FitOptions(const RooCmdArg& arg1, const RooCmdArg& arg2,const RooCmdArg& arg3,const RooCmdArg& arg4,const RooCmdArg& arg5,const RooCmdArg& arg6)
1813\brief \parblock \endparblock
1814\htmlonly
1815<div class="pyrootbox">
1816\endhtmlonly
1817## PyROOT
1818The FitOptions() function is pythonized with the command argument pythonization.
1819The keywords must correspond to the CmdArg of the function.
1820\htmlonly
1821</div>
1822\endhtmlonly
1823
1824\fn RooFit::Format(const char* what, const RooCmdArg& arg1, const RooCmdArg& arg2,const RooCmdArg& arg3,const RooCmdArg& arg4,const RooCmdArg& arg5,const RooCmdArg& arg6,const RooCmdArg& arg7,const RooCmdArg& arg8)
1825\brief \parblock \endparblock
1826\htmlonly
1827<div class="pyrootbox">
1828\endhtmlonly
1829## PyROOT
1830The Format() function is pythonized with the command argument pythonization.
1831The keywords must correspond to the CmdArg of the function.
1832\htmlonly
1833</div>
1834\endhtmlonly
1835
1836\fn RooFit::Frame(const RooCmdArg& arg1, const RooCmdArg& arg2,const RooCmdArg& arg3, const RooCmdArg& arg4,const RooCmdArg& arg5, const RooCmdArg& arg6)
1837\brief \parblock \endparblock
1838\htmlonly
1839<div class="pyrootbox">
1840\endhtmlonly
1841## PyROOT
1842The Frame() function is pythonized with the command argument pythonization.
1843The keywords must correspond to the CmdArg of the function.
1844\htmlonly
1845</div>
1846\endhtmlonly
1847
1848\fn RooFit::MultiArg(const RooCmdArg& arg1, const RooCmdArg& arg2,const RooCmdArg& arg3,const RooCmdArg& arg4,const RooCmdArg& arg5,const RooCmdArg& arg6,const RooCmdArg& arg7,const RooCmdArg& arg8)
1849\brief \parblock \endparblock
1850\htmlonly
1851<div class="pyrootbox">
1852\endhtmlonly
1853## PyROOT
1854The MultiArg() function is pythonized with the command argument pythonization.
1855The keywords must correspond to the CmdArg of the function.
1856\htmlonly
1857</div>
1858\endhtmlonly
1859
1860\fn RooFit::YVar(const RooAbsRealLValue& var, const RooCmdArg& arg)
1861\brief \parblock \endparblock
1862\htmlonly
1863<div class="pyrootbox">
1864\endhtmlonly
1865## PyROOT
1866The YVar() function is pythonized with the command argument pythonization.
1867The keywords must correspond to the CmdArg of the function.
1868\htmlonly
1869</div>
1870\endhtmlonly
1871
1872\fn RooFit::ZVar(const RooAbsRealLValue& var, const RooCmdArg& arg)
1873\brief \parblock \endparblock
1874\htmlonly
1875<div class="pyrootbox">
1876\endhtmlonly
1877## PyROOT
1878The ZVar() function is pythonized with the command argument pythonization.
1879The keywords must correspond to the CmdArg of the function.
1880\htmlonly
1881</div>
1882\endhtmlonly
1883
1884\fn RooFit::Slice(std::map<RooCategory*, std::string> const&)
1885\brief \parblock \endparblock
1886\htmlonly
1887<div class="pyrootbox">
1888\endhtmlonly
1889## PyROOT
1890The Slice function is pythonized for converting python dict to std::map.
1891The keywords must correspond to the CmdArg of the function.
1892The instances in the dict must correspond to the template argument in std::map of the function.
1893\htmlonly
1894</div>
1895\endhtmlonly
1896
1897\fn RooFit::Import(const std::map<std::string,RooDataSet*>& )
1898\brief \parblock \endparblock
1899\htmlonly
1900<div class="pyrootbox">
1901\endhtmlonly
1902## PyROOT
1903The Import function is pythonized for converting python dict to std::map.
1904The keywords must correspond to the CmdArg of the function.
1905The instances in the dict must correspond to the template argument in std::map of the function.
1906\htmlonly
1907</div>
1908\endhtmlonly
1909
1910\fn RooFit::Import(const std::map<std::string,TH1*>&)
1911\brief \parblock \endparblock
1912\htmlonly
1913<div class="pyrootbox">
1914\endhtmlonly
1915## PyROOT
1916The Import function is pythonized for converting python dict to std::map.
1917The keywords must correspond to the CmdArg of the function.
1918The instances in the dict must correspond to the template argument in std::map of the function.
1919\htmlonly
1920</div>
1921\endhtmlonly
1922
1923\fn RooFit::Import(const std::map<std::string,RooDataHist*>&)
1924\brief \parblock \endparblock
1925\htmlonly
1926<div class="pyrootbox">
1927\endhtmlonly
1928## PyROOT
1929The Import function is pythonized for converting python dict to std::map.
1930The keywords must correspond to the CmdArg of the function.
1931The instances in the dict must correspond to the template argument in std::map of the function.
1932\htmlonly
1933</div>
1934\endhtmlonly
1935
1936\fn RooFit::Link(const std::map<std::string,RooAbsData*>&)
1937\brief \parblock \endparblock
1938\htmlonly
1939<div class="pyrootbox">
1940\endhtmlonly
1941## PyROOT
1942The Link function is pythonized for converting python dict to std::map.
1943The keywords must correspond to the CmdArg of the function.
1944The instances in the dict must correspond to the template argument in std::map of the function.
1945\htmlonly
1946</div>
1947\endhtmlonly
1948
1949*/