8#include "dbclient/KM3NeTDBClient.h" 
   26int main(
int argc, 
char **argv)
 
   41    JParser<> zap(
"Auxiliary program to print module identifier for a given module location.");
 
   43    zap[
's'] = 
make_field(server)            = getServernames();
 
   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);
 
   67    JDB::reset(usr, pwd, cookie);
 
   69    ResultSet& rs = getResultSet(getTable<JDetectorIntegration_t>());
 
   75  } 
catch (
const exception& error) {
 
   77    FATAL(error.what() << endl);
 
   80  detector.configure(getDetector(detid));
 
   86    if (location.
getString() == CLB->second.string &&
 
   87        location.
getFloor()  == CLB->second.floor) {
 
   89      cout << getCLBID(CLB->first) << 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)
 
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.