Dear experts,
Apologies in advance for the duplicate (Analytical integrals for many observables in RooClassFactory::makePdf), but it seems that this thread has not been solved yet. Basically I’m trying to provide the analytical integral of a given PDF which depends on two variables. However, I find a segmentation fault when I try to do it:
Info in <TUnixSystem::ACLiC>: creating shared library /home/hep/rsilvaco/Analysis/Studies/PIDCalibMoM/RooCombLegPdf_cxx.so
In file included from input_line_12:9:
/home/hep/rsilvaco/Analysis/Studies/PIDCalibMoM/RooCombLegPdf.cxx:66:57: warning: expression result unused [-Wunused-value]
if (code==1) { return (0.5*pow(x.max(rangeName),2)*y - 0.5*pow(x.min(rangeName),2)*y,y:0.5*x*pow(y.max(rangeName),2) - 0.5*x*pow(y.min(rangeName),2)) ; }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/hep/rsilvaco/Analysis/Studies/PIDCalibMoM/RooCombLegPdf.cxx:66:90: error: expected ')'
if (code==1) { return (0.5*pow(x.max(rangeName),2)*y - 0.5*pow(x.min(rangeName),2)*y,y:0.5*x*pow(y.max(rangeName),2) - 0.5*x*pow(y.min(rangeName),2)) ; }
^
/home/hep/rsilvaco/Analysis/Studies/PIDCalibMoM/RooCombLegPdf.cxx:66:26: note: to match this '('
if (code==1) { return (0.5*pow(x.max(rangeName),2)*y - 0.5*pow(x.min(rangeName),2)*y,y:0.5*x*pow(y.max(rangeName),2) - 0.5*x*pow(y.min(rangeName),2)) ; }
^
Error in <ACLiC>: Dictionary generation failed!
*** Break *** segmentation violation
Any suggestion on how to solve this? Or there is any bug in the code itself? Thanks in advance for any insight!
Cheers, Rafael
scriptROOTForum_integral_simplest.py (1.51 KB)