Geant4 Cross Reference |
1 /* 1 /* 2 # <<BEGIN-copyright>> 2 # <<BEGIN-copyright>> 3 # <<END-copyright>> 3 # <<END-copyright>> 4 */ 4 */ 5 5 6 #ifndef nf_integration_h_included 6 #ifndef nf_integration_h_included 7 #define nf_integration_h_included 7 #define nf_integration_h_included 8 8 9 #include <nf_utilities.h> 9 #include <nf_utilities.h> 10 #include <nf_Legendre.h> 10 #include <nf_Legendre.h> 11 11 12 #if defined __cplusplus 12 #if defined __cplusplus 13 extern "C" { 13 extern "C" { 14 namespace GIDI { 14 namespace GIDI { 15 #endif 15 #endif 16 16 17 #define nf_GnG_adaptiveQuadrature_MaxMaxDepth 17 #define nf_GnG_adaptiveQuadrature_MaxMaxDepth 20 18 18 19 typedef nfu_status (*nf_GnG_adaptiveQuadrature 19 typedef nfu_status (*nf_GnG_adaptiveQuadrature_callback)( nf_Legendre_GaussianQuadrature_callback integrandFunction, void *argList, double x1, 20 double x2, double *integral ); 20 double x2, double *integral ); 21 21 22 nfu_status nf_GnG_adaptiveQuadrature( nf_GnG_a 22 nfu_status nf_GnG_adaptiveQuadrature( nf_GnG_adaptiveQuadrature_callback quadratureFunction, nf_Legendre_GaussianQuadrature_callback integrandFunction, 23 void *argList, double x1, double x2, int m 23 void *argList, double x1, double x2, int maxDepth, double tolerance, double *integral, long *evaluations ); 24 24 25 #if defined __cplusplus 25 #if defined __cplusplus 26 } 26 } 27 } 27 } 28 #endif 28 #endif 29 29 30 #endif /* End of nf_integration_h_inc 30 #endif /* End of nf_integration_h_included. */ 31 31 32 32