8 #include "dbclient/KM3NeTDBClient.h"
26 int main(
int argc,
char **argv)
41 JParser<> zap(
"Auxiliary program to print module identifier for a given module location.");
47 zap[
'D'] =
make_field(detid,
"Detector identifier");
48 zap[
'L'] =
make_field(location,
"Module location");
53 catch(
const exception &error) {
54 FATAL(error.what() << endl);
69 ResultSet& rs =
getResultSet(getTable<JDetectorIntegration_t>());
75 }
catch (
const exception& error) {
77 FATAL(error.what() << endl);
Data structure for detector geometry and calibration.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
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.
Logical location of module.
int getFloor() const
Get floor number.
int getString() const
Get string number.
Utility class to parse command line options.
int main(int argc, char **argv)
static const JPBS_t CLB(3, 4, 3, 2)
PBS of central-logic board
static const JPBSSequences CLB_SEQUENCES
PBS sequences for central-logic board.
ResultSet & getResultSet(const std::string &query)
Get result set.
JDetectorsHelper & getDetector()
Auxiliary function for helper object initialisation.
JCLBIDHelper & getCLBID()
Auxiliary function for helper object initialisation.
std::vector< JServer > getServernames()
Get list of names of available database servers.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class to map UPI to location in detector.
Wrapper class for server name.