27 int main(
int argc, 
char **argv)
 
   41     JParser<> zap(
"Example program for module identification.");
 
   52   catch(
const exception &error) {
 
   53     FATAL(error.what() << endl);
 
   59   DEBUG(
"Reading database table " << getTable<JDetectorIntegration_t>() << endl); 
 
   65     ResultSet& rs  = 
getResultSet(getTable<JDetectorIntegration_t>());
 
   68       THROW(JDatabaseException, 
"Error reading " << getTable<JDetectorIntegration_t>());
 
   71   catch(
const exception& error) {
 
   72     FATAL(error.what() << endl);
 
   79     load(detectorFile, detx);
 
   81   catch(
const JException& error) {
 
   92   for (JDetectorIntegration_t::range_const_iterator i = 
range.first; i != 
range.second; ++i) {
 
   94     const JUPI_t      upi      = 
detector[i->second].content.getUPI();
 
   95     const JLocation_t location = router.getLocation(upi);
 
   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();
 
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. 
 
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 
 
#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. 
 
General purpose messaging. 
 
z range($ZMAX-$ZMIN)< $MINIMAL_DZ." fi fi typeset -Z 4 STRING typeset -Z 2 FLOOR JPlot1D -f $
 
void load(const std::string &file_name, JDetector &detector)
Load detector from input file. 
 
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. 
 
do set_variable DETECTOR_TXT $WORKDIR detector
 
#define DEBUG(A)
Message macros.