Store fit result in nutple for each fit event per event

Hi all,

I am doing a kinematic fit for, and I need to store the fit result for each fit (event per event ) in nutple to use it before to compute some variables after the fit.

Can some one help me we some function or some tutorial.

Thank in advance
Cheers,

Hi,

a solution could be something like this tutorial. Here you could replace the lambda creating the random number with a function that perfoms your fit and returns the result you need to store in an ntuple. You can then write it on disk and re-open the dataset like it is shown here.

Cheers,
D

Hi,

Thank you so mush

Cheers,

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.