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 "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 23 of file examples/JDetector/JModule.cc.
   35     JParser<> zap(
"Example for determination of center of optical module.");
 
   37     zap[
'e'] = 
make_field(precision, 
"precision of fit comparison and centering")  = 
pair_type(1.0e-12, 1.0e-4);
 
   42   catch(
const exception &error) {
 
   43     FATAL(error.what() << endl);
 
   46   const JModule              module   = getModule<JKM3NeT_t>(1001);
 
   50   DEBUG(
"position " << position << endl);
 
   51   DEBUG(
"center   " << center   << endl);
 
   53   ASSERT(center.equals(position, precision.first));
 
Utility class to parse command line options. 
 
JCombinatorics::pair_type pair_type
 
Data structure for a composite optical module. 
 
#define ASSERT(A,...)
Assert macro. 
 
Data structure for vector in three dimensions. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
 
Data structure for position in three dimensions. 
 
Linear fit of crossing point (position) between axes (objects with position and direction).