15 #include "dbclient/KM3NeTDBClient.h"
19 #include "JDB/JDBincludes.hh"
29 int main(
int argc,
char **argv)
44 JParser<> zap(
"Auxiliary program to print module identifier for a given module location."
45 "\nInteractive mode in absence of option -L <location>.");
51 zap[
'D'] =
make_field(detid,
"Detector identifier") = -1;
57 catch(
const exception &error) {
58 FATAL(error.what() << endl);
75 ResultSet& rs =
getResultSet(getTable<JDetectorIntegration_t>());
77 if (! (rs >> detector)) {
81 }
catch (
const exception& error) {
83 FATAL(error.what() << endl);
92 if (location.getString() ==
CLB->second.string &&
93 location.getFloor() ==
CLB->second.floor) {
102 ERROR(
"No detector found corresponding to user specifications.");
Utility class to parse command line options.
int main(int argc, char *argv[])
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
bool hasDetectorAddressMap(const int id)
Check if detector address map is available.
Data structure for detector geometry and calibration.
JDetectorsHelper & getDetector()
Auxiliary function for helper object initialisation.
static const JPBS_t CLB(3, 4, 3, 2)
PBS of central-logic board
I/O formatting auxiliaries.
Logical location of module.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
JCLBIDHelper & getCLBID()
Auxiliary function for helper object initialisation.
static const JPBSSequences CLB_SEQUENCES
PBS sequences for central-logic board.
Auxiliary class to map UPI to location in detector.
General purpose messaging.
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.
void configure(const std::string &detid, const bool option=false)
Configure detector integration for given detector identifier.
Wrapper class for server name.
do set_variable DETECTOR_TXT $WORKDIR detector