24int main(
int argc,
char **argv)
42 JParser<> zap(
" Auxiliary program to write random acoustic data.");
45 zap[
'a'] =
make_field(detectorFile,
"detector.");
47 zap[
'B'] =
make_field(rate_Hz,
"background rate [Hz]");
48 zap[
'T'] =
make_field(T_s,
"run duration [s]");
49 zap[
'W'] =
make_field(
id,
"waveform identifier");
55 catch(
const exception &error) {
56 FATAL(error.what() << endl);
60 FATAL(
"Invalid rate [Hz] " << rate_Hz << endl);
63 const double t_s = 1.0 / rate_Hz;
65 gRandom->SetSeed(seed);
88 for (JDetector::const_iterator module =
detector.begin(); module !=
detector.end(); ++module) {
90 if (module->getFloor() != 0) {
92 const JReceiver receiver(module->getID(), module->getPosition(), module->getT0() * 1.0e-9);
94 for (
double t1 = 0.0 + gRandom->Exp(t_s); t1 < T_s; t1 += gRandom->
Exp(t_s)) {
ROOT TTree parameter settings.
Data structure for detector geometry and calibration.
Recording of objects on file according a format that follows from the file name extension.
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
int getID() const
Get identifier.
Utility class to parse command line options.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
JExp< JF1_t > Exp(const JF1_t &f1)
Exponent of function.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
double putT(const double t_s) const
Get uncorrected time.
Time-of-arrival data from acoustic piezo sensor or hydrophone.
uint32_t DOMID
DAQ run number.
int64_t TOA_NS
Unique ID of the waveform that best described the signal around TOA_NS.
uint32_t QUALITYFACTOR
The ticks (16ns) part of the DAQ frame timestamp.
uint32_t QUALITYNORMALISATION
A measure of how good the waveform match was to the signal.
int32_t WAVEFORMID
DOM unique identifeir.
int32_t RUN
detector identifier