42 int main(
const int argc, 
const char * 
const argv[])
 
   58     JParser<> zap(
"Auxiliary program to check trigger parameters in a given ROOT files against the values from the database.");
 
   70   catch(
const exception& error) {
 
   71     FATAL(error.what() << endl);
 
   75   const double Dmax_m = 9999.0;
 
   85     ERROR(
"No trigger parameters from input." << endl);
 
   88   parametersA.set(Dmax_m);
 
  100     detector_id = in.
next()->getDetectorID();
 
  101     run_number  = in.
next()->getRunNumber();
 
  105     FATAL(
"File does not contain a valid run number." << endl);
 
  112   catch(
const exception& error) {
 
  113     FATAL(error.what() << endl);
 
  131   catch(
const exception& error) {
 
  132     FATAL(error.what() << endl);
 
  144     while (rs >> buffer) {
 
  148       if (pos != string::npos) {
 
  152         zmap[buffer.
OID] = buffer.
NAME.erase(0, pos + 1);
 
  158   catch(
const exception& error) {
 
  159     FATAL(error.what() << endl);
 
  171     while (rs >> buffer) {
 
  175       if (i != zmap.end()) {
 
  176         data << i->second << 
"=" << buffer.
VALUE << 
";\n";
 
  182   catch(
const exception& error) {
 
  183     FATAL(error.what() << endl);
 
  189   parametersB.set(Dmax_m);  
 
  190   parametersB.actionAtFileRead();
 
  213   const bool is_equal = (parametersA == parametersB);
 
  216     NOTICE(
GREEN << 
"The parameters for run " << run_number << 
" are equivalent."     << 
RESET << endl);
 
  218     ERROR (
RED   << 
"The parameters for run " << run_number << 
" are NOT equivalent." << 
RESET << endl);
 
  220   return (is_equal ? 0 : 1);
 
int main(const int argc, const char *const argv[])
 
Recording of objects on file according a format that follows from the file name extension.
 
General purpose messaging.
 
#define DEBUG(A)
Message macros.
 
Utility class to parse command line options.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Scanning of objects from a single file according a format that follows from the extension of each fil...
 
ROOT TTree parameter settings of various packages.
 
Auxiliary class for multiplexing object iterators.
 
virtual bool hasNext() override
Check availability of next element.
 
virtual const pointer_type & next() override
Get next element.
 
Utility class to parse command line options.
 
Object reading from a list of files.
 
ResultSet & getResultSet(const std::string &query)
Get result set.
 
JDetectorsHelper & getDetector()
Auxiliary function for helper object initialisation.
 
static const std::string PREFIX_DATAFILTER
This string is prepended to every parameter in the database output for the corresponding process.
 
std::vector< JServer > getServernames()
Get list of names of available database servers.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
JTriggerParameters getTriggerParameters(const JMultipleFileScanner_t &file_list)
Get trigger parameters.
 
KM3NeT DAQ data structures and auxiliaries.
 
Wrapper class for server name.
 
Template definition for getting table specific selector.