62int main(
int argc,
char **argv)
73 JLimit_t& numberOfEvents = inputFile.getLimit();
85 JParser<> zap(
"Application to fit position calibration model to acoustic data.");
87 zap[
'f'] =
make_field(inputFile,
"output of JAcousticEventBuilder[.sh]");
96 zap[
'N'] =
make_field(threads,
"number of threads") = 1;
101 catch(
const exception &error) {
102 FATAL(error.what() << endl);
105 ROOT::EnableThreadSafety();
118 for (tripods_container::const_iterator i = tripods.begin(); i != tripods.end(); ++i) {
120 emitters[i->getID()] =
JEmitter(i->getID(),
121 i->getUTMPosition() -
detector.getUTMPosition());
125 for (transmitters_container::const_iterator i = transmitters.begin(); i != transmitters.end(); ++i) {
127 emitters[i->getID()] =
JEmitter(i->getID(),
128 i->getPosition() +
detector.getModule(i->getLocation()).getPosition());
130 catch(
const exception&) {}
141 JPlatypus platypus(geometry, emitters, V, parameters, inputFile, threads);
143 catch(
const exception& error) {
144 FATAL(
"main " << error.what());
ROOT TTree parameter settings.
Data structure for detector geometry and calibration.
General purpose class for hash map of unique elements.
Data structure for hydrophone.
Fit functions of acoustic model.
General purpose messaging.
Data structure for optical module.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
Auxiliary class to define a range between two values.
Scanning of objects from a single file according a format that follows from the extension of each fil...
Data structure for transmitter.
Data structure for tripod.
Thread pool for global fits using super events.
static JMATH::JQuantile_t Q
chi2/NDF
Utility class to parse command line options.
Object reading from a list of files.
JContainer< std::vector< JTripod > > tripods_container
JContainer< std::vector< JTransmitter > > transmitters_container
JContainer< std::vector< JHydrophone > > hydrophones_container
static const JSoundVelocity getSoundVelocity(1541.0, -17.0e-3, -2000.0)
Function object for velocity of sound.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for mechanical model parameters with commented data.
Template definition of fit function of acoustic model.
Implementation for depth dependend velocity of sound.
JSoundVelocity & set(const double z0)
Set depth.
Auxiliary wrapper for I/O of container with optional comment (see JComment).
double getMean() const
Get mean value.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.
Auxiliary data structure for floating point format specification.