30 int main(
int argc,
char **argv)
34 using namespace KM3NETDAQ;
44 JParser<> zap(
"Example program to filter out-of-time hits in Evt data.");
48 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
54 catch(
const exception& error) {
55 FATAL(error.what() << endl);
67 long long int number_of_hits[] = { 0, 0 };
69 while (inputFile.hasNext()) {
71 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
73 Evt* evt = inputFile.next();
75 number_of_hits[0] += evt->
mc_hits.size();
77 double t0 = numeric_limits<double>::max();
91 iter_swap(hit, --__end);
102 cout <<
"Number of hits processed/removed " << number_of_hits[0] <<
"/" << number_of_hits[1] << endl;
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
Recording of objects on file according a format that follows from the file name extension.
double getTime(const Hit &hit)
Get true time of hit.
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header.
Auxiliary class for defining the range of iterations of objects.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
double getFrameTime()
Get frame time duration.
General purpose messaging.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
General purpose class for object reading from a list of file names.
Utility class to parse command line options.
std::vector< Hit > mc_hits
MC: list of MC truth hits.
const JLimit & getLimit() const
Get limit.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
#define DEBUG(A)
Message macros.