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. 
 
static const JPBS_t CLB(3, 4, 3, 2)
PBS of central-logic board 
 
JDetectorsHelper getDetector
Function object for mapping serial number to object identifier of detector and vice versa...
 
I/O formatting auxiliaries. 
 
Logical location of module. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
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. 
 
Wrapper class for server name. 
 
JCLBIDHelper getCLBID
Function object for mapping UPI of central-logic board to module identifier. 
 
do set_variable DETECTOR_TXT $WORKDIR detector
 
void configure(const std::string &detid)
Configure detector integration for given detector identifier.