25int main(
int argc,
char**argv)
30 const double xmin = -10.0;
31 const double xmax = +10.0;
35 unsigned int numberOfEvents;
42 JParser<> zap(
"Example program to test Legendre polynome.");
51 catch(
const exception &error) {
52 FATAL(error.what() << endl);
60 STATUS(
"function: " << *i << endl);
68 const double x = xmin + i * (xmax - xmin) / (
numberOfBins - 1);
76 <<
FIXED(7,3) << i->first <<
" "
78 << 360.0 * acos(i->second.getA()) / PI << endl);
86 for (
size_t n = 0; n != N + 1; ++n) {
88 STATUS(
"Legendre: " << setw(2) << n <<
' ' <<
g1[n]);
98 if (numberOfEvents > 0) {
102 for (
unsigned int i = 0; i != numberOfEvents; ++i) {
104 const double x = gRandom->Uniform(xmin, xmax);
108 Q.
put(getAngle(y,z));
int main(int argc, char **argv)
Auxiliary methods for mathematics.
General purpose messaging.
#define DEBUG(A)
Message macros.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Double_t g1(const Double_t x)
Function.
int numberOfBins
number of bins for average CDF integral of optical module
Data structure for unit quaternion in three dimensions.
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.
Base class for Legendre polynome.
std::vector< JOrdinate_t >::iterator iterator
Template definition for function evaluation of Legendre polynome.