Fixing parameters

Dear All,

I want to fix mass of particle to 3.097 and vary background by 0.1.
In doubt of where to put fixing parameters in code. No know how or where to include this FixParameter.
mass plots and continuum background.cpp (5.5 KB)


You have it in the right place. You just need to use:

fit2->FixParameter(fit2->GetParNumber("Mean_Gaus"), 3.097);

or simply:

fit2->FixParameter(1, 3.097); // 1 = "Mean_Gaus"

Great idea, Thank you.