29 int main(
int argc, 
char**argv)
 
   41     JParser<> zap(
"Example program to test JOmega2D class.");
 
   50   catch(
const exception &error) {
 
   51     FATAL(error.what() << endl);
 
   65   for (
int i = 1; i <= h0.GetNbinsX(); ++i) {
 
   67     const Double_t 
x = h0.GetBinCenter(i);
 
   74   for (
int i = 0; i != numberOfEvents; ++i) {
 
   76     STATUS(
"event: " << setw(10) << i << 
'\r'); 
DEBUG(endl);
 
   78     const double   phi   = gRandom->Uniform(0.0, 2*
PI);
 
   82     for (
size_t j = 0; 
j != omega.size(); ++
j) {
 
   84       const int      pos = omega[
j].find(angle);
 
   85       const double   dot = angle.
getDot(omega[
j][pos]);
 
   87       quantile[
j].put(acos(dot) * 180.0/
PI); 
 
   93   for (
int i = 1; i <= h0.GetNbinsX(); ++i) {
 
   94     h0.SetBinContent(i, omega   [i-1].size());
 
   95     h1.SetBinContent(i, quantile[i-1].getSTDev());
 
   96     h2.SetBinContent(i, quantile[i-1].getDeviation());
 
  103     out << h0 << h1 << h2;
 
  109   for (
int i = 1; i <= h2.GetNbinsX(); ++i) {
 
  111     const Double_t 
x = h2.GetBinCenter (i);
 
  112     const Double_t 
y = h2.GetBinContent(i);
 
  114     NOTICE(
"Grid test " << 
x << 
" [deg]: " << 
y << 
" [deg]." << endl); 
 
General purpose messaging.
 
#define DEBUG(A)
Message macros.
 
#define ASSERT(A,...)
Assert macro.
 
int main(int argc, char **argv)
 
Utility class to parse command line options.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Auxiliary class to define a range between two values.
 
Data structure for angle in two dimensions.
 
double getDot(const JAngle2D &angle) const
Get dot product.
 
Direction set covering (part of) circle.
 
Utility class to parse command line options.
 
static const double PI
Mathematical constants.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).