Logo ROOT  
Reference Guide
RooGlobalFunc.cxx
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * @(#)root/roofitcore:$Id$
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
17// Global helper functions
18
19#include "RooGlobalFunc.h"
20
21#include "RooFit.h"
22#include "RooCategory.h"
23#include "RooRealConstant.h"
24#include "RooDataSet.h"
25#include "RooDataHist.h"
26#include "RooNumIntConfig.h"
27#include "RooRealVar.h"
28#include "RooFitResult.h"
29#include "RooAbsPdf.h"
30#include "RooFormulaVar.h"
31#include "RooHelpers.h"
32#include "TH1.h"
33
34#include <algorithm>
35
36using namespace std;
37
38namespace RooFit {
39
40 // anonymous namespace for helper functions for the implementation of the global functions
41 namespace {
42
43 template<class T>
44 RooCmdArg processImportItem(std::pair<std::string const, T*> const& item) {
45 return Import(item.first.c_str(), *item.second) ;
46 }
47
48 template<class T>
49 RooCmdArg processLinkItem(std::pair<std::string const, T*> const& item) {
50 return Link(item.first.c_str(), *item.second) ;
51 }
52
53 RooCmdArg processSliceItem(std::pair<RooCategory * const, std::string> const& item) {
54 return Slice(*item.first, item.second.c_str());
55 }
56
57 template<class Map_t, class Func_t>
58 RooCmdArg processMap(const char* name, Func_t func, Map_t const& map) {
59 RooCmdArg container(name,0,0,0,0,0,0,0,0) ;
60 for (auto const& item : map) {
61 container.addArg(func(item)) ;
62 }
63 container.setProcessRecArgs(true,false) ;
64 return container ;
65 }
66
67 } // namespace
68
69
70 // RooAbsReal::plotOn arguments
71 RooCmdArg DrawOption(const char* opt) { return RooCmdArg("DrawOption",0,0,0,0,opt,0,0,0) ; }
72 RooCmdArg Slice(const RooArgSet& sliceSet) { return RooCmdArg("SliceVars",0,0,0,0,0,0,&sliceSet,0) ; }
73 RooCmdArg Slice(RooArgSet && sliceSet) { return Slice(RooCmdArg::take(std::move(sliceSet))); }
74 RooCmdArg Slice(RooCategory& cat, const char* label) { return RooCmdArg("SliceCat",0,0,0,0,label,0,&cat,0) ; }
75 RooCmdArg Slice(std::map<RooCategory*, std::string> const& arg) {
76 return processMap("SliceCatMany", processSliceItem, arg);
77 }
78
79 RooCmdArg Project(const RooArgSet& projSet) { return RooCmdArg("Project",0,0,0,0,0,0,&projSet,0) ; }
80 RooCmdArg Project(RooArgSet && projSet) { return Project(RooCmdArg::take(std::move(projSet))); }
81 RooCmdArg ProjWData(const RooArgSet& projSet,
82 const RooAbsData& projData,
83 Bool_t binData) { return RooCmdArg("ProjData",binData,0,0,0,0,0,&projSet,&projData) ; }
84 RooCmdArg ProjWData(RooArgSet && projSet, const RooAbsData& projData, Bool_t binData) {
85 return ProjWData(RooCmdArg::take(std::move(projSet)), projData, binData);
86 }
88 Bool_t binData) { return RooCmdArg("ProjData",binData,0,0,0,0,0,0,&projData) ; }
89 RooCmdArg Asymmetry(const RooCategory& cat) { return RooCmdArg("Asymmetry",0,0,0,0,0,0,&cat,0) ; }
90 RooCmdArg Precision(Double_t prec) { return RooCmdArg("Precision",0,0,prec,0,0,0,0,0) ; }
91 RooCmdArg ShiftToZero() { return RooCmdArg("ShiftToZero",1,0,0,0,0,0,0,0) ; }
92 RooCmdArg Normalization(Double_t scaleFactor) { return RooCmdArg("Normalization",RooAbsReal::Relative,0,scaleFactor,0,0,0,0,0) ; }
93 RooCmdArg Range(const char* rangeName, Bool_t adjustNorm) { return RooCmdArg("RangeWithName",adjustNorm,0,0,0,rangeName,0,0,0) ; }
94 RooCmdArg Range(Double_t lo, Double_t hi, Bool_t adjustNorm){ return RooCmdArg("Range",adjustNorm,0,lo,hi,0,0,0,0) ; }
95 RooCmdArg NormRange(const char* rangeNameList) { return RooCmdArg("NormRange",0,0,0,0,rangeNameList,0,0,0) ; }
96 RooCmdArg VLines() { return RooCmdArg("VLines",1,0,0,0,0,0,0,0) ; }
97 RooCmdArg LineColor(Color_t color) { return RooCmdArg("LineColor",color,0,0,0,0,0,0,0) ; }
98 RooCmdArg LineStyle(Style_t style) { return RooCmdArg("LineStyle",style,0,0,0,0,0,0,0) ; }
99 RooCmdArg LineWidth(Width_t width) { return RooCmdArg("LineWidth",width,0,0,0,0,0,0,0) ; }
100 RooCmdArg FillColor(Color_t color) { return RooCmdArg("FillColor",color,0,0,0,0,0,0,0) ; }
101 RooCmdArg FillStyle(Style_t style) { return RooCmdArg("FillStyle",style,0,0,0,0,0,0,0) ; }
102 RooCmdArg ProjectionRange(const char* rangeName) { return RooCmdArg("ProjectionRange",0,0,0,0,rangeName,0,0,0) ; }
103 RooCmdArg Name(const char* name) { return RooCmdArg("Name",0,0,0,0,name,0,0,0) ; }
104 RooCmdArg Invisible(bool inv) { return RooCmdArg("Invisible",inv,0,0,0,0,0,0,0) ; }
105 RooCmdArg AddTo(const char* name, double wgtSel, double wgtOther) { return RooCmdArg("AddTo",0,0,wgtSel,wgtOther,name,0,0,0) ; }
106 RooCmdArg EvalErrorValue(Double_t val) { return RooCmdArg("EvalErrorValue",1,0,val,0,0,0,0,0) ; }
107 RooCmdArg MoveToBack() { return RooCmdArg("MoveToBack",1,0,0,0,0,0,0,0) ; }
108 RooCmdArg VisualizeError(const RooFitResult& fitres, Double_t Z, Bool_t EVmethod) { return RooCmdArg("VisualizeError",EVmethod,0,Z,0,0,0,&fitres,0) ; }
109 RooCmdArg VisualizeError(const RooFitResult& fitres, const RooArgSet& param, Double_t Z, Bool_t EVmethod)
110 { return RooCmdArg("VisualizeError",EVmethod,0,Z,0,0,0,&fitres,0,0,0,&param) ; }
111 RooCmdArg VisualizeError(const RooFitResult& fitres, RooArgSet && param, Double_t Z, Bool_t linearMethod) {
112 return VisualizeError(fitres, RooCmdArg::take(std::move(param)), Z, linearMethod);
113 }
114 RooCmdArg VisualizeError(const RooDataSet& paramData, Double_t Z) { return RooCmdArg("VisualizeErrorData",0,0,Z,0,0,0,&paramData,0) ; }
115 RooCmdArg ShowProgress() { return RooCmdArg("ShowProgress",1,0,0,0,0,0,0,0) ; }
116
117 // RooAbsPdf::plotOn arguments
118 RooCmdArg Components(const RooArgSet& compSet) { return RooCmdArg("SelectCompSet",0,0,0,0,0,0,&compSet,0) ; }
119 RooCmdArg Components(RooArgSet && compSet) { return Components(RooCmdArg::take(std::move(compSet))); }
120 RooCmdArg Components(const char* compSpec) { return RooCmdArg("SelectCompSpec",0,0,0,0,compSpec,0,0,0) ; }
121 RooCmdArg Normalization(Double_t scaleFactor, Int_t scaleType)
122 { return RooCmdArg("Normalization",scaleType,0,scaleFactor,0,0,0,0,0) ; }
123
124 // RooAbsData::plotOn arguments
125 RooCmdArg Cut(const char* cutSpec) { return RooCmdArg("CutSpec",0,0,0,0,cutSpec,0,0,0) ; }
126 RooCmdArg Cut(const RooFormulaVar& cutVar) { return RooCmdArg("CutVar",0,0,0,0,0,0,&cutVar,0) ; }
127 RooCmdArg Binning(const RooAbsBinning& binning) { return RooCmdArg("Binning",0,0,0,0,0,0,&binning,0) ;}
128 RooCmdArg Binning(const char* binningName) { return RooCmdArg("BinningName",0,0,0,0,binningName,0,0,0) ;}
129 RooCmdArg Binning(Int_t nBins, Double_t xlo, Double_t xhi) { return RooCmdArg("BinningSpec",nBins,0,xlo,xhi,0,0,0,0) ;}
130 RooCmdArg MarkerStyle(Style_t style) { return RooCmdArg("MarkerStyle",style,0,0,0,0,0,0,0) ; }
131 RooCmdArg MarkerSize(Size_t size) { return RooCmdArg("MarkerSize",0,0,size,0,0,0,0,0) ; }
132 RooCmdArg MarkerColor(Color_t color) { return RooCmdArg("MarkerColor",color,0,0,0,0,0,0,0) ; }
133 RooCmdArg CutRange(const char* rangeName) { return RooCmdArg("CutRange",0,0,0,0,rangeName,0,0,0) ; }
134 RooCmdArg AddTo(const char* name) { return RooCmdArg("AddTo",0,0,0,0,name,0,0,0) ; }
135 RooCmdArg XErrorSize(Double_t width) { return RooCmdArg("XErrorSize",0,0,width,0,0,0,0,0) ; }
136 RooCmdArg RefreshNorm() { return RooCmdArg("RefreshNorm",1,0,0,0,0,0,0,0) ; }
137 RooCmdArg Efficiency(const RooCategory& cat) { return RooCmdArg("Efficiency",0,0,0,0,0,0,&cat,0) ; }
138 RooCmdArg Rescale(Double_t factor) { return RooCmdArg("Rescale",0,0,factor,0,0,0,0,0) ; }
139
140 // RooDataHist::ctor arguments
141 RooCmdArg Weight(Double_t wgt) { return RooCmdArg("Weight",0,0,wgt,0,0,0,0,0) ; }
142 RooCmdArg Index(RooCategory& icat) { return RooCmdArg("IndexCat",0,0,0,0,0,0,&icat,0) ; }
143 RooCmdArg Import(const char* state, TH1& histo) { return RooCmdArg("ImportHistoSlice",0,0,0,0,state,0,&histo,0) ; }
144 RooCmdArg Import(const char* state, RooDataHist& dhist) { return RooCmdArg("ImportDataHistSlice",0,0,0,0,state,0,&dhist,0) ; }
145 RooCmdArg Import(TH1& histo, Bool_t importDensity) { return RooCmdArg("ImportHisto",importDensity,0,0,0,0,0,&histo,0) ; }
146
147 RooCmdArg Import(const std::map<std::string,RooDataHist*>& arg) {
148 return processMap("ImportDataHistSliceMany", processImportItem<RooDataHist>, arg);
149 }
150 RooCmdArg Import(const std::map<std::string,TH1*>& arg) {
151 return processMap("ImportHistoSliceMany", processImportItem<TH1>, arg);
152 }
153
154
155 // RooDataSet::ctor arguments
156 RooCmdArg WeightVar(const char* name, Bool_t reinterpretAsWeight) { return RooCmdArg("WeightVarName",reinterpretAsWeight,0,0,0,name,0,0,0) ; }
157 RooCmdArg WeightVar(const RooRealVar& arg, Bool_t reinterpretAsWeight) { return RooCmdArg("WeightVar",reinterpretAsWeight,0,0,0,0,0,&arg,0) ; }
158 RooCmdArg Link(const char* state, RooAbsData& data) { return RooCmdArg("LinkDataSlice",0,0,0,0,state,0,&data,0) ;}
159 RooCmdArg Import(const char* state, RooDataSet& data) { return RooCmdArg("ImportDataSlice",0,0,0,0,state,0,&data,0) ; }
160 RooCmdArg Import(RooDataSet& data) { return RooCmdArg("ImportData",0,0,0,0,0,0,&data,0) ; }
161 RooCmdArg Import(TTree& tree) { return RooCmdArg("ImportTree",0,0,0,0,0,0,reinterpret_cast<TObject*>(&tree),0) ; }
162 RooCmdArg ImportFromFile(const char* fname, const char* tname){ return RooCmdArg("ImportFromFile",0,0,0,0,fname,tname,0,0) ; }
163 RooCmdArg StoreError(const RooArgSet& aset) { return RooCmdArg("StoreError",0,0,0,0,0,0,0,0,0,0,&aset) ; }
164 RooCmdArg StoreError(RooArgSet && aset) { return StoreError(RooCmdArg::take(std::move(aset))); }
165 RooCmdArg StoreAsymError(const RooArgSet& aset) { return RooCmdArg("StoreAsymError",0,0,0,0,0,0,0,0,0,0,&aset) ; }
166 RooCmdArg StoreAsymError(RooArgSet && aset) { return StoreAsymError(RooCmdArg::take(std::move(aset))); }
167 RooCmdArg OwnLinked() { return RooCmdArg("OwnLinked",1,0,0,0,0,0,0,0,0,0,0) ; }
168
169 RooCmdArg Import(const std::map<std::string,RooDataSet*>& arg) {
170 return processMap("ImportDataSliceMany", processImportItem<RooDataSet>, arg);
171 }
172 RooCmdArg Link(const std::map<std::string,RooAbsData*>& arg) {
173 return processMap("LinkDataSliceMany", processLinkItem<RooAbsData>, arg);
174 }
175
176
177 // RooChi2Var::ctor / RooNLLVar arguments
178 RooCmdArg Extended(Bool_t flag) { return RooCmdArg("Extended",flag,0,0,0,0,0,0,0) ; }
179 RooCmdArg DataError(Int_t etype) { return RooCmdArg("DataError",(Int_t)etype,0,0,0,0,0,0,0) ; }
180 RooCmdArg NumCPU(Int_t nCPU, Int_t interleave) { return RooCmdArg("NumCPU",nCPU,interleave,0,0,0,0,0,0) ; }
181 RooCmdArg BatchMode(std::string const& batchMode) {
182 std::string lower = batchMode;
183 std::transform(lower.begin(), lower.end(), lower.begin(), [](unsigned char c){ return std::tolower(c); });
184 bool mode;
185 if(lower == "off") mode = false;
186 else if(lower == "cpu") mode = true;
187 else throw std::runtime_error("Only supported string values for BatchMode() are `off` or `cpu`.");
188 return RooCmdArg("BatchMode", static_cast<int>(mode));
189 }
190 /// Integrate the PDF over bins. Improves accuracy for binned fits. Switch off using `0.` as argument. \see RooAbsPdf::fitTo().
191 RooCmdArg IntegrateBins(double precision) { return RooCmdArg("IntegrateBins", 0, 0, precision); }
192
193 // RooAbsCollection::printLatex arguments
194 RooCmdArg Columns(Int_t ncol) { return RooCmdArg("Columns",ncol,0,0,0,0,0,0,0) ; }
195 RooCmdArg OutputFile(const char* fileName) { return RooCmdArg("OutputFile",0,0,0,0,fileName,0,0,0) ; }
196 RooCmdArg Sibling(const RooAbsCollection& sibling) { return RooCmdArg("Sibling",0,0,0,0,0,0,&sibling,0) ; }
197 RooCmdArg Format(const char* format, Int_t sigDigit) { return RooCmdArg("Format",sigDigit,0,0,0,format,0,0,0) ; }
198 RooCmdArg Format(const char* what, const RooCmdArg& arg1,const RooCmdArg& arg2,const RooCmdArg& arg3,const RooCmdArg& arg4,
199 const RooCmdArg& arg5,const RooCmdArg& arg6,const RooCmdArg& arg7,const RooCmdArg& arg8) {
200 RooCmdArg ret("FormatArgs",0,0,0,0,what,0,0,0) ; ret.addArg(arg1) ; ret.addArg(arg2) ;
201 ret.addArg(arg3) ; ret.addArg(arg4) ; ret.addArg(arg5) ; ret.addArg(arg6) ; ret.addArg(arg7) ; ret.addArg(arg8) ;
202 ret.setProcessRecArgs(kFALSE) ; return ret ;
203 }
204
205 // RooAbsRealLValue::frame arguments
206 RooCmdArg Title(const char* name) { return RooCmdArg("Title",0,0,0,0,name,0,0,0) ; }
207 RooCmdArg Bins(Int_t nbin) { return RooCmdArg("Bins",nbin,0,0,0,0,0,0,0) ; }
208 RooCmdArg AutoSymRange(const RooAbsData& data, Double_t marginFactor) { return RooCmdArg("AutoRange",1,0,marginFactor,0,0,0,&data,0) ; }
209 RooCmdArg AutoRange(const RooAbsData& data, Double_t marginFactor) { return RooCmdArg("AutoRange",0,0,marginFactor,0,0,0,&data,0) ; }
210
211 // RooAbsData::reduce arguments
212 RooCmdArg SelectVars(const RooArgSet& vars) { return RooCmdArg("SelectVars",0,0,0,0,0,0,&vars,0) ; }
213 RooCmdArg SelectVars(RooArgSet && vars) { return SelectVars(RooCmdArg::take(std::move(vars))); }
214 RooCmdArg EventRange(Int_t nStart, Int_t nStop) { return RooCmdArg("EventRange",nStart,nStop,0,0,0,0,0,0) ; }
215
216 // RooAbsPdf::fitTo arguments
217 RooCmdArg PrefitDataFraction(Double_t data_ratio) { return RooCmdArg("Prefit",0,0,data_ratio,0,nullptr,nullptr,nullptr,nullptr) ; }
218 RooCmdArg FitOptions(const char* opts) { return RooCmdArg("FitOptions",0,0,0,0,opts,0,0,0) ; }
219 RooCmdArg Optimize(Int_t flag) { return RooCmdArg("Optimize",flag,0,0,0,0,0,0,0) ; }
220 RooCmdArg Verbose(Bool_t flag) { return RooCmdArg("Verbose",flag,0,0,0,0,0,0,0) ; }
221 RooCmdArg Save(Bool_t flag) { return RooCmdArg("Save",flag,0,0,0,0,0,0,0) ; }
222 RooCmdArg Timer(Bool_t flag) { return RooCmdArg("Timer",flag,0,0,0,0,0,0,0) ; }
223 RooCmdArg PrintLevel(Int_t level) { return RooCmdArg("PrintLevel",level,0,0,0,0,0,0,0) ; }
224 RooCmdArg Warnings(Bool_t flag) { return RooCmdArg("Warnings",flag,0,0,0,0,0,0,0) ; }
225 RooCmdArg Strategy(Int_t code) { return RooCmdArg("Strategy",code,0,0,0,0,0,0,0) ; }
226 RooCmdArg InitialHesse(Bool_t flag) { return RooCmdArg("InitialHesse",flag,0,0,0,0,0,0,0) ; }
227 RooCmdArg Hesse(Bool_t flag) { return RooCmdArg("Hesse",flag,0,0,0,0,0,0,0) ; }
228 RooCmdArg Minos(Bool_t flag) { return RooCmdArg("Minos",flag,0,0,0,0,0,0,0) ; }
229 RooCmdArg Minos(const RooArgSet& minosArgs) { return RooCmdArg("Minos",kTRUE,0,0,0,0,0,&minosArgs,0) ; }
230 RooCmdArg Minos(RooArgSet && minosArgs) { return Minos(RooCmdArg::take(std::move(minosArgs))); }
231 RooCmdArg SplitRange(Bool_t flag) { return RooCmdArg("SplitRange",flag,0,0,0,0,0,0,0) ; }
232 RooCmdArg SumCoefRange(const char* rangeName) { return RooCmdArg("SumCoefRange",0,0,0,0,rangeName,0,0,0) ; }
233 RooCmdArg Constrain(const RooArgSet& params) { return RooCmdArg("Constrain",0,0,0,0,0,0,0,0,0,0,&params) ; }
234 RooCmdArg Constrain(RooArgSet && params) { return Constrain(RooCmdArg::take(std::move(params))); }
235 RooCmdArg GlobalObservablesSource(const char* sourceName) { return {"GlobalObservablesSource",0,0,0,0,sourceName,0,0,0}; }
236 RooCmdArg GlobalObservablesTag(const char* tagName) { return RooCmdArg("GlobalObservablesTag",0,0,0,0,tagName,0,0,0) ; }
237 RooCmdArg ExternalConstraints(const RooArgSet& cpdfs) { return RooCmdArg("ExternalConstraints",0,0,0,0,0,0,&cpdfs,0,0,0,&cpdfs) ; }
239 RooCmdArg PrintEvalErrors(Int_t numErrors) { return RooCmdArg("PrintEvalErrors",numErrors,0,0,0,0,0,0,0) ; }
240 RooCmdArg EvalErrorWall(Bool_t flag) { return RooCmdArg("EvalErrorWall",flag,0,0,0,0,0,0,0) ; }
241 RooCmdArg SumW2Error(Bool_t flag) { return RooCmdArg("SumW2Error",flag,0,0,0,0,0,0,0) ; }
242 RooCmdArg AsymptoticError(Bool_t flag) { return RooCmdArg("AsymptoticError",flag,0,0,0,0,0,0,0) ; }
243 RooCmdArg CloneData(Bool_t flag) { return RooCmdArg("CloneData",flag,0,0,0,0,0,0,0) ; }
244 RooCmdArg Integrate(Bool_t flag) { return RooCmdArg("Integrate",flag,0,0,0,0,0,0,0) ; }
245 RooCmdArg Minimizer(const char* type, const char* alg) { return RooCmdArg("Minimizer",0,0,0,0,type,alg,0,0) ; }
246 RooCmdArg Offset(Bool_t flag) { return RooCmdArg("OffsetLikelihood",flag,0,0,0,0,0,0,0) ; }
247 /// When parameters are chosen such that a PDF is undefined, try to indicate to the minimiser how to leave this region.
248 /// \param strength Strength of hints for minimiser. Set to zero to switch off.
249 RooCmdArg RecoverFromUndefinedRegions(double strength) { return RooCmdArg("RecoverFromUndefinedRegions",0,0,strength,0,0,0,0,0) ; }
250
251
252 // RooAbsPdf::paramOn arguments
253 RooCmdArg Label(const char* str) { return RooCmdArg("Label",0,0,0,0,str,0,0,0) ; }
254 RooCmdArg Layout(Double_t xmin, Double_t xmax, Double_t ymin) { return RooCmdArg("Layout",Int_t(ymin*10000),0,xmin,xmax,0,0,0,0) ; }
255 RooCmdArg Parameters(const RooArgSet& params) { return RooCmdArg("Parameters",0,0,0,0,0,0,&params,0) ; }
256 RooCmdArg Parameters(RooArgSet && params) { return Parameters(RooCmdArg::take(std::move(params))) ; }
257 RooCmdArg ShowConstants(Bool_t flag) { return RooCmdArg("ShowConstants",flag,0,0,0,0,0,0,0) ; }
258
259 // RooTreeData::statOn arguments
260 RooCmdArg What(const char* str) { return RooCmdArg("What",0,0,0,0,str,0,0,0) ; }
261
262 // RooProdPdf::ctor arguments
263 RooCmdArg Conditional(const RooArgSet& pdfSet, const RooArgSet& depSet, Bool_t depsAreCond) { return RooCmdArg("Conditional",depsAreCond,0,0,0,0,0,0,0,0,0,&pdfSet,&depSet) ; } ;
264 RooCmdArg Conditional(RooArgSet && pdfSet, const RooArgSet& depSet, Bool_t depsAreCond) {
265 return Conditional(RooCmdArg::take(std::move(pdfSet)), depSet, depsAreCond);
266 }
267 RooCmdArg Conditional(const RooArgSet& pdfSet, RooArgSet && depSet, Bool_t depsAreCond) {
268 return Conditional(pdfSet, RooCmdArg::take(std::move(depSet)), depsAreCond);
269 }
270 RooCmdArg Conditional(RooArgSet && pdfSet, RooArgSet && depSet, Bool_t depsAreCond) {
271 return Conditional(RooCmdArg::take(std::move(pdfSet)), RooCmdArg::take(std::move(depSet)), depsAreCond);
272 }
273
274 // RooAbsPdf::generate arguments
275 RooCmdArg ProtoData(const RooDataSet& protoData, Bool_t randomizeOrder, Bool_t resample)
276 { return RooCmdArg("PrototypeData",randomizeOrder,resample,0,0,0,0,&protoData,0) ; }
277 RooCmdArg NumEvents(Int_t numEvents) { return RooCmdArg("NumEvents",numEvents,0,0,0,0,0,0,0) ; }
278 RooCmdArg NumEvents(Double_t numEvents) { return RooCmdArg("NumEventsD",0,0,numEvents,0,0,0,0,0) ; }
279 RooCmdArg ExpectedData(Bool_t flag) { return RooCmdArg("ExpectedData",flag,0,0,0,0,0,0,0) ; }
280 RooCmdArg Asimov(Bool_t flag) { return ExpectedData(flag) ; }
281 RooCmdArg AutoBinned(Bool_t flag) { return RooCmdArg("AutoBinned",flag,0,0,0,0,0,0,0) ; }
282 RooCmdArg GenBinned(const char* tag) { return RooCmdArg("GenBinned",0,0,0,0,tag,0,0,0) ; }
283 RooCmdArg AllBinned() { return RooCmdArg("GenBinned",0,0,0,0,"*",0,0,0) ; }
284
285
286 // RooAbsRealLValue::createHistogram arguments
287 RooCmdArg YVar(const RooAbsRealLValue& var, const RooCmdArg& arg) { return RooCmdArg("YVar",0,0,0,0,0,0,&var,0,&arg) ; }
288 RooCmdArg ZVar(const RooAbsRealLValue& var, const RooCmdArg& arg) { return RooCmdArg("ZVar",0,0,0,0,0,0,&var,0,&arg) ; }
289 RooCmdArg AxisLabel(const char* name) { return RooCmdArg("AxisLabel",0,0,0,0,name,0,0,0) ; }
290 RooCmdArg Scaling(Bool_t flag) { return RooCmdArg("Scaling",flag,0,0,0,0,0,0,0) ; }
291
292 // RooAbsReal::createHistogram arguments
293 RooCmdArg IntrinsicBinning(Bool_t flag) { return RooCmdArg("IntrinsicBinning",flag,0,0,0,0,0,0,0) ; }
294
295 // RooAbsData::createHistogram arguments
296 RooCmdArg AutoSymBinning(Int_t nbins, Double_t marginFactor) { return RooCmdArg("AutoRangeData",1,nbins,marginFactor,0,0,0,0,0) ; }
297 RooCmdArg AutoBinning(Int_t nbins, Double_t marginFactor) { return RooCmdArg("AutoRangeData",0,nbins,marginFactor,0,0,0,0,0) ; }
298
299 // RooAbsReal::fillHistogram arguments
300 RooCmdArg IntegratedObservables(const RooArgSet& intObs) { return RooCmdArg("IntObs",0,0,0,0,0,0,0,0,0,0,&intObs,0) ; } ;
302
303 // RooAbsReal::createIntegral arguments
304 RooCmdArg NormSet(const RooArgSet& nset) { return RooCmdArg("NormSet",0,0,0,0,0,0,&nset,0) ; }
305 RooCmdArg NormSet(RooArgSet && nset) { return NormSet(RooCmdArg::take(std::move(nset))); }
306 RooCmdArg NumIntConfig(const RooNumIntConfig& cfg) { return RooCmdArg("NumIntConfig",0,0,0,0,0,0,&cfg,0) ; }
307
308 // RooMCStudy::ctor arguments
309 RooCmdArg Silence(Bool_t flag) { return RooCmdArg("Silence",flag,0,0,0,0,0,0,0) ; }
310 RooCmdArg FitModel(RooAbsPdf& pdf) { return RooCmdArg("FitModel",0,0,0,0,0,0,&pdf,0) ; }
311 RooCmdArg FitOptions(const RooCmdArg& arg1 ,const RooCmdArg& arg2, const RooCmdArg& arg3,
312 const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6) {
313 RooCmdArg ret("FitOptArgs",0,0,0,0,0,0,0,0) ; ret.addArg(arg1) ; ret.addArg(arg2) ;
314 ret.addArg(arg3) ; ret.addArg(arg4) ; ret.addArg(arg5) ; ret.addArg(arg6) ;
315 ret.setProcessRecArgs(kFALSE) ; return ret ;
316 }
317 RooCmdArg Binned(Bool_t flag) { return RooCmdArg("Binned",flag,0,0,0,0,0,0,0) ; }
318 RooCmdArg BootStrapData(const RooDataSet& dset) { return RooCmdArg("BootStrapData",0,0,0,0,0,0,&dset,0) ; }
319
320
321 // RooMCStudy::plot* arguments
322 RooCmdArg Frame(const RooCmdArg& arg1,const RooCmdArg& arg2,
323 const RooCmdArg& arg3,const RooCmdArg& arg4,
324 const RooCmdArg& arg5,const RooCmdArg& arg6) {
325 RooCmdArg ret("FrameArgs",0,0,0,0,0,0,0,0) ; ret.addArg(arg1) ; ret.addArg(arg2) ;
326 ret.addArg(arg3) ; ret.addArg(arg4) ; ret.addArg(arg5) ; ret.addArg(arg6) ;
327 ret.setProcessRecArgs(kFALSE) ; return ret ;
328 }
329 RooCmdArg FrameBins(Int_t nbins) { return RooCmdArg("Bins",nbins,0,0,0,0,0,0,0) ; }
330 RooCmdArg FrameRange(Double_t xlo, Double_t xhi) { return RooCmdArg("Range",0,0,xlo,xhi,0,0,0,0) ; }
331 RooCmdArg FitGauss(Bool_t flag) { return RooCmdArg("FitGauss",flag,0,0,0,0,0,0,0) ; }
332
333 // RooRealVar::format arguments
334 RooCmdArg ShowName(Bool_t flag) { return RooCmdArg("ShowName",flag,0,0,0,0,0,0,0) ; }
335 RooCmdArg ShowValue(Bool_t flag) { return RooCmdArg("ShowValue",flag,0,0,0,0,0,0,0) ; }
336 RooCmdArg ShowError(Bool_t flag) { return RooCmdArg("ShowError",flag,0,0,0,0,0,0,0) ; }
337 RooCmdArg ShowAsymError(Bool_t flag) { return RooCmdArg("ShowAsymError",flag,0,0,0,0,0,0,0) ; }
338 RooCmdArg ShowUnit(Bool_t flag) { return RooCmdArg("ShowUnit",flag,0,0,0,0,0,0,0) ; }
339 RooCmdArg AutoPrecision(Int_t ndigit) { return RooCmdArg("AutoPrecision",ndigit,0,0,0,0,0,0,0) ; }
340 RooCmdArg FixedPrecision(Int_t ndigit) { return RooCmdArg("FixedPrecision",ndigit,0,0,0,0,0,0,0) ; }
341 RooCmdArg TLatexStyle(Bool_t flag) { return RooCmdArg("TLatexStyle",flag,0,0,0,0,0,0,0) ; }
342 RooCmdArg LatexStyle(Bool_t flag) { return RooCmdArg("LatexStyle",flag,0,0,0,0,0,0,0) ; }
343 RooCmdArg LatexTableStyle(Bool_t flag) { return RooCmdArg("LatexTableStyle",flag,0,0,0,0,0,0,0) ; }
344 RooCmdArg VerbatimName(Bool_t flag) { return RooCmdArg("VerbatimName",flag,0,0,0,0,0,0,0) ; }
345
346 // RooMsgService::addReportingStream arguments
347 RooCmdArg Topic(Int_t topic) { return RooCmdArg("Topic",topic,0,0,0,0,0,0,0) ; }
348 RooCmdArg ObjectName(const char* name) { return RooCmdArg("ObjectName",0,0,0,0,name,0,0,0) ; }
349 RooCmdArg ClassName(const char* name) { return RooCmdArg("ClassName",0,0,0,0,name,0,0,0) ; }
350 RooCmdArg BaseClassName(const char* name) { return RooCmdArg("BaseClassName",0,0,0,0,name,0,0,0) ; }
351 RooCmdArg TagName(const char* name) { return RooCmdArg("LabelName",0,0,0,0,name,0,0,0) ; }
352 RooCmdArg OutputStream(ostream& os) { return RooCmdArg("OutputStream",0,0,0,0,0,0,new RooHelpers::WrapIntoTObject<ostream>(os),0) ; }
353 RooCmdArg Prefix(Bool_t flag) { return RooCmdArg("Prefix",flag,0,0,0,0,0,0,0) ; }
354 RooCmdArg Color(Color_t color) { return RooCmdArg("Color",color,0,0,0,0,0,0,0) ; }
355
356
357 // RooWorkspace::import() arguments
358 RooCmdArg RenameConflictNodes(const char* suffix, Bool_t ro) { return RooCmdArg("RenameConflictNodes",ro,0,0,0,suffix,0,0,0) ; }
359 RooCmdArg RecycleConflictNodes(Bool_t flag) { return RooCmdArg("RecycleConflictNodes",flag,0,0,0,0,0,0,0) ; }
360 RooCmdArg RenameAllNodes(const char* suffix) { return RooCmdArg("RenameAllNodes",0,0,0,0,suffix,0,0,0) ; }
361 RooCmdArg RenameAllVariables(const char* suffix) { return RooCmdArg("RenameAllVariables",0,0,0,0,suffix,0,0,0) ; }
362 RooCmdArg RenameAllVariablesExcept(const char* suffix, const char* except) { return RooCmdArg("RenameAllVariables",0,0,0,0,suffix,except,0,0) ; }
363 RooCmdArg RenameVariable(const char* in, const char* out) { return RooCmdArg("RenameVar",0,0,0,0,in,out,0,0) ; }
364 RooCmdArg Rename(const char* suffix) { return RooCmdArg("Rename",0,0,0,0,suffix,0,0,0) ; }
365 RooCmdArg Embedded(Bool_t flag) { return RooCmdArg("Embedded",flag,0,0,0,0,0,0,0) ; }
366 RooCmdArg NoRecursion(Bool_t flag) { return RooCmdArg("NoRecursion",flag,0,0,0,0,0,0,0) ; }
367
368 // RooSimCloneTool::build() arguments
369 RooCmdArg SplitParam(const char* varname, const char* catname) { return RooCmdArg("SplitParam",0,0,0,0,varname,catname,0,0) ; }
370 RooCmdArg SplitParam(const RooRealVar& var, const RooAbsCategory& cat) { return RooCmdArg("SplitParam",0,0,0,0,var.GetName(),cat.GetName(),0,0) ; }
371 RooCmdArg SplitParamConstrained(const char* varname, const char* catname, const char* rsname) { return RooCmdArg("SplitParamConstrained",0,0,0,0,varname,catname,0,0,0,rsname) ; }
372 RooCmdArg SplitParamConstrained(const RooRealVar& var, const RooAbsCategory& cat, const char* rsname) { return RooCmdArg("SplitParamConstrained",0,0,0,0,var.GetName(),cat.GetName(),0,0,0,rsname) ; }
373 RooCmdArg Restrict(const char* catName, const char* stateNameList) { return RooCmdArg("Restrict",0,0,0,0,catName,stateNameList,0,0) ; }
374
375 // RooAbsPdf::createCdf() arguments
376 RooCmdArg SupNormSet(const RooArgSet& nset) { return RooCmdArg("SupNormSet",0,0,0,0,0,0,&nset,0) ; }
377 RooCmdArg SupNormSet(RooArgSet && nset) { return SupNormSet(RooCmdArg::take(std::move(nset))); }
378 RooCmdArg ScanParameters(Int_t nbins,Int_t intOrder) { return RooCmdArg("ScanParameters",nbins,intOrder,0,0,0,0,0,0) ; }
379 RooCmdArg ScanNumCdf() { return RooCmdArg("ScanNumCdf",1,0,0,0,0,0,0,0) ; }
380 RooCmdArg ScanAllCdf() { return RooCmdArg("ScanAllCdf",1,0,0,0,0,0,0,0) ; }
381 RooCmdArg ScanNoCdf() { return RooCmdArg("ScanNoCdf",1,0,0,0,0,0,0,0) ; }
382
383
384 RooCmdArg MultiArg(const RooCmdArg& arg1,const RooCmdArg& arg2,const RooCmdArg& arg3,const RooCmdArg& arg4,
385 const RooCmdArg& arg5,const RooCmdArg& arg6,const RooCmdArg& arg7,const RooCmdArg& arg8) {
386 RooCmdArg ret("MultiArg",0,0,0,0,0,0,0,0) ; ret.addArg(arg1) ; ret.addArg(arg2) ;
387 ret.addArg(arg3) ; ret.addArg(arg4) ; ret.addArg(arg5) ; ret.addArg(arg6) ; ret.addArg(arg7) ; ret.addArg(arg8) ;
388 ret.setProcessRecArgs(kTRUE,kFALSE) ; return ret ;
389 }
390
392
393
394} // End namespace RooFit
395
396
397namespace RooFitShortHand {
398
399RooConstVar& C(Double_t value) { return RooFit::RooConst(value) ; }
400
401} // namespace RooFitShortHand
#define c(i)
Definition: RSha256.hxx:101
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
int Int_t
Definition: RtypesCore.h:45
float Size_t
Definition: RtypesCore.h:96
const Bool_t kFALSE
Definition: RtypesCore.h:101
short Width_t
Definition: RtypesCore.h:91
bool Bool_t
Definition: RtypesCore.h:63
double Double_t
Definition: RtypesCore.h:59
short Color_t
Definition: RtypesCore.h:92
short Style_t
Definition: RtypesCore.h:89
const Bool_t kTRUE
Definition: RtypesCore.h:100
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
char name[80]
Definition: TGX11.cxx:110
int type
Definition: TGX11.cxx:121
float xmin
Definition: THbookFile.cxx:95
float ymin
Definition: THbookFile.cxx:95
float xmax
Definition: THbookFile.cxx:95
float type_of_call hi(const int &, const int &)
void(* Func_t)()
Definition: TSystem.h:238
RooAbsBinning is the abstract base class for RooRealVar binning definitions.
Definition: RooAbsBinning.h:26
RooAbsCategory is the base class for objects that represent a discrete value with a finite number of ...
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:79
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:35
RooCategory is an object to represent discrete states.
Definition: RooCategory.h:27
RooCmdArg is a named container for two doubles, two integers two object points and three string point...
Definition: RooCmdArg.h:27
static T const & take(T &&obj)
Definition: RooCmdArg.h:102
void addArg(const RooCmdArg &arg)
Utility function to add nested RooCmdArg to payload of this RooCmdArg.
Definition: RooCmdArg.cxx:196
void setProcessRecArgs(Bool_t flag, Bool_t prefix=kTRUE)
Definition: RooCmdArg.h:40
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:44
RooDataSet is a container class to hold unbinned data.
Definition: RooDataSet.h:36
RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
Definition: RooFitResult.h:40
A RooFormulaVar is a generic implementation of a real-valued object, which takes a RooArgList of serv...
Definition: RooFormulaVar.h:30
RooNumIntConfig holds the configuration parameters of the various numeric integrators used by RooReal...
static RooConstVar & value(Double_t value)
Return a constant value object with given value.
RooRealVar represents a variable that can be changed from the outside.
Definition: RooRealVar.h:39
TH1 is the base class of all histogram classes in ROOT.
Definition: TH1.h:58
virtual const char * GetName() const
Returns name of object.
Definition: TNamed.h:47
Mother of all ROOT objects.
Definition: TObject.h:37
A TTree represents a columnar dataset.
Definition: TTree.h:79
RooCmdArg ScanNoCdf()
RooCmdArg Scaling(Bool_t flag)
RooCmdArg FrameBins(Int_t nbins)
RooCmdArg NoRecursion(Bool_t flag=kTRUE)
RooCmdArg TLatexStyle(Bool_t flag=kTRUE)
RooCmdArg ClassName(const char *name)
RooCmdArg Binned(Bool_t flag=kTRUE)
RooCmdArg FitModel(RooAbsPdf &pdf)
RooCmdArg RecycleConflictNodes(Bool_t flag=kTRUE)
RooCmdArg IntegratedObservables(const RooArgSet &intObs)
RooCmdArg OutputStream(std::ostream &os)
RooCmdArg Topic(Int_t topic)
RooCmdArg Embedded(Bool_t flag=kTRUE)
RooCmdArg ShowConstants(Bool_t flag=kTRUE)
RooCmdArg Parameters(const RooArgSet &params)
RooCmdArg NumIntConfig(const RooNumIntConfig &cfg)
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 ScanParameters(Int_t nbins, Int_t intOrder)
RooCmdArg Label(const char *str)
RooCmdArg NormSet(const RooArgSet &nset)
RooCmdArg TagName(const char *name)
RooCmdArg AutoSymBinning(Int_t nbins=100, Double_t marginFactor=0.1)
RooCmdArg BaseClassName(const char *name)
RooCmdArg Restrict(const char *catName, const char *stateNameList)
RooCmdArg FrameRange(Double_t xlo, Double_t xhi)
RooCmdArg YVar(const RooAbsRealLValue &var, const RooCmdArg &arg=RooCmdArg::none())
RooCmdArg IntrinsicBinning(Bool_t flag=kTRUE)
RooCmdArg RenameAllVariables(const char *suffix)
RooCmdArg ZVar(const RooAbsRealLValue &var, const RooCmdArg &arg=RooCmdArg::none())
RooCmdArg FitGauss(Bool_t flag=kTRUE)
RooCmdArg RenameConflictNodes(const char *suffix, Bool_t renameOrigNodes=kFALSE)
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 Prefix(Bool_t flag)
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 Layout(Double_t xmin, Double_t xmax=0.99, Double_t ymin=0.95)
RooCmdArg SelectVars(const RooArgSet &vars)
RooCmdArg Silence(Bool_t flag=kTRUE)
RooCmdArg LatexTableStyle(Bool_t flag=kTRUE)
RooConstVar & RooConst(Double_t val)
RooCmdArg RenameAllVariablesExcept(const char *suffix, const char *exceptionList)
RooCmdArg VerbatimName(Bool_t flag=kTRUE)
RooCmdArg Columns(Int_t ncol)
RooCmdArg EventRange(Int_t nStart, Int_t nStop)
RooCmdArg ScanAllCdf()
RooCmdArg ObjectName(const char *name)
RooCmdArg AutoSymRange(const RooAbsData &data, Double_t marginFactor=0.1)
RooCmdArg AxisLabel(const char *name)
RooCmdArg Sibling(const RooAbsCollection &sibling)
RooCmdArg Conditional(const RooArgSet &pdfSet, const RooArgSet &depSet, Bool_t depsAreCond=kFALSE)
RooCmdArg SplitParamConstrained(const char *varname, const char *catname, const char *rsname)
RooCmdArg AutoRange(const RooAbsData &data, Double_t marginFactor=0.1)
RooCmdArg What(const char *str)
RooCmdArg ScanNumCdf()
RooCmdArg AutoBinning(Int_t nbins=100, Double_t marginFactor=0.1)
RooCmdArg Bins(Int_t nbin)
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 OutputFile(const char *fileName)
RooCmdArg LatexStyle(Bool_t flag=kTRUE)
RooCmdArg WeightVar(const char *name, Bool_t reinterpretAsWeight=kFALSE)
RooCmdArg OwnLinked()
RooCmdArg ImportFromFile(const char *fname, const char *tname)
RooCmdArg StoreAsymError(const RooArgSet &aset)
RooCmdArg Index(RooCategory &icat)
RooCmdArg Weight(Double_t wgt)
RooCmdArg StoreError(const RooArgSet &aset)
RooCmdArg Link(const char *state, RooAbsData &data)
RooCmdArg Import(const char *state, TH1 &histo)
RooCmdArg IntegrateBins(double precision)
Integrate the PDF over bins. Improves accuracy for binned fits. Switch off using 0....
RooCmdArg EvalErrorWall(Bool_t flag)
RooCmdArg Constrain(const RooArgSet &params)
RooCmdArg GlobalObservablesTag(const char *tagName)
RooCmdArg Strategy(Int_t code)
RooCmdArg Warnings(Bool_t flag=kTRUE)
RooCmdArg Integrate(Bool_t flag)
RooCmdArg SumW2Error(Bool_t flag)
RooCmdArg Extended(Bool_t flag=kTRUE)
RooCmdArg GlobalObservablesSource(const char *sourceName)
RooCmdArg SumCoefRange(const char *rangeName)
RooCmdArg SplitRange(Bool_t flag=kTRUE)
RooCmdArg PrintEvalErrors(Int_t numErrors)
RooCmdArg Optimize(Int_t flag=2)
RooCmdArg Hesse(Bool_t flag=kTRUE)
RooCmdArg InitialHesse(Bool_t flag=kTRUE)
RooCmdArg ExternalConstraints(const RooArgSet &constraintPdfs)
RooCmdArg CloneData(Bool_t flag)
RooCmdArg Save(Bool_t flag=kTRUE)
RooCmdArg PrintLevel(Int_t code)
RooCmdArg FitOptions(const char *opts)
RooCmdArg NumCPU(Int_t nCPU, Int_t interleave=0)
RooCmdArg DataError(Int_t)
RooCmdArg RecoverFromUndefinedRegions(double strength)
When parameters are chosen such that a PDF is undefined, try to indicate to the minimiser how to leav...
RooCmdArg BatchMode(std::string const &batchMode="cpu")
RooCmdArg Verbose(Bool_t flag=kTRUE)
RooCmdArg Timer(Bool_t flag=kTRUE)
RooCmdArg PrefitDataFraction(Double_t data_ratio=0.0)
RooCmdArg AsymptoticError(Bool_t flag)
RooCmdArg Offset(Bool_t flag=kTRUE)
RooCmdArg Minimizer(const char *type, const char *alg=0)
RooCmdArg Minos(Bool_t flag=kTRUE)
RooCmdArg ProtoData(const RooDataSet &protoData, Bool_t randomizeOrder=kFALSE, Bool_t resample=kFALSE)
RooCmdArg Asimov(Bool_t flag=kTRUE)
RooCmdArg AllBinned()
RooCmdArg AutoBinned(Bool_t flag=kTRUE)
RooCmdArg NumEvents(Int_t numEvents)
RooCmdArg GenBinned(const char *tag)
RooCmdArg ExpectedData(Bool_t flag=kTRUE)
RooCmdArg VisualizeError(const RooDataSet &paramData, Double_t Z=1)
RooCmdArg RefreshNorm()
RooCmdArg ProjWData(const RooAbsData &projData, Bool_t binData=kFALSE)
RooCmdArg ProjectionRange(const char *rangeName)
RooCmdArg MarkerColor(Color_t color)
RooCmdArg Binning(const RooAbsBinning &binning)
RooCmdArg NormRange(const char *rangeNameList)
RooCmdArg ShowProgress()
RooCmdArg DrawOption(const char *opt)
RooCmdArg Project(const RooArgSet &projSet)
RooCmdArg FillStyle(Style_t style)
RooCmdArg EvalErrorValue(Double_t value)
RooCmdArg FillColor(Color_t color)
RooCmdArg Rescale(Double_t factor)
RooCmdArg Invisible(bool inv=true)
RooCmdArg MarkerStyle(Style_t style)
RooCmdArg LineWidth(Width_t width)
RooCmdArg Components(const RooArgSet &compSet)
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 MoveToBack()
RooCmdArg MarkerSize(Size_t size)
RooCmdArg Precision(Double_t prec)
RooCmdArg Cut(const char *cutSpec)
RooCmdArg Range(const char *rangeName, Bool_t adjustNorm=kTRUE)
RooCmdArg LineColor(Color_t color)
RooCmdArg XErrorSize(Double_t width)
RooCmdArg Normalization(Double_t scaleFactor)
RooCmdArg Efficiency(const RooCategory &cat)
RooCmdArg Name(const char *name)
RooCmdArg LineStyle(Style_t style)
RooCmdArg VLines()
RooCmdArg Asymmetry(const RooCategory &cat)
RooConstVar & C(Double_t value)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Definition: Job.h:19
RooCmdArg BootStrapData(const RooDataSet &dset)
RooCmdArg ShowUnit(Bool_t flag)
RooCmdArg ShowValue(Bool_t flag)
RooCmdArg ShowName(Bool_t flag)
RooCmdArg ShowError(Bool_t flag)
RooCmdArg ShowAsymError(Bool_t flag)
Definition: tree.py:1
void inv(rsa_NUMBER *, rsa_NUMBER *, rsa_NUMBER *)
Definition: rsaaux.cxx:949
static const char * what
Definition: stlLoader.cc:6
Wrap an object into a TObject. Sometimes needed to avoid reinterpret_cast or enable RTTI.
Definition: RooHelpers.h:65
TCanvas * style()
Definition: style.C:1