48     JParser<> zap(
"Auxiliary program to merge detector files.");
 
   52     zap[
'@'] = 
make_field(calset,        
"import calibration sets \"<key> = <file name>[; <key> = <file name>]\"" << endl
 
   58   catch(
const exception &error) {
 
   59     FATAL(error.what() << endl);
 
   67     if (keys.count(i->getKey()) == 0)
 
   68       FATAL(
"Invalid calibration set \"" << i->getKey() << 
"\"" << endl);
 
   90       copy(buffer.begin(), buffer.end(), back_inserter(
detector));
 
  107     for (
const auto& module : buffer) {
 
  108       for (
const auto& pmt : module) {
 
  109         if (router.hasPMT(pmt.getID()))
 
  110           detector.getPMT(router.getAddress(pmt.getID())).setCalibration(pmt.getCalibration());
 
  112           FATAL(
"Missing PMT " << pmt.getID() << endl);
 
  131     for (
const auto& module : buffer) {
 
  132       if (router.hasModule(module.getID())) {
 
  134         if (module.getFloor() != 0)
 
  135           detector.getModule(router.getAddress(module.getID())).set(module.getCenter());
 
  137           detector.getModule(router.getAddress(module.getID())).set(module.getPosition());
 
  140         FATAL(
"Missing module " << module.getID() << endl);
 
  158     for (
const auto& module : buffer) {
 
  159       if (router.hasModule(module.getID())) {
 
  161         if (module.getFloor() != 0) {
 
  163           JModule& 
object = 
detector.getModule(router.getAddress(module.getID()));
 
  174         FATAL(
"Missing module " << module.getID() << endl);
 
  192     for (
const auto& module : buffer) {
 
  193       if (router.hasModule(module.getID())) {
 
  195         detector.getModule(router.getAddress(module.getID())).setT0(module.getT0());
 
  198         FATAL(
"Missing module " << module.getID() << endl);
 
  216     for (
const auto& module : buffer) {
 
  217       if (router.hasModule(module.getID())) {
 
  219         detector.getModule(router.getAddress(module.getID())).setQuaternion(module.getQuaternion());
 
  222         FATAL(
"Missing module " << module.getID() << endl);
 
  240       for (
const auto& module : buffer) {
 
  241         if (router.hasModule(module.getID()))
 
  242           detector.getModule(router.getAddress(module.getID())).setStatus(module.getStatus());
 
  244           FATAL(
"Missing module " << module.getID() << endl);
 
  250       for (
const auto& module : buffer) {
 
  251         for (
const auto& pmt : module) {
 
  252           if (router.hasPMT(pmt.getID()))
 
  253             detector.getPMT(router.getAddress(pmt.getID())).setStatus(pmt.getStatus());
 
  255             FATAL(
"Missing PMT " << pmt.getID() << endl);
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Router for direct addressing of module data in detector data structure.
 
Data structure for a composite optical module.
 
Router for direct addressing of PMT data in detector data structure.
 
Data structure for position in three dimensions.
 
JVector3D & add(const JVector3D &vector)
Add vector.
 
JVector3D & sub(const JVector3D &vector)
Subtract vector.
 
Utility class to parse command line options.
 
void copy(const Head &from, JHead &to)
Copy header from from to to.
 
static JRotation getRotation
Function object to get rotation matrix to go from first to second module.
 
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
 
void store(const std::string &file_name, const JDetector &detector)
Store detector to output file.
 
std::string trim(const std::string &buffer)
Trim string.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
static const std::string TCAL
PMT time offsets.
 
static const std::string PCAL
(optical|base) module positions
 
static const std::string SCAL
(module|PMT) status
 
static const std::string RCAL
optical module orientations
 
static const std::string ACAL
acoustic time offsets (piezo sensor or hydrophone)
 
static const std::string CCAL
compass alignment (a.k.a. quaternion calibration)
 
Auxiliary data structure for streaming of STL containers.
 
Empty structure for specification of parser element that is initialised (i.e. does not require input)...