@@ -67,7 +67,7 @@ class ModelConfig final : public TNamed, public RooWorkspaceHandle {
67
67
// / Set a workspace that owns all the necessary components for the analysis.
68
68
void SetWS (RooWorkspace &ws) override ;
69
69
// // alias for SetWS(...)
70
- virtual void SetWorkspace (RooWorkspace &ws) { SetWS (ws); }
70
+ void SetWorkspace (RooWorkspace &ws) { SetWS (ws); }
71
71
72
72
// / Remove the existing reference to a workspace and replace it with this new one.
73
73
void ReplaceWS (RooWorkspace *ws) override
@@ -77,28 +77,28 @@ class ModelConfig final : public TNamed, public RooWorkspaceHandle {
77
77
}
78
78
79
79
// / Set the proto DataSet, add to the workspace if not already there
80
- virtual void SetProtoData (RooAbsData &data)
80
+ void SetProtoData (RooAbsData &data)
81
81
{
82
82
ImportDataInWS (data);
83
83
SetProtoData (data.GetName ());
84
84
}
85
85
86
86
// / Set the Pdf, add to the workspace if not already there
87
- virtual void SetPdf (const RooAbsPdf &pdf)
87
+ void SetPdf (const RooAbsPdf &pdf)
88
88
{
89
89
ImportPdfInWS (pdf);
90
90
SetPdf (pdf.GetName ());
91
91
}
92
92
93
93
// / Set the Prior Pdf, add to the workspace if not already there
94
- virtual void SetPriorPdf (const RooAbsPdf &pdf)
94
+ void SetPriorPdf (const RooAbsPdf &pdf)
95
95
{
96
96
ImportPdfInWS (pdf);
97
97
SetPriorPdf (pdf.GetName ());
98
98
}
99
99
100
100
// / Specify parameters of the PDF.
101
- virtual void SetParameters (const RooArgSet &set)
101
+ void SetParameters (const RooArgSet &set)
102
102
{
103
103
if (!SetHasOnlyParameters (set, " ModelConfig::SetParameters" ))
104
104
return ;
@@ -107,7 +107,7 @@ class ModelConfig final : public TNamed, public RooWorkspaceHandle {
107
107
}
108
108
109
109
// / Specify parameters of interest.
110
- virtual void SetParametersOfInterest (const RooArgSet &set)
110
+ void SetParametersOfInterest (const RooArgSet &set)
111
111
{
112
112
if (!SetHasOnlyParameters (set, " ModelConfig::SetParametersOfInterest" ))
113
113
return ;
@@ -116,7 +116,7 @@ class ModelConfig final : public TNamed, public RooWorkspaceHandle {
116
116
117
117
// / Specify parameters
118
118
// / using a list of comma-separated list of arguments already in the workspace.
119
- virtual void SetParameters (const char *argList)
119
+ void SetParameters (const char *argList)
120
120
{
121
121
if (!GetWS ())
122
122
return ;
@@ -125,10 +125,10 @@ class ModelConfig final : public TNamed, public RooWorkspaceHandle {
125
125
126
126
// / Specify parameters of interest
127
127
// / using a comma-separated list of arguments already in the workspace.
128
- virtual void SetParametersOfInterest (const char *argList) { SetParameters (argList); }
128
+ void SetParametersOfInterest (const char *argList) { SetParameters (argList); }
129
129
130
130
// / Specify the nuisance parameters (parameters that are not POI).
131
- virtual void SetNuisanceParameters (const RooArgSet &set)
131
+ void SetNuisanceParameters (const RooArgSet &set)
132
132
{
133
133
if (!SetHasOnlyParameters (set, " ModelConfig::SetNuisanceParameters" ))
134
134
return ;
@@ -138,15 +138,15 @@ class ModelConfig final : public TNamed, public RooWorkspaceHandle {
138
138
139
139
// / Specify the nuisance parameters
140
140
// / using a comma-separated list of arguments already in the workspace.
141
- virtual void SetNuisanceParameters (const char *argList)
141
+ void SetNuisanceParameters (const char *argList)
142
142
{
143
143
if (!GetWS ())
144
144
return ;
145
145
SetNuisanceParameters (GetWS ()->argSet (argList));
146
146
}
147
147
148
148
// / Specify the constraint parameters
149
- virtual void SetConstraintParameters (const RooArgSet &set)
149
+ void SetConstraintParameters (const RooArgSet &set)
150
150
{
151
151
if (!SetHasOnlyParameters (set, " ModelConfig::SetConstrainedParameters" ))
152
152
return ;
@@ -155,15 +155,15 @@ class ModelConfig final : public TNamed, public RooWorkspaceHandle {
155
155
}
156
156
// / Specify the constraint parameters
157
157
// / through a comma-separated list of arguments already in the workspace.
158
- virtual void SetConstraintParameters (const char *argList)
158
+ void SetConstraintParameters (const char *argList)
159
159
{
160
160
if (!GetWS ())
161
161
return ;
162
162
SetConstraintParameters (GetWS ()->argSet (argList));
163
163
}
164
164
165
165
// / Specify the observables.
166
- virtual void SetObservables (const RooArgSet &set)
166
+ void SetObservables (const RooArgSet &set)
167
167
{
168
168
if (!SetHasOnlyParameters (set, " ModelConfig::SetObservables" ))
169
169
return ;
@@ -172,27 +172,27 @@ class ModelConfig final : public TNamed, public RooWorkspaceHandle {
172
172
}
173
173
// / specify the observables
174
174
// / through a comma-separated list of arguments already in the workspace.
175
- virtual void SetObservables (const char *argList)
175
+ void SetObservables (const char *argList)
176
176
{
177
177
if (!GetWS ())
178
178
return ;
179
179
SetObservables (GetWS ()->argSet (argList));
180
180
}
181
181
182
- virtual void SetConditionalObservables (const RooArgSet &set);
182
+ void SetConditionalObservables (const RooArgSet &set);
183
183
// / Specify the conditional observables
184
184
// / through a comma-separated list of arguments already in the workspace.
185
- virtual void SetConditionalObservables (const char *argList)
185
+ void SetConditionalObservables (const char *argList)
186
186
{
187
187
if (!GetWS ())
188
188
return ;
189
189
SetConditionalObservables (GetWS ()->argSet (argList));
190
190
}
191
191
192
- virtual void SetGlobalObservables (const RooArgSet &set);
192
+ void SetGlobalObservables (const RooArgSet &set);
193
193
// / Specify the global observables
194
194
// / through a comma-separated list of arguments already in the workspace.
195
- virtual void SetGlobalObservables (const char *argList)
195
+ void SetGlobalObservables (const char *argList)
196
196
{
197
197
if (!GetWS ())
198
198
return ;
@@ -202,7 +202,7 @@ class ModelConfig final : public TNamed, public RooWorkspaceHandle {
202
202
void SetExternalConstraints (const RooArgSet &set);
203
203
// / Specify the external constraints
204
204
// / through a comma-separated list of arguments already in the workspace.
205
- virtual void SetExternalConstraints (const char *argList)
205
+ void SetExternalConstraints (const char *argList)
206
206
{
207
207
if (!GetWS ())
208
208
return ;
@@ -211,10 +211,10 @@ class ModelConfig final : public TNamed, public RooWorkspaceHandle {
211
211
212
212
// / Set parameter values for a particular hypothesis if using a common PDF
213
213
// / by saving a snapshot in the workspace.
214
- virtual void SetSnapshot (const RooArgSet &set);
214
+ void SetSnapshot (const RooArgSet &set);
215
215
216
216
// / Specify the name of the PDF in the workspace to be used.
217
- virtual void SetPdf (const char *name)
217
+ void SetPdf (const char *name)
218
218
{
219
219
if (!GetWS ())
220
220
return ;
@@ -231,7 +231,7 @@ class ModelConfig final : public TNamed, public RooWorkspaceHandle {
231
231
}
232
232
233
233
// / Specify the name of the PDF in the workspace to be used.
234
- virtual void SetPriorPdf (const char *name)
234
+ void SetPriorPdf (const char *name)
235
235
{
236
236
if (!GetWS ())
237
237
return ;
@@ -248,7 +248,7 @@ class ModelConfig final : public TNamed, public RooWorkspaceHandle {
248
248
}
249
249
250
250
// / Specify the name of the dataset in the workspace to be used.
251
- virtual void SetProtoData (const char *name)
251
+ void SetProtoData (const char *name)
252
252
{
253
253
if (!GetWS ())
254
254
return ;
0 commit comments