81{
   84 
   89 
   90  try {
   91 
   94 
   95    JParser<> zap(
"Auxiliary program to print PMT parameters.");
 
   96 
  101 
  102    zap(argc, argv);
  103  }
  104  catch(const exception &error) {
  105    FATAL(error.what() << endl);
 
  106  }
  107 
  108 
  109  for (vector<string>::const_iterator i = pmts.cbegin(); i != pmts.cend(); ++i) {
  110 
  111    if ((*i) != DEFAULT_ID) {             
  112    
  113      const size_t pos = i->find(SEPARATOR);
  114 
  115      if (pos == string::npos) {
  116        FATAL(
"Invalid PMT specifier " << *i << endl);
 
  117      }
  118      
  119      const JPMTIdentifier id(stoi(i->substr(0, pos)), stoi(i->substr(pos + 1)));
 
  120      
  121      for (JPMTParametersMap::const_iterator ps = parameters.cbegin(); ps != parameters.cend(); ++ps) {
  122        if (compare(ps->first, id)) {
  123          print(cout, *i, ps->second, keys.cbegin(), keys.cend());
 
  124        }
  125      }      
  126      
  127    } else {                              
  128 
  130    }
  131  }
  132 
  133  return 0;
  134}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Auxiliary class for map of PMT parameters.
 
const JPMTParameters & getDefaultPMTParameters() const
Get default PMT parameters.
 
Data structure for PMT parameters.
 
JProperties getProperties(const JEquationParameters &equation=JPMTParameters::getEquationParameters())
Get properties of this class.
 
Utility class to parse parameter values.
 
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.
 
const array_type< JKey_t > & get_keys(const std::map< JKey_t, JValue_t, JComparator_t, JAllocator_t > &data)
Method to create array of keys of map.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Empty structure for specification of parser element that is initialised (i.e. does not require input)...