23int main(
int argc,
char **argv)
32 JParser<> zap(
"Example program to test 3D integration of sphere.");
39 catch(
const exception &error) {
40 FATAL(error.what() << endl);
57 const double xmin = -R * 1.05;
58 const double xmax = +R * 1.05;
61 for (
double x = xmin; x < xmax + 0.5*dx; x += dx) {
62 for (
double y = xmin; y < xmax + 0.5*dx; y += dx) {
64 const double z = R*R - x*x - y*y;
79 cout <<
"Volume (real) " <<
SCIENTIFIC(12,4) << 4.0*PI*R*R*R/3.0 << endl;
80 cout <<
"Volume (calc) " <<
SCIENTIFIC(12,4) << getIntegral(gb) - getIntegral(ga) << endl;
Various implementations of functional maps.
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
int numberOfBins
number of bins for average CDF integral of optical module
int main(int argc, char **argv)
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for floating point format specification.