57     JParser<> zap(
"Main program to print quality data from data base.");
 
   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);
 
   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);
 
  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);
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Auxiliary class for specifying selection of database data.
 
JSelector & add(const JSelector &selection)
Add selection.
 
Utility class to parse command line options.
 
std::ostream & print(std::ostream &out, const JTestSummary &summary, const char delimiter=' ', const bool useColors=true)
Print test summary.
 
ResultSet & getResultSet(const std::string &query)
Get result set.
 
std::vector< JServer > getServernames()
Get list of names of available database servers.
 
std::vector< std::string > getGITTags(const TRegexp ®exp, const JGITTags_t::key_type &date)
Get selection of GIT tags.
 
T getMaximum(const array_type< T > &buffer, const T value)
Get maximum of values.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
std::vector< event_type > data_type
 
std::map< int, range_type > map_type
 
Type definition of range.
 
Auxiliary data structure for data quality.
 
double value
setup identifier (see JRunsetups)
 
void put(const std::string &key, const std::string &value)
Put value at given key.
 
std::string name
setup name (see JRunsetups)
 
std::string GIT
GIT version used to write QA/QC data.
 
int detector
detector identifier
 
Auxiliary class for run setup evaluation.
 
void put(const int run, const std::string setup)
Put run parameters.
 
Wrapper class for server name.
 
Template definition for getting table specific selector.
 
Auxiliary data structure for streaming of STL containers.
 
Empty structure for specification of parser element that is initialised (i.e. does not require input)...