34int main(
int argc, 
char **argv)
 
   57    JParser<> zap(
"Main program to print quality data from data base.");
 
   59    zap[
's'] = 
make_field(server)        = getServernames();
 
   64    zap[
'R'] = 
make_field(runs,       
"Run range")                                      = JRange_t(1, JRange_t::getMaximum());
 
   65    zap[
'S'] = 
make_field(source,     
"GIT versions")                                   = getGITTags(TRegexp(
"v[0-9]*\\.[0-9]*\\.[0-9]*$"), JGITTags_t::key_type(
"2019-04-12"));
 
   73  catch(
const exception &error) {
 
   74    FATAL(error.what() << endl);
 
   83    JDB::reset(usr, pwd, cookie);
 
   85    const int ID = getDetector<int>   (detid);
 
   86    detid        = getDetector<string>(detid);
 
   92    ResultSet& rs  = getResultSet(getTable<JRuns>(), selection);
 
   94    for (
JRuns parameters; rs >> parameters; ) {
 
   95      if (TString(parameters.RUNSETUPNAME.c_str()).Contains(regexp)) {
 
   96        setups.
put(parameters);
 
  104    for (vector<string>::const_iterator git = source.begin(); git != source.end() && buffer.size() < setups.size(); ++git) {
 
  113      selector.add(&JRunSummaryNumbers::SOURCE_NAME, *git);
 
  117        ResultSet& rs  = getResultSet(getTable<JRunSummaryNumbers>(), selector);
 
  120          if (setups.count(parameters.RUN) != 0) {
 
  121            zmap[parameters.RUN].insert(make_pair(parameters.PARAMETER_NAME, parameters.DATA_VALUE));
 
  127      catch(
const exception& error) {}
 
  129      for (map_type::const_iterator run = zmap.begin(); run != zmap.end(); ++run) {
 
  135        quality.
run      = run->first;
 
  136        quality.
name     = setups[run->first].name;
 
  137        quality.
value    = setups[run->first].value;
 
  139        for (data_type::const_iterator i = run->second.begin(); i != run->second.end(); ++i) {
 
  140          quality.
put(i->first, i->second);
 
  143        buffer.insert(quality);           
 
  147  catch(
const exception& error) {
 
  148    FATAL(error.what() << endl);
 
  154    for (vector<string>::const_iterator i = format.begin(); i != format.end(); ++i) {
 
  155      JRootPrinter::print(cout, *quality, *i);