36 inline Double_t g3(
const Double_t x,
40 return (TMath::Gaus(x, 0.0, 1.0, kTRUE) *
41 TMath::Gaus(y, 0.0, 1.0, kTRUE) *
42 TMath::Gaus(z, 0.0, 1.0, kTRUE));
53int main(
int argc,
char **argv)
76 catch(
const exception &error) {
81 if (numberOfEvents <= 0) {
105 for (
int i = 0; i != numberOfEvents; ++i) {
111 const double x =
gRandom->Gaus(0.0, 1.0);
112 const double y =
gRandom->Gaus(0.0, 1.0);
113 const double z =
gRandom->Gaus(0.0, 1.0);
114 const double w = 1.0;
127 JLANG::store<JIO::JFileStreamWriter>(
outputFile.c_str(), pdf);
135 if (inputFile !=
"") {
139 JLANG::load<JIO::JFileStreamReader>(inputFile.c_str(), pdf);
143 for (
int i = 0; i != numberOfEvents; ++i) {
145 const double x =
gRandom->Gaus(0.0, 1.0);
146 const double y =
gRandom->Gaus(0.0, 1.0);
147 const double z =
gRandom->Gaus(0.0, 1.0);
151 const double u =
g3 (x, y, z);
152 const double v = pdf(x, y, z);
156 catch(
const std::exception& error) {}
163 cout <<
"normalisation " <<
FIXED(5,3) << getIntegral(
static_cast<const JMultiFunction_t&
>(pdf)) <<
endl;
General purpose messaging.
#define DEBUG(A)
Message macros.
General methods for loading and storing a single object from and to a file, respectively.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
Auxiliary classes for numerical integration.
int numberOfBins
number of bins for average CDF integral of optical module
virtual const char * what() const override
Get error message.
Template definition of a multi-dimensional oscillation probability interpolation table.
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.