46 JParser<> zap(
"Auxiliary program to download default detector from database.");
52 zap[
'D'] =
make_field(
id,
"detector identifier");
54 zap[
'V'] =
make_field(variant,
"detector version") = getDetectorVersions<string>();
59 catch(
const exception &error) {
60 FATAL(error.what() << endl);
68 id = getDetector<string>(
id);
92 FATAL(
"Missing " << key <<
" calibration." << endl);
98 *(JDB::get()->DetX)(
id.c_str(),
109 catch(
const exception& error) {
110 FATAL(error.what() << endl);
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
#define MAKE_STRING(A)
Make string.
Utility class to parse command line options.
ResultSet & getResultSet(const std::string &query)
Get result set.
std::vector< JServer > getServernames()
Get list of names of available database servers.
static const JGetDetectorVersion getDetectorVersion
Function object to map detector version to numerical value.
void store(const std::string &file_name, const JDetector &detector)
Store detector to output file.
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)
Wrapper class for server name.
Template definition for getting table specific selector.
Auxiliary data structure for correspondence between nick and full name of calibration types.
const std::string & getNickname(const std::string &type) const
Get calibration type.