31{
   35 
   37  JFileRecorder       <JTYPELIST<JAAnetTypes_t, JMetaTypes_t>::typelist> 
outputFile;
 
   38  JLimit_t&  numberOfEvents = inputFile.getLimit();
 
   39  double     T_ns;
   41 
   42  try {
   43 
   44    JParser<> zap(
"Example program to filter out-of-time hits in Evt data.");
 
   45 
   51 
   52    zap(argc, argv);
   53  }
   54  catch(const exception& error) {
   55    FATAL(error.what() << endl);
 
   56  }
   57 
   59 
   62  }
   63 
   66 
   67  long long int number_of_hits[] = { 0, 0 };
   68  
   70 
   72 
   74 
   75    number_of_hits[0] += evt->
mc_hits.size();
 
   76 
   77    double t0  = numeric_limits<double>::max();
   78 
   82      }
   83    }
   84 
   86 
   89        ++hit;
   90      else
   91        iter_swap(hit, --__end);
   92    }
   93 
   95 
   97 
   99  }
  101 
  102  cout << "Number of hits processed/removed " << number_of_hits[0] << "/" << number_of_hits[1] << endl;
  103 
  105 
  107 
  109}
#define DEBUG(A)
Message macros.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
 
Utility class to parse command line options.
 
General purpose class for object reading from a list of file names.
 
virtual bool hasNext() override
Check availability of next element.
 
counter_type getCounter() const
Get counter.
 
virtual const pointer_type & next() override
Get next element.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header.
 
const char * getTime()
Get current local time conform ISO-8601 standard.
 
KM3NeT DAQ data structures and auxiliaries.
 
double getFrameTime()
Get frame time duration.
 
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
 
std::vector< Hit > mc_hits
MC: list of MC truth hits.
 
Auxiliary class for defining the range of iterations of objects.
 
static counter_type max()
Get maximum counter value.