25int main(
int argc,
char **argv)
36 JParser<> zap(
"Auxiliary program to create module map of PMT addresses.");
44 catch(
const exception &error) {
58 if (!hasDetectorAddressMap(
detector.getID())) {
59 FATAL(
"No detector address map for detector identier " <<
detector.getID() <<
endl);
65 const json error = { {Message_t,
"" },
67 {Arguments_t, json::array() } };
78 for (
size_t i = 0; i !=
module->size(); ++i) {
79 buffer[
memo.getPMTPhysicalAddress(i).toString()] = (*module)[i].
getID();
82 data.push_back(buffer);
87 js[Data_t][0][DOMMap_t] =
json(data);
int main(int argc, char **argv)
Data structure for detector geometry and calibration.
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
Lookup table for PMT addresses in detector.
Lookup table for PMT addresses in optical module.
int getID() const
Get identifier.
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for module address map.