Example for determination of center of optical module.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <utility>
#include "JDetector/JModule.hh"
#include "JDetector/JDetectorToolkit.hh"
#include "JDetector/JDetectorSupportkit.hh"
#include "JFit/JPoint3DEstimator.hh"
#include "Jeep/JPrint.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example for determination of center of optical module. 
- Author
 - mdejong 
 
Definition in file examples/JDetector/JModule.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 24 of file examples/JDetector/JModule.cc.
   36     JParser<> zap(
"Example for determination of center of optical module.");
 
   38     zap[
'e'] = 
make_field(precision, 
"precision of fit comparison and centering")  = 
pair_type(1.0e-12, 1.0e-4);
 
   43   catch(
const exception &error) {
 
   44     FATAL(error.what() << endl);
 
   47   const JModule              module   = getModule<JKM3NeT_t>(1001);
 
   48   const JEstimator<JPoint3D> position(module.begin(), module.end());
 
   49   const JPosition3D          center   = module.getCenter();
 
   51   DEBUG(
"position " << position << endl);
 
   52   DEBUG(
"center   " << center   << endl);
 
   54   ASSERT(center.equals(position, precision.first));
 
   55   ASSERT(center.equals(JVector3D(0.0, 0.0, 0.0), precision.second));
 
Utility class to parse command line options. 
 
JCombinatorics::pair_type pair_type
 
#define ASSERT(A,...)
Assert macro. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
#define DEBUG(A)
Message macros.