Skip to content

Commit 2fea72b

Browse files
authored
Merge pull request #94 from dbrundu/develop-hydra3
Added simFCN description in CHANGELOG
2 parents 9079a8d + 226de93 commit 2fea72b

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,28 @@ The filling functions can be called also with a specific backend policy and with
165165

166166
#### Data fitting
167167

168-
1. Adding support to simultaneous fit.
168+
1. Added support to simultaneous fit. A new specialization of the FCN class has been developed in order to load information from a generic number of already existing instances of `Estimators` (for example `loglikelihoodFCN` instances) and dispatch, in parallel, the evaluation of each pdfs over their corresponding datasets. Thus, to perform the simultaneous fit, no categorization of the dataset is needed, but just to set up preliminarly the different FCNs, and subsequentally build up the simultaneous FCN object. The latter procedure can be done in a generic and simple way by calling the convenience function `hydra::make_simultaneous_fcn(...)`, as shown in the following snippet. Moreover, the generic interface allows to build up a simultaneous FCN object by composing usual FCNs and simultaneous FCNs. An example of such new method can be found in `examples/fit/simultaneous_fit.inl`.
169+
170+
```cpp
171+
...
172+
#include <hydra/LogLikelihoodFCN.h>
173+
...
174+
175+
int main(int argv, char** argc)
176+
{
177+
...
178+
auto xfcn = hydra::make_loglikehood_fcn(xmodel, xrange);
179+
auto yfcn = hydra::make_loglikehood_fcn(ymodel, yrange);
180+
auto zfcn = hydra::make_loglikehood_fcn(zmodel, zrange);
181+
182+
auto sim_fcn1 = hydra::make_simultaneous_fcn(xfcn, yfcn);
183+
auto sim_fcn2 = hydra::make_simultaneous_fcn(xfcn, yfcn, zfcn);
184+
auto sim_fcn = hydra::make_simultaneous_fcn(sim_fcn1, sim_fcn2);
185+
186+
...
187+
}
188+
```
189+
169190
2. Fitting of convoluted PDFs.
170191

171192
#### General

0 commit comments

Comments
 (0)