104 JParser<> zap(
"Example program to test acoustic data.");
107 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
114 catch(
const exception &error) {
115 FATAL(error.what() << endl);
123 for (
int counter = 0; inputFile.hasNext(); ++counter) {
125 STATUS(
"counter: " << setw(8) << counter <<
'\r' << flush);
DEBUG(endl);
129 data[parameters->
EMITTERID][parameters->
DOMID].push_back(JToAshort_t(*parameters, counter));
138 buffer_type& buffer = module->second;
140 sort(buffer.begin(), buffer.end());
142 for (buffer_type::const_iterator p = buffer.begin(); p != buffer.end(); ++p) {
143 for (buffer_type::const_iterator q = buffer.begin(); q != p; ++q) {
145 if (labs(p->DOMID - q->DOMID) == 0 &&
146 fabs(p->QUALITYFACTOR - q->QUALITYFACTOR) <= precision &&
147 fabs((p->UNIXTIMEBASE + p->TOA_S) -
148 (q->UNIXTIMEBASE + q->TOA_S)) <= precision) {
150 if (!allowed || (p->TOA_S <
TOAMAX_S &&
156 cout <<
"Difference between absolute times "
157 <<
SCIENTIFIC(12,3) << ((p->UNIXTIMEBASE + p->TOA_S) -
158 (q->UNIXTIMEBASE + q->TOA_S)) << endl;
Utility class to parse command line options.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Auxiliary class for defining the range of iterations of objects.
static const double TOAMAX_S
Maximal allowed time-of-arrival [s].
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose class for object reading from a list of file names.
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
const JLimit & getLimit() const
Get limit.
Auxiliary data structure for floating point format specification.
int EMITTERID
waveform identifier