26{
   29 
   30  const double xmin = -10.0;
   31  const double xmax = +10.0;
   32 
   34 
   35  unsigned int  numberOfEvents;
   39 
   40  try {
   41 
   42    JParser<> zap(
"Example program to test Legendre polynome.");
 
   43 
   48 
   49    zap(argc, argv);
   50  }
   51  catch(const exception &error) {
   52    FATAL(error.what() << endl);
 
   53  }
   54 
   55 
   57 
   58    i->normalise();
   59 
   60    STATUS(
"function: " << *i << endl);
 
   61  }
   62 
   63 
   65 
   67 
   68    const double x = xmin + i * (xmax - xmin) / (
numberOfBins - 1);
 
   69 
   71  }
   72 
   73 
   76          << 
FIXED(7,3) << i->first  << 
" " 
   77          << i->second               << "; " 
   78          << 360.0 * acos(i->second.getA()) / PI << endl);
   79  }
   80 
   81 
   82  const size_t N = 2;
   83 
   85 
   86  for (
size_t n = 0; 
n != N + 1; ++
n) {
 
   87 
   88    STATUS(
"Legendre: " << setw(2) << n << 
' ' << 
g1[n]);
 
   89 
   90    if (n < f1.size()) {
   92    }
   93 
   95  }
   96 
   97 
   98  if (numberOfEvents > 0) {
   99 
  101 
  102    for (unsigned int i = 0; i != numberOfEvents; ++i) {
  103 
  104      const double        x = gRandom->Uniform(xmin, xmax);
 
  107 
  109    }
  110 
  112  }
  113 
  114  return 0;
  115}
#define DEBUG(A)
Message macros.
 
#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.
 
double getAngle(const JQuaternion3D &first, const JQuaternion3D &second)
Get space angle between quanternions.
 
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.