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