Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooGlobalFunc.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id: RooGlobalFunc.h,v 1.14 2007/07/16 21:04:28 wouter Exp $
5 * Authors: *
6 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8 * *
9 * Copyright (c) 2000-2005, Regents of the University of California *
10 * and Stanford University. All rights reserved. *
11 * *
12 * Redistribution and use in source and binary forms, *
13 * with or without modification, are permitted according to the terms *
14 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15 *****************************************************************************/
16#ifndef ROO_GLOBAL_FUNC
17#define ROO_GLOBAL_FUNC
18
19#include "RooCmdArg.h"
20#include "RooLinkedList.h"
21#include "RooArgSet.h"
22
23#include "ROOT/RConfig.hxx"
24
25#include <map>
26#include <string>
27
28class RooDataHist ;
29class RooDataSet ;
30class RooFitResult ;
31class RooAbsPdf ;
32class RooAbsRealLValue ;
33class RooRealConstant ;
34class RooMsgService ;
35class RooFormulaVar ;
36class RooAbsData ;
37class RooCategory ;
38class RooAbsReal ;
39class RooAbsBinning ;
40class RooAbsCollection ;
41class RooAbsPdf ;
42class RooConstVar ;
43class RooRealVar ;
44class RooAbsCategory ;
45class RooNumIntConfig ;
46class TH1 ;
47class TTree ;
48
49/*! \namespace RooFit
50The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs
51(or other types of arguments).
52
53These switches are documented with the relevant functions, e.g. RooAbsPdf::fitTo().
54For an introduction to RooFit (not the namespace), check the [user's guides](https://root.cern.ch/root-user-guides-and-manuals),
55[courses](https://root.cern.ch/courses) or [the RooFit chapter of the Manual](https://root.cern/manual/roofit/).
56*/
57namespace RooFit {
58
59/// Verbosity level for RooMsgService::StreamConfig in RooMsgService
60enum MsgLevel { DEBUG=0, INFO=1, PROGRESS=2, WARNING=3, ERROR=4, FATAL=5 } ;
61/// Topics for a RooMsgService::StreamConfig in RooMsgService
64 Contents=4096, DataHandling=8192, NumIntegration=16384, FastEvaluations=1<<15, HistFactory=1<<16, IO=1<<17 };
66
67/// For setting the batch mode flag with the BatchMode() command argument to
68/// RooAbsPdf::fitTo()
69enum class BatchModeOption { Off, Cpu, Cuda, Old };
70
71/// For setting the offset mode with the Offset() command argument to
72/// RooAbsPdf::fitTo()
73enum class OffsetMode { None, Initial, Bin };
74
75namespace Experimental {
76
77/// Get a handle on the default BatchMode option that is used when creating
78/// likelihoods. \note Experimental, the interface might change in the future.
79std::string& defaultBatchMode();
80
81/// Configuration options for parallel minimization with multiprocessing library
82RooCmdArg ParallelGradientOptions(bool enable=true, int orderStrategy=0, int chainFactor=1) ;
83RooCmdArg ParallelDescentOptions(bool enable=false, int splitStrategy=0, int numSplits=4) ;
84
85} // Experimental
86
87/**
88 * \defgroup CmdArgs RooFit command arguments
89 * These arguments can be passed to functions of RooFit objects.
90 * \ingroup Roofitmain
91 * @{
92 */
93
94/**
95 * \defgroup Plotting Arguments for plotOn functions
96 * @{
97 */
98RooCmdArg DrawOption(const char* opt) ;
99RooCmdArg Normalization(double scaleFactor) ;
100RooCmdArg Slice(const RooArgSet& sliceSet) ;
101RooCmdArg Slice(RooCategory& cat, const char* label) ;
102RooCmdArg Slice(std::map<RooCategory*, std::string> const&) ;
103RooCmdArg Project(const RooArgSet& projSet) ;
104RooCmdArg ProjWData(const RooAbsData& projData, bool binData=false) ;
105RooCmdArg ProjWData(const RooArgSet& projSet, const RooAbsData& projData, bool binData=false) ;
106RooCmdArg Asymmetry(const RooCategory& cat) ;
107RooCmdArg Precision(double prec) ;
109RooCmdArg Range(const char* rangeName, bool adjustNorm=true) ;
110RooCmdArg Range(double lo, double hi, bool adjustNorm=true) ;
111RooCmdArg NormRange(const char* rangeNameList) ;
118RooCmdArg ProjectionRange(const char* rangeName) ;
119RooCmdArg Name(const char* name) ;
120RooCmdArg Invisible(bool inv=true) ;
121RooCmdArg AddTo(const char* name, double wgtSel=1.0, double wgtOther=1.0) ;
124RooCmdArg VisualizeError(const RooDataSet& paramData, double Z=1) ;
125RooCmdArg VisualizeError(const RooFitResult& fitres, double Z=1, bool linearMethod=true) ;
126RooCmdArg VisualizeError(const RooFitResult& fitres, const RooArgSet& param, double Z=1, bool linearMethod=true) ;
128
129// RooAbsPdf::plotOn arguments
130RooCmdArg Normalization(double scaleFactor, Int_t scaleType) ;
131template<class... Args_t>
132RooCmdArg Components(Args_t &&... argsOrArgSet) {
133 RooCmdArg out{"SelectCompSet",0};
134 out.setSet(0, RooArgSet{std::forward<Args_t>(argsOrArgSet)...});
135 return out;
136}
137RooCmdArg Components(const char* compSpec) ;
138
139// RooAbsData::plotOn arguments
140RooCmdArg Cut(const char* cutSpec) ;
141RooCmdArg Cut(const RooFormulaVar& cutVar) ;
142RooCmdArg Binning(const RooAbsBinning& binning) ;
143RooCmdArg Binning(const char* binningName) ;
144RooCmdArg Binning(int nBins, double xlo=0.0, double xhi=0.0) ;
148RooCmdArg CutRange(const char* rangeName) ;
149RooCmdArg XErrorSize(double width) ;
151RooCmdArg Efficiency(const RooCategory& cat) ;
152RooCmdArg Rescale(double factor) ;
153
154/** @} */
155
156/**
157 * \defgroup ConstructorArgs Arguments for various constructors
158 * @{
159 */
160// RooDataHist::ctor arguments
161RooCmdArg Weight(double wgt) ;
162RooCmdArg Index(RooCategory& icat) ;
163RooCmdArg Import(const char* state, TH1& histo) ;
164RooCmdArg Import(const std::map<std::string,TH1*>&) ;
165RooCmdArg Import(const char* state, RooDataHist& dhist) ;
166RooCmdArg Import(const std::map<std::string,RooDataHist*>&) ;
167RooCmdArg Import(TH1& histo, bool importDensity=false) ;
168
169// RooDataSet::ctor arguments
170RooCmdArg WeightVar(const char* name="weight", bool reinterpretAsWeight=false) ;
171RooCmdArg WeightVar(const RooRealVar& arg, bool reinterpretAsWeight=false) ;
172RooCmdArg Import(const char* state, RooAbsData& data) ;
173RooCmdArg Import(const std::map<std::string,RooDataSet*>& ) ;
174template<class DataPtr_t>
175RooCmdArg Import(std::map<std::string,DataPtr_t> const& map) {
176 RooCmdArg container("ImportDataSliceMany",0,0,0,0,0,0,0,0) ;
177 for (auto const& item : map) {
178 container.addArg(Import(item.first.c_str(), *item.second)) ;
179 }
180 container.setProcessRecArgs(true,false) ;
181 return container ;
182}
183
184RooCmdArg Link(const char* state, RooAbsData& data) ;
185RooCmdArg Link(const std::map<std::string,RooAbsData*>&) ;
188RooCmdArg ImportFromFile(const char* fname, const char* tname) ;
189RooCmdArg StoreError(const RooArgSet& aset) ;
192
193/** @} */
194
195// RooAbsPdf::printLatex arguments
196RooCmdArg Columns(Int_t ncol) ;
197RooCmdArg OutputFile(const char* fileName) ;
198RooCmdArg Format(const char* format, Int_t sigDigit) ;
199RooCmdArg Format(const char* what, const RooCmdArg& arg1=RooCmdArg::none(), const RooCmdArg& arg2=RooCmdArg::none(),
200 const RooCmdArg& arg3=RooCmdArg::none(),const RooCmdArg& arg4=RooCmdArg::none(),
201 const RooCmdArg& arg5=RooCmdArg::none(),const RooCmdArg& arg6=RooCmdArg::none(),
202 const RooCmdArg& arg7=RooCmdArg::none(),const RooCmdArg& arg8=RooCmdArg::none()) ;
203RooCmdArg Sibling(const RooAbsCollection& sibling) ;
204
205// RooAbsRealLValue::frame arguments
206RooCmdArg Title(const char* name) ;
207RooCmdArg Bins(Int_t nbin) ;
208RooCmdArg AutoSymRange(const RooAbsData& data, double marginFactor=0.1) ;
209RooCmdArg AutoRange(const RooAbsData& data, double marginFactor=0.1) ;
210
211// RooAbsData::createHistogram arguments
212RooCmdArg AutoSymBinning(Int_t nbins=100, double marginFactor=0.1) ;
213RooCmdArg AutoBinning(Int_t nbins=100, double marginFactor=0.1) ;
214
215// RooAbsReal::fillHistogram arguments
217
218// RooAbsData::reduce arguments
219RooCmdArg SelectVars(const RooArgSet& vars) ;
220RooCmdArg EventRange(Int_t nStart, Int_t nStop) ;
221
222
223/**
224 * \defgroup Fitting Arguments for fitting
225 * @{
226 */
227// RooChi2Var::ctor / RooNLLVar arguments
228RooCmdArg Extended(bool flag=true) ;
230RooCmdArg NumCPU(Int_t nCPU, Int_t interleave=0) ;
231RooCmdArg Parallelize(int nWorkers) ;
232RooCmdArg ModularL(bool flag=false) ;
233RooCmdArg TimingAnalysis(bool timingAnalysis) ;
234
235RooCmdArg BatchMode(std::string const& batchMode="cpu");
236// The const char * overload is necessary, otherwise the compiler will cast a
237// C-Style string to a bool and choose the BatchMode(bool) overload if one
238// calls for example BatchMode("off").
239inline RooCmdArg BatchMode(const char * batchMode) { return BatchMode(std::string(batchMode)); }
240inline RooCmdArg BatchMode(bool batchModeOn) { return BatchMode(batchModeOn ? "cpu" : "off"); }
241
242RooCmdArg IntegrateBins(double precision);
243
244// RooAbsPdf::fitTo arguments
245RooCmdArg PrefitDataFraction(double data_ratio = 0.0) ;
246RooCmdArg Optimize(Int_t flag=2) ;
247
248////////////////////////////////////////////////////////////////////////////////
249/// Create a RooCmdArg to declare conditional observables.
250/// \param[in] argsOrArgSet Can either be one or more RooRealVar with the
251// observables or a single RooArgSet containing them.
252template<class... Args_t>
253RooCmdArg ConditionalObservables(Args_t &&... argsOrArgSet) {
254 RooCmdArg out{"ProjectedObservables",0};
255 out.setSet(0, RooArgSet{std::forward<Args_t>(argsOrArgSet)...});
256 return out;
257}
258
259// obsolete, for backward compatibility
260template<class... Args_t>
261RooCmdArg ProjectedObservables(Args_t &&... argsOrArgSet) {
262 return ConditionalObservables(std::forward<Args_t>(argsOrArgSet)...);
263}
264
265RooCmdArg Verbose(bool flag=true) ;
266RooCmdArg Save(bool flag=true) ;
267RooCmdArg Timer(bool flag=true) ;
269RooCmdArg Warnings(bool flag=true) ;
271RooCmdArg InitialHesse(bool flag=true) ;
272RooCmdArg Hesse(bool flag=true) ;
273RooCmdArg Minos(bool flag=true) ;
274RooCmdArg Minos(const RooArgSet& minosArgs) ;
275RooCmdArg SplitRange(bool flag=true) ;
276RooCmdArg SumCoefRange(const char* rangeName) ;
277RooCmdArg Constrain(const RooArgSet& params) ;
278RooCmdArg MaxCalls(int n) ;
279
280template<class... Args_t>
281RooCmdArg GlobalObservables(Args_t &&... argsOrArgSet) {
282 RooCmdArg out{"GlobalObservables",0};
283 out.setSet(0, RooArgSet{std::forward<Args_t>(argsOrArgSet)...});
284 return out;
285}
286RooCmdArg GlobalObservablesSource(const char* sourceName);
287RooCmdArg GlobalObservablesTag(const char* tagName) ;
288RooCmdArg ExternalConstraints(const RooArgSet& constraintPdfs) ;
290RooCmdArg EvalErrorWall(bool flag) ;
291RooCmdArg SumW2Error(bool flag) ;
292RooCmdArg AsymptoticError(bool flag) ;
293RooCmdArg CloneData(bool flag) ;
294RooCmdArg Integrate(bool flag) ;
295RooCmdArg Minimizer(const char* type, const char* alg=nullptr) ;
296RooCmdArg Offset(std::string const& mode);
297// The const char * overload is necessary, otherwise the compiler will cast a
298// C-Style string to a bool and choose the Offset(bool) overload if one
299// calls for example Offset("off").
300inline RooCmdArg Offset(const char * mode) { return Offset(std::string(mode)); }
301// For backwards compatibility
302inline RooCmdArg Offset(bool flag=true) { return flag ? Offset("initial") : Offset("off"); }
304/** @} */
305
306// RooAbsPdf::paramOn arguments
307RooCmdArg Label(const char* str) ;
308RooCmdArg Layout(double xmin, double xmax=0.99, double ymin=0.95) ;
309RooCmdArg Parameters(const RooArgSet& params) ;
310RooCmdArg ShowConstants(bool flag=true) ;
311
312// RooTreeData::statOn arguments
313RooCmdArg What(const char* str) ;
314
315// RooProdPdf::ctor arguments
316RooCmdArg Conditional(const RooArgSet& pdfSet, const RooArgSet& depSet, bool depsAreCond=false) ;
317
318/**
319 * \defgroup Generating Arguments for generating data
320 * @{
321 */
322// RooAbsPdf::generate arguments
323RooCmdArg ProtoData(const RooDataSet& protoData, bool randomizeOrder=false, bool resample=false) ;
324RooCmdArg NumEvents(Int_t numEvents) ;
325RooCmdArg NumEvents(double numEvents) ;
326RooCmdArg AutoBinned(bool flag=true) ;
327RooCmdArg GenBinned(const char* tag) ;
329RooCmdArg ExpectedData(bool flag=true) ;
330RooCmdArg Asimov(bool flag=true) ;
331
332/** @} */
333
334// RooAbsRealLValue::createHistogram arguments
335RooCmdArg YVar(const RooAbsRealLValue& var, const RooCmdArg& arg=RooCmdArg::none()) ;
336RooCmdArg ZVar(const RooAbsRealLValue& var, const RooCmdArg& arg=RooCmdArg::none()) ;
337RooCmdArg AxisLabel(const char* name) ;
338RooCmdArg Scaling(bool flag) ;
339
340
341// RooAbsReal::createHistogram arguments
342RooCmdArg IntrinsicBinning(bool flag=true) ;
343
344// RooAbsReal::createIntegral arguments
345template<class... Args_t>
346RooCmdArg NormSet(Args_t &&... argsOrArgSet) {
347 RooCmdArg out{"NormSet",0};
348 out.setSet(0, RooArgSet{std::forward<Args_t>(argsOrArgSet)...});
349 return out;
350}
352
353// RooMCStudy::ctor arguments
354RooCmdArg Silence(bool flag=true) ;
356RooCmdArg FitOptions(const RooCmdArg& arg1 ,const RooCmdArg& arg2=RooCmdArg::none(),
357 const RooCmdArg& arg3=RooCmdArg::none(),const RooCmdArg& arg4=RooCmdArg::none(),
358 const RooCmdArg& arg5=RooCmdArg::none(),const RooCmdArg& arg6=RooCmdArg::none()) ;
359RooCmdArg Binned(bool flag=true) ;
360
361// RooMCStudy::plot* arguments
362RooCmdArg Frame(const RooCmdArg& arg1 ,const RooCmdArg& arg2=RooCmdArg::none(),
363 const RooCmdArg& arg3=RooCmdArg::none(),const RooCmdArg& arg4=RooCmdArg::none(),
364 const RooCmdArg& arg5=RooCmdArg::none(),const RooCmdArg& arg6=RooCmdArg::none()) ;
366RooCmdArg FrameRange(double xlo, double xhi) ;
367RooCmdArg FitGauss(bool flag=true) ;
368
369// RooRealVar::format arguments
370RooCmdArg AutoPrecision(Int_t ndigit=2) ;
372RooCmdArg TLatexStyle(bool flag=true) ;
373RooCmdArg LatexStyle(bool flag=true) ;
374RooCmdArg LatexTableStyle(bool flag=true) ;
375RooCmdArg VerbatimName(bool flag=true) ;
376
377// RooMsgService::addReportingStream arguments
378RooCmdArg Topic(Int_t topic) ;
379RooCmdArg ObjectName(const char* name) ;
380RooCmdArg ClassName(const char* name) ;
381RooCmdArg BaseClassName(const char* name) ;
382RooCmdArg TagName(const char* name) ;
383RooCmdArg OutputStream(std::ostream& os) ;
384RooCmdArg Prefix(bool flag) ;
385RooCmdArg Color(Color_t color) ;
386
387// RooWorkspace::import() arguments
388RooCmdArg RenameConflictNodes(const char* suffix, bool renameOrigNodes=false) ;
389RooCmdArg RenameAllNodes(const char* suffix) ;
390RooCmdArg RenameAllVariables(const char* suffix) ;
391RooCmdArg RenameAllVariablesExcept(const char* suffix,const char* exceptionList) ;
392RooCmdArg RenameVariable(const char* inputName, const char* outputName) ;
393RooCmdArg Rename(const char* suffix) ;
394RooCmdArg RecycleConflictNodes(bool flag=true) ;
395RooCmdArg Embedded(bool flag=true) ;
396RooCmdArg NoRecursion(bool flag=true) ;
397
398// RooSimCloneTool::build() arguments
399RooCmdArg SplitParam(const char* varname, const char* catname) ;
400RooCmdArg SplitParam(const RooRealVar& var, const RooAbsCategory& cat) ;
401RooCmdArg SplitParamConstrained(const char* varname, const char* catname, const char* rsname) ;
402RooCmdArg SplitParamConstrained(const RooRealVar& var, const RooAbsCategory& cat, const char* rsname) ;
403RooCmdArg Restrict(const char* catName, const char* stateNameList) ;
404
405// RooAbsPdf::createCdf() arguments
406RooCmdArg SupNormSet(const RooArgSet& nset) ;
407RooCmdArg ScanParameters(Int_t nbins,Int_t intOrder) ;
411
412// Generic container arguments (to be able to supply more command line arguments)
413RooCmdArg MultiArg(const RooCmdArg& arg1, const RooCmdArg& arg2,
414 const RooCmdArg& arg3=RooCmdArg::none(),const RooCmdArg& arg4=RooCmdArg::none(),
415 const RooCmdArg& arg5=RooCmdArg::none(),const RooCmdArg& arg6=RooCmdArg::none(),
416 const RooCmdArg& arg7=RooCmdArg::none(),const RooCmdArg& arg8=RooCmdArg::none()) ;
417
418RooConstVar& RooConst(double val) ;
419
420// End group CmdArgs:
421/**
422 * @}
423 */
424
425namespace Detail {
426
427// Function to pack an arbitrary number of RooCmdArgs into a RooLinkedList. Implementation detail of many high-level RooFit functions.
428template <typename... Args>
429inline std::unique_ptr<RooLinkedList> createCmdList(Args &&... args)
430{
431 auto cmdList = std::make_unique<RooLinkedList>();
432 for (auto * arg : {args...}) {
433 cmdList->Add(const_cast<RooCmdArg*>(arg));
434 //cmdList->Add(new RooCmdArg{arg});
435 }
436 return cmdList;
437}
438
439} // namespace Detail
440
441} // namespace RooFit
442
443namespace RooFitShortHand {
444
445RooConstVar& C(double value);
446
447} // namespace RooFitShortHand
448
449#endif
PrintLevel
Definition RooMinuit.h:6
Strategy
Definition RooMinuit.h:5
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
short Style_t
Definition RtypesCore.h:89
int Int_t
Definition RtypesCore.h:45
short Color_t
Definition RtypesCore.h:92
float Size_t
Definition RtypesCore.h:96
short Width_t
Definition RtypesCore.h:91
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char mode
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t format
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Option_t Option_t style
char name[80]
Definition TGX11.cxx:110
float xmin
#define hi
float ymin
float xmax
RooAbsBinning is the abstract base class for RooRealVar binning definitions.
A space to attach TBranches.
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects.
RooAbsData is the common abstract base class for binned and unbinned datasets.
Definition RooAbsData.h:59
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition RooAbsReal.h:62
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
RooCategory is an object to represent discrete states.
Definition RooCategory.h:28
RooCmdArg is a named container for two doubles, two integers two object points and three string point...
Definition RooCmdArg.h:26
void addArg(const RooCmdArg &arg)
Utility function to add nested RooCmdArg to payload of this RooCmdArg.
static const RooCmdArg & none()
Return reference to null argument.
Definition RooCmdArg.cxx:51
void setSet(Int_t idx, const RooArgSet &set)
void setProcessRecArgs(bool flag, bool prefix=true)
Definition RooCmdArg.h:45
RooConstVar represent a constant real-valued object.
Definition RooConstVar.h:26
The RooDataHist is a container class to hold N-dimensional binned data.
Definition RooDataHist.h:39
RooDataSet is a container class to hold unbinned data.
Definition RooDataSet.h:57
RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
A RooFormulaVar is a generic implementation of a real-valued object, which takes a RooArgList of serv...
The class RooMsgService is a singleton that organizes messages generated in RooFit.
RooNumIntConfig holds the configuration parameters of the various numeric integrators used by RooReal...
RooRealConstant provides static functions to create and keep track of RooRealVar constants.
RooRealVar represents a variable that can be changed from the outside.
Definition RooRealVar.h:40
TH1 is the base class of all histogram classes in ROOT.
Definition TH1.h:58
A TTree represents a columnar dataset.
Definition TTree.h:79
RooCmdArg RecycleConflictNodes(bool flag=true)
RooCmdArg ScanNoCdf()
RooCmdArg AutoRange(const RooAbsData &data, double marginFactor=0.1)
RooCmdArg YVar(const RooAbsRealLValue &var, const RooCmdArg &arg=RooCmdArg::none())
RooCmdArg FitGauss(bool flag=true)
RooCmdArg FrameBins(Int_t nbins)
RooCmdArg ClassName(const char *name)
RooCmdArg FitModel(RooAbsPdf &pdf)
RooCmdArg LatexStyle(bool flag=true)
RooCmdArg VerbatimName(bool flag=true)
RooCmdArg IntegratedObservables(const RooArgSet &intObs)
RooCmdArg OutputStream(std::ostream &os)
RooCmdArg Topic(Int_t topic)
RooCmdArg Parameters(const RooArgSet &params)
RooCmdArg NumIntConfig(const RooNumIntConfig &cfg)
RooCmdArg ScanParameters(Int_t nbins, Int_t intOrder)
RooCmdArg Label(const char *str)
RooCmdArg ZVar(const RooAbsRealLValue &var, const RooCmdArg &arg=RooCmdArg::none())
RooCmdArg FitOptions(const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none())
RooCmdArg TagName(const char *name)
RooCmdArg BaseClassName(const char *name)
RooCmdArg IntrinsicBinning(bool flag=true)
RooCmdArg Restrict(const char *catName, const char *stateNameList)
RooCmdArg TLatexStyle(bool flag=true)
RooCmdArg MultiArg(const RooCmdArg &arg1, const RooCmdArg &arg2, const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none())
RooCmdArg RenameAllVariables(const char *suffix)
RooCmdArg ShowConstants(bool flag=true)
RooCmdArg RenameVariable(const char *inputName, const char *outputName)
RooCmdArg Color(Color_t color)
RooCmdArg FixedPrecision(Int_t ndigit=2)
RooCmdArg AutoPrecision(Int_t ndigit=2)
RooCmdArg Title(const char *name)
RooCmdArg RenameAllNodes(const char *suffix)
RooCmdArg SplitParam(const char *varname, const char *catname)
RooCmdArg Rename(const char *suffix)
RooCmdArg Format(const char *format, Int_t sigDigit)
RooCmdArg SupNormSet(const RooArgSet &nset)
RooCmdArg SelectVars(const RooArgSet &vars)
RooCmdArg AutoBinning(Int_t nbins=100, double marginFactor=0.1)
RooCmdArg FrameRange(double xlo, double xhi)
RooCmdArg Conditional(const RooArgSet &pdfSet, const RooArgSet &depSet, bool depsAreCond=false)
RooCmdArg LatexTableStyle(bool flag=true)
RooCmdArg RenameAllVariablesExcept(const char *suffix, const char *exceptionList)
RooCmdArg Scaling(bool flag)
RooConstVar & RooConst(double val)
RooCmdArg Columns(Int_t ncol)
RooCmdArg EventRange(Int_t nStart, Int_t nStop)
RooCmdArg ScanAllCdf()
RooCmdArg Frame(const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none())
RooCmdArg ObjectName(const char *name)
RooCmdArg Silence(bool flag=true)
RooCmdArg NoRecursion(bool flag=true)
RooCmdArg AxisLabel(const char *name)
RooCmdArg Sibling(const RooAbsCollection &sibling)
RooCmdArg Binned(bool flag=true)
RooCmdArg NormSet(Args_t &&... argsOrArgSet)
RooCmdArg SplitParamConstrained(const char *varname, const char *catname, const char *rsname)
RooCmdArg What(const char *str)
RooCmdArg RenameConflictNodes(const char *suffix, bool renameOrigNodes=false)
RooCmdArg AutoSymRange(const RooAbsData &data, double marginFactor=0.1)
RooCmdArg ScanNumCdf()
RooCmdArg Bins(Int_t nbin)
RooCmdArg Embedded(bool flag=true)
RooCmdArg OutputFile(const char *fileName)
RooCmdArg AutoSymBinning(Int_t nbins=100, double marginFactor=0.1)
RooCmdArg Layout(double xmin, double xmax=0.99, double ymin=0.95)
RooCmdArg OwnLinked()
RooCmdArg ImportFromFile(const char *fname, const char *tname)
RooCmdArg StoreAsymError(const RooArgSet &aset)
RooCmdArg Weight(double wgt)
RooCmdArg StoreError(const RooArgSet &aset)
RooCmdArg Link(const char *state, RooAbsData &data)
RooCmdArg WeightVar(const char *name="weight", bool reinterpretAsWeight=false)
RooCmdArg Import(const char *state, TH1 &histo)
RooCmdArg InitialHesse(bool flag=true)
RooCmdArg IntegrateBins(double precision)
Integrate the PDF over bins. Improves accuracy for binned fits. Switch off using 0....
RooCmdArg MaxCalls(int n)
RooCmdArg ProjectedObservables(Args_t &&... argsOrArgSet)
RooCmdArg SplitRange(bool flag=true)
RooCmdArg AsymptoticError(bool flag)
RooCmdArg PrefitDataFraction(double data_ratio=0.0)
RooCmdArg Offset(std::string const &mode)
RooCmdArg Constrain(const RooArgSet &params)
RooCmdArg GlobalObservablesTag(const char *tagName)
RooCmdArg Minimizer(const char *type, const char *alg=nullptr)
RooCmdArg Hesse(bool flag=true)
RooCmdArg Save(bool flag=true)
RooCmdArg Integrate(bool flag)
RooCmdArg SumW2Error(bool flag)
RooCmdArg GlobalObservables(Args_t &&... argsOrArgSet)
RooCmdArg GlobalObservablesSource(const char *sourceName)
RooCmdArg SumCoefRange(const char *rangeName)
RooCmdArg PrintEvalErrors(Int_t numErrors)
RooCmdArg Optimize(Int_t flag=2)
RooCmdArg Parallelize(int nWorkers)
RooCmdArg EvalErrorWall(bool flag)
RooCmdArg DataError(Int_t)
RooCmdArg Warnings(bool flag=true)
RooCmdArg ExternalConstraints(const RooArgSet &constraintPdfs)
RooCmdArg Minos(bool flag=true)
RooCmdArg ModularL(bool flag=false)
RooCmdArg TimingAnalysis(bool timingAnalysis)
RooCmdArg NumCPU(Int_t nCPU, Int_t interleave=0)
RooCmdArg CloneData(bool flag)
RooCmdArg RecoverFromUndefinedRegions(double strength)
When parameters are chosen such that a PDF is undefined, try to indicate to the minimiser how to leav...
RooCmdArg Verbose(bool flag=true)
RooCmdArg BatchMode(std::string const &batchMode="cpu")
RooCmdArg ConditionalObservables(Args_t &&... argsOrArgSet)
Create a RooCmdArg to declare conditional observables.
RooCmdArg ProtoData(const RooDataSet &protoData, bool randomizeOrder=false, bool resample=false)
RooCmdArg AllBinned()
RooCmdArg AutoBinned(bool flag=true)
RooCmdArg Asimov(bool flag=true)
RooCmdArg NumEvents(Int_t numEvents)
RooCmdArg GenBinned(const char *tag)
RooCmdArg ExpectedData(bool flag=true)
RooCmdArg MarkerColor(Color_t color)
RooCmdArg RefreshNorm()
RooCmdArg Components(Args_t &&... argsOrArgSet)
RooCmdArg ProjectionRange(const char *rangeName)
RooCmdArg FillColor(Color_t color)
RooCmdArg Binning(const RooAbsBinning &binning)
RooCmdArg ProjWData(const RooAbsData &projData, bool binData=false)
RooCmdArg Precision(double prec)
RooCmdArg EvalErrorValue(double value)
RooCmdArg NormRange(const char *rangeNameList)
RooCmdArg ShowProgress()
RooCmdArg DrawOption(const char *opt)
RooCmdArg Project(const RooArgSet &projSet)
RooCmdArg FillStyle(Style_t style)
RooCmdArg Range(const char *rangeName, bool adjustNorm=true)
RooCmdArg Invisible(bool inv=true)
RooCmdArg MarkerStyle(Style_t style)
RooCmdArg LineWidth(Width_t width)
RooCmdArg Normalization(double scaleFactor)
RooCmdArg VisualizeError(const RooDataSet &paramData, double Z=1)
RooCmdArg ShiftToZero()
RooCmdArg Slice(const RooArgSet &sliceSet)
RooCmdArg AddTo(const char *name, double wgtSel=1.0, double wgtOther=1.0)
RooCmdArg CutRange(const char *rangeName)
RooCmdArg XErrorSize(double width)
RooCmdArg MoveToBack()
RooCmdArg MarkerSize(Size_t size)
RooCmdArg Rescale(double factor)
RooCmdArg Cut(const char *cutSpec)
RooCmdArg Efficiency(const RooCategory &cat)
RooCmdArg LineColor(Color_t color)
RooCmdArg Name(const char *name)
RooCmdArg LineStyle(Style_t style)
RooCmdArg VLines()
RooCmdArg Asymmetry(const RooCategory &cat)
const Int_t n
Definition legend1.C:16
RooConstVar & C(double value)
std::unique_ptr< RooLinkedList > createCmdList(Args &&... args)
RooCmdArg ParallelGradientOptions(bool enable=true, int orderStrategy=0, int chainFactor=1)
Configuration options for parallel minimization with multiprocessing library.
RooCmdArg ParallelDescentOptions(bool enable=false, int splitStrategy=0, int numSplits=4)
std::string & defaultBatchMode()
Get a handle on the default BatchMode option that is used when creating likelihoods.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Definition Common.h:18
MsgLevel
Verbosity level for RooMsgService::StreamConfig in RooMsgService.
@ SimComponents
@ BulkPartition
OffsetMode
For setting the offset mode with the Offset() command argument to RooAbsPdf::fitTo()
BatchModeOption
For setting the batch mode flag with the BatchMode() command argument to RooAbsPdf::fitTo()
MsgTopic
Topics for a RooMsgService::StreamConfig in RooMsgService.
@ FastEvaluations
@ NumIntegration
@ InputArguments
@ ObjectHandling
@ LinkStateMgmt
Definition tree.py:1
void inv(rsa_NUMBER *, rsa_NUMBER *, rsa_NUMBER *)
Definition rsaaux.cxx:949
static const char * what
Definition stlLoader.cc:6
static int Prefix[4096]
Definition gifdecode.c:12