25int main(
int argc,
char **argv)
36 JParser<> zap(
"Auxiliary program to create module map of PMT addresses.");
38 zap[
'a'] =
make_field(detectorFile,
"detector file");
44 catch(
const exception &error) {
45 FATAL(error.what() << endl);
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() } };
72 for (JDetector::const_iterator module =
detector.begin(); module !=
detector.end(); ++module) {
78 for (
size_t i = 0; i !=
module->size(); ++i) {
82 data.push_back(buffer);
87 js[Data_t][0][DOMMap_t] =
json(data);
88 js[Error_t] =
json(error);
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.
const JModuleAddressMap & get(const int id) const
Get module address map.
Lookup table for PMT addresses in optical module.
const JPMTPhysicalAddress & getPMTPhysicalAddress(const int tdc) const
Get PMT physical address.
std::string toString() const
Convert PMT physical address to string.
int getID() const
Get identifier.
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.