Home | News | Documentation | Download

How to minimize by minimization class

Please read tips for efficient and successful posting and posting code

Hi, I have an input file(including data points, theory value and the error of data points) to calculate chi-square. I want to minimize the chi-square by using a free parameter of data points. How can I use minimization class in root to fid this free parameter.

Thanks in advance

@moneta could you please take a look? Thank you in advance!

Sorry, I couldn’t find my answer.

Thanks ,
myntupme.C (4.5 KB)

The error is
Error: Function KinematicFit(minimizer,ds3nc,eds,ds) is not defined in current scope myntupme.C:174:

taking a quick look it seems that KinematicFit accepts 4 pointers as arguments but the last 3 arguments that you are passing at line 174 are doubles, not double pointers. Could that be the problem?

In any case I’m afraid this looks like a bug in your code :confused:

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