22   static const char        SEPARATOR            = 
'.';  
 
   23   static const std::string DEFAULT_ID           = 
"%";  
 
   35     return (((first          == second))                                                                        ||
 
   53   inline void print(std::ostream& out, 
const std::string& 
id, 
const JPMTParameters& parameters, T __begin, T __end)
 
   58     out << 
LEFT(12) << id;
 
   60     for (T i = __begin; i != __end; ++i) {
 
   62       out << 
' ' << 
FIXED(7,3);
 
   80 int main(
int argc, 
char **argv)
 
   95     JParser<> zap(
"Auxiliary program to print PMT parameters.");
 
  104   catch(
const exception &error) {
 
  105     FATAL(error.what() << endl);
 
  111     if ((*i) != DEFAULT_ID) {             
 
  113       const size_t pos = i->find(SEPARATOR);
 
  115       if (pos == string::npos) {
 
  116         FATAL(
"Invalid PMT specifier " << *i << endl);
 
  119       const JPMTIdentifier id(stoi(i->substr(0, pos)), stoi(i->substr(pos + 1)));
 
  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());
 
General purpose messaging.
 
Utility class to parse command line options.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
int main(int argc, char **argv)
 
Auxiliary methods to convert data members or return values of member methods of a set of objects to a...
 
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.
 
int getTDC() const
Get TDC.
 
Utility class to parse parameter values.
 
std::ostream & write(std::ostream &out) const
Write the current parameter values.
 
int getID() const
Get identifier.
 
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).
 
static const char WILDCARD
 
Auxiliary data structure for floating point format specification.
 
Empty structure for specification of parser element that is initialised (i.e. does not require input)...