42{
   46  
   51 
   54  JLimit_t&                      numberOfEvents = inputFile.getLimit();
 
   55  string                         detectorFile;
   56  JCalibration_t                 calibrationFile;
   57  double                         Tmax_s;
   60  size_t                         threads; 
   61 
   62  try { 
   63 
   64    JParser<> zap(
"Program to perform position pre-fit of shower to data.");
 
   65    
   75    
   76    zap(argc, argv);
   77  }
   78  catch(const exception& error) {
   79    FATAL(error.what() << endl);
 
   80  }
   81  
   82 
   84 
   86 
   87  try {
   89  }
   92  }
   93 
   94  unique_ptr<JDynamics> dynamics;
   95 
   96  if (!calibrationFile.empty()) {
   97    try {
   98    
  100    
  101      dynamics->load(calibrationFile);
  102    }
  103    catch(const exception& error) {
  105    }
  106  }
  107  
  109 
  111  
  114 
  116 
  117  {
  118 
  120  
  121    while (in.hasNext()) {
  122 
  123      STATUS(
"event: " << setw(10) << in.getCounter() << 
'\r'); 
DEBUG(endl);
 
  124 
  126 
  127      if (dynamics) {
  128 
  129        dynamics->update(*tev);
  130 
  131      }
  132 
  133      auto input = fit.getInput(router, *tev, dynamics ? dynamics->getCoverage() : 
coverage_type());
 
  134 
  135      if (threads > 0)
  136        fits.enqueue(input);
  137      else
  139      
  141    }
  143  }
  144  
  146 
  148 
  150}
#define DEBUG(A)
Message macros.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Router for direct addressing of module data in detector data structure.
 
Data structure for set of track fit results.
 
Utility class to parse command line options.
 
Thread pool for event-by-event reconstruction.
 
class to handle first step of the shower reconstruction in ORCA: it reconstructs the shower vertex,...
 
void setSplitLevel(int value)
Set split level.
 
General purpose class for object reading from a list of file names.
 
Object reading from a list of files.
 
Template definition for direct access of elements in ROOT TChain.
 
JTriggerCounter_t next()
Increment trigger counter.
 
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
JTreeParameters & getTreeParameters()
Template definition for method returning TTree parameters.
 
KM3NeT DAQ data structures and auxiliaries.
 
Dynamic detector calibration.
 
Data structure for coverage of detector by dynamical calibrations.
 
Auxiliary class for recursive type list generation.
 
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
 
Data structure for fit parameters.
 
Auxiliary class for defining the range of iterations of objects.
 
static counter_type max()
Get maximum counter value.