25 int main(
const int argc, 
const char * 
const argv[])
 
   44     JParser<> zap(
"Auxiliary program to determine TDC constraints (input to JFitK40.cc) according HV settings from the database.");
 
   50     zap[
'D'] = 
make_field(detid,        
"Detector identifier");
 
   51     zap[
'r'] = 
make_field(runs,         
"Pair of data taking runs");
 
   58   catch(
const exception& error) {
 
   59     FATAL(error.what() << endl);
 
   70       ID    = to_value<int>(detid);
 
   81       ResultSet& rs = 
getResultSet(getTable<JDetectorIntegration>(), getSelector<JDetectorIntegration>(ID));
 
   84         detector.push_back(parameters);
 
   90     const JPMTHV pmt_hv[] = {
 
   91       JPMTHV(ID, runs.first),
 
   92       JPMTHV(ID, runs.second)
 
  101     ostream os(buffer.is_open() ? &buffer : cout.rdbuf());
 
  103     for (detector_type::const_iterator i = detector.begin(); i != detector.end(); ++i) {
 
  104       if (i->PMTUPI.getPBS() == 
PBS::PMT) {
 
  105         if (pmt_hv[0](i->PMTUPI).value == pmt_hv[1](i->PMTUPI).value) {
 
  107             os << setw(10) << i->DOMID << 
' ' << setw(2) << i->PMTID    << endl;
 
  109             os << setw(10) << i->DOMID << 
' ' << setw(2) << i->CABLEPOS << endl;
 
  116   catch(
const exception& error) {
 
  117     FATAL(error.what() << endl);
 
Utility class to parse command line options. 
 
int main(int argc, char *argv[])
 
static const JPBS_t PMT(3, 4, 2, 3)
PBS of photo-multiplier tube (PMT) 
 
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
 
JDetectorsHelper getDetector
Function object for mapping serial number to object identifier of detector and vice versa...
 
I/O formatting auxiliaries. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
bool is_integer(const std::string &buffer)
Check if string is an integer. 
 
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. 
 
do set_variable DETECTOR_TXT $WORKDIR detector