Recently, I have been trying to fit some data using a TF2 integral, now the TF2 function itself is a projection from a TF3 function. I am attaching the code here for reference.
The issue is that it gives me segmentation fault and I think it’s because of a memory issue, because I have used TFClass too many times. Please help me find a fix.
Dear Rutik,
please find attached a working version of your macro with several corrections.
Main modification is in the TF3Projector class for functions with parameters.
Also, the number of parameters of your function is 5, not 4. BWModified_Proton1.C (4.2 KB)