41     JParser<> zap(
"Example program to build detector from database.");
 
   54   catch(
const exception &error) {
 
   55     FATAL(error.what() << endl);
 
   61   DEBUG(
"Reading database table " << getTable<JDetectorIntegration_t>() << endl); 
 
   71     ResultSet& rs  = 
getResultSet(getTable<JDetectorIntegration_t>());
 
   74       THROW(JDatabaseException, 
"Error reading " << getTable<JDetectorIntegration_t>());
 
   77   catch(
const exception& error) {
 
   78     FATAL(error.what() << endl);
 
   85   if        (pbs != JPBS_t()) {
 
   89     JDetectorIntegration_t::range_type 
range = 
detector.find(pbs);
 
   91     for (JDetectorIntegration_t::range_const_iterator i = range.first; i != range.second; ++i) {
 
   93       const JUPI_t upi = 
detector[i->second].content.getUPI();
 
   95       cout << 
LEFT(32) << upi << right << 
' ' << router.getLocation(upi) << endl;
 
   98   } 
else if (upi != JUPI_t()) {
 
  104     const JLocation_t location = router.getLocation(upi);
 
  106     if (location.is_valid()) {
 
  107       cout << location << endl;
 
  112     cout << 
"Enter UPI." << endl;
 
  118       cout << 
"> " << flush;
 
  125       const JLocation_t location = router.getLocation(upi);
 
  127       if (location.is_valid()) {
 
  128         cout << location << endl;
 
Utility class to parse command line options. 
 
static JGetPBSSequences getPBSSequences
Function object to get PBS sequences as a function of PBS. 
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
JDetectorsHelper getDetector
Function object for mapping serial number to object identifier of detector and vice versa...
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
bool is_integer(const std::string &buffer)
Check if string is an integer. 
 
z range($ZMAX-$ZMIN)< $MINIMAL_DZ." fi fi typeset -Z 4 STRING typeset -Z 2 FLOOR JPlot1D -f $
 
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
 
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