35 int main(
int argc,
char **argv)
41 JLimit_t& numberOfEvents = inputFile.getLimit();
46 JParser<> zap(
"Example application to print acoustics event.");
48 zap[
'f'] =
make_field(inputFile,
"output of JAcousticEventBuilder[.sh]");
49 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
54 catch(
const exception &error) {
55 FATAL(error.what() << endl);
69 for (JEvent::const_iterator hit = evt->begin(); hit != evt->end(); ++hit) {
70 buffer[hit->getID()].push_back(*hit);
73 size_t duplicates = 0;
79 if (ps->second.size() >= 2u) {
89 cout << setw (8) << i->getRunNumber() <<
' '
90 << setw (2) << evt->
getID() <<
' '
91 << setw (10) << i->getID() <<
' '
92 <<
FIXED(10,0) << i->getQ() <<
' '
93 <<
FIXED(15,6) << i->getToA() <<
' ';
99 if (i->getQ() ==
j->getQ()) {
105 cout << (
n == 0 ?
"" :
"*") << endl;
115 for (
const auto& Q : { Q0, Q1 }) {
116 if (Q.getCount() > 0) {
ROOT TTree parameter settings.
Recording of objects on file according a format that follows from the file name extension.
General purpose messaging.
#define DEBUG(A)
Message macros.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
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.
double getQ(const double D_m, const double f_kHz, const double d_m)
Get relative quality for given frequency at given distance.
JComparator< JResult_t T::*, JComparison::lt > make_comparator(JResult_t T::*member)
Helper method to create comparator between values of data member.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for floating point format specification.
int getID() const
Get emitter identifier.
Auxiliary class for defining the range of iterations of objects.