27int main(
int argc,
char **argv)
41 JParser<> zap(
"Example program for module identification.");
43 zap[
's'] =
make_field(server) = getServernames();
52 catch(
const exception &error) {
53 FATAL(error.what() << endl);
59 DEBUG(
"Reading database table " << getTable<JDetectorIntegration_t>() << endl);
63 JDB::reset(usr, pwd, cookie);
65 ResultSet& rs = getResultSet(getTable<JDetectorIntegration_t>());
71 catch(
const exception& error) {
72 FATAL(error.what() << endl);
79 load(detectorFile, detx);
97 cout << setw(24) << left << upi << right <<
' '
98 << setw(4) << location.
string <<
' '
99 << setw(2) << location.
floor <<
' '
100 << setw(10) << getCLBID(upi) <<
' ';
102 for (JDetector::const_iterator module = detx.begin(); module != detx.end(); ++module) {
104 if (module->getString() == location.
string &&
105 module->getFloor() == location.
floor) {
107 cout << setw(10) << module->getID();