40{
   44 
   46  
   48  typedef JParallelFileScanner_t::multi_pointer_type               multi_pointer_type;
   49 
   50  JParallelFileScanner_t          inputFile;
   51  size_t                          numberOfEvents;
   53  int                             application;
   56 
   57 
   58  try { 
   59 
   60    JParser<> zap(
"Program to extract events.");
 
   61    
   62    zap[
'f'] = 
make_field(inputFile,      
"input file (output of JXXXReconstruction.sh)");
 
   63    zap[
'n'] = 
make_field(numberOfEvents, 
"maximum number of selected events")
 
   64      = std::numeric_limits<size_t>::max();
   66      = "extract.root";
   72      = 1;
   73    
   74    zap(argc, argv);
   75  }
   76  catch(const exception& error) {
   77    FATAL(error.what() << endl);
 
   78  }
   79 
   80 
   83    
   84 
   85  
   86 
   87  size_t N = 0;
   88 
   89  for (
JTreeScanner<Evt> mc(inputFile); inputFile.hasNext() && N < numberOfEvents; ) {
 
   90 
   91    cout << "\revent: " << setw(8) << inputFile.getCounter() << flush;
   92 
   93    multi_pointer_type ps = inputFile.next();
   94 
   98 
  100 
  101    if (in->empty()) { continue; }
  102 
  104 
  105    if (mc.getEntries() != 0) {
  107    }
  108    
  109    if (!event_selector(*tev, *in, event)) {
  110      continue;
  111    }
  112 
  115 
  116    ++N;
  117  }
  118 
  119  
  120  
  121 
  124 
  127 
  129 
  130  
  131  
  132 
  134 
  136 
  138 
  139  return 0;
  140}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
void createUUID()
Create UUID if not already set.
 
Data structure for set of track fit results.
 
Utility class to parse command line options.
 
General purpose class for object reading from a list of file names.
 
General purpose class for parallel reading of objects from a single file or multiple files.
 
Template definition for direct access of elements in ROOT TChain.
 
JTriggerCounter_t getCounter() const
Get trigger counter.
 
void copy(const Head &from, JHead &to)
Copy header from from to to.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
bool qualitySorter(const JFit &first, const JFit &second)
Comparison of fit results.
 
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header.
 
KM3NeT DAQ data structures and auxiliaries.
 
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
 
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
 
Auxiliary class to test history.
 
Auxiliary class for recursive type list generation.
 
Empty structure for specification of parser element that is initialised (i.e. does not require input)...