11 #include <type_traits>
62 int main(
int argc,
char **argv)
84 JParser<> zap(
"Application to fit position calibration model to acoustic data.");
86 zap[
'f'] =
make_field(inputFile,
"output of JAcousticEventBuilder[.sh]");
87 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
95 zap[
'N'] =
make_field(threads,
"number of threads") = 1;
100 catch(
const exception &error) {
101 FATAL(error.what() << endl);
104 ROOT::EnableThreadSafety();
117 for (tripods_container::const_iterator
i =
tripods.begin();
i !=
tripods.end(); ++
i) {
120 i->getUTMPosition() -
detector.getUTMPosition());
124 for (transmitters_container::const_iterator
i = transmitters.begin();
i != transmitters.end(); ++
i) {
129 catch(
const exception&) {}
142 catch(
const exception& error) {
143 FATAL(
"main " << error.what());
Utility class to parse command line options.
Q(UTCMax_s-UTCMin_s)-livetime_s
int main(int argc, char *argv[])
JContainer< std::vector< JTransmitter > > transmitters_container
static JDetectorMechanics getMechanics
Function object to get string mechanics.
General purpose class for hash map of unique elements.
ROOT TTree parameter settings.
*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
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
V(JDAQEvent-JTriggerReprocessor)*1.0/(JDAQEvent+1.0e-10)
Data structure for detector geometry and calibration.
Data structure for hydrophone.
Scanning of objects from a single file according a format that follows from the extension of each fil...
Auxiliary class for defining the range of iterations of objects.
static const JSoundVelocity getSoundVelocity(1541.0,-17.0e-3,-2000.0)
Function object for velocity of sound.
JContainer< std::vector< JHydrophone > > hydrophones_container
Data structure for transmitter.
Auxiliary wrapper for I/O of container with optional comment (see JComment).
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
JPosition3D getPosition(const Vec &pos)
Get position.
JContainer< std::vector< JTripod > > tripods_container
General purpose messaging.
Implementation for depth dependend velocity of sound.
Thread pool for global fits using super events.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
Auxiliary class to define a range between two values.
Utility class to parse command line options.
Fit functions of acoustic model.
Object reading from a list of files.
const JLimit & getLimit() const
Get limit.
do set_variable DETECTOR_TXT $WORKDIR detector
Data structure for tripod.
Auxiliary data structure for floating point format specification.
Template definition of fit function of acoustic model.
Data structure for optical module.