21 static const int WILDCARD = -1;
22 static const char SEPARATOR =
'.';
35 return (((first == second)) ||
38 ((first.
getID() == WILDCARD || second.
getID() == WILDCARD) &&
39 (first.
getTDC() == WILDCARD || second.
getTDC() == WILDCARD)));
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);
95 JParser<> zap(
"Auxiliary program to print PMT parameters.");
104 catch(
const exception &error) {
113 const size_t pos = i->find(SEPARATOR);
115 if (pos == string::npos) {
116 FATAL(
"Invalid PMT specifier " << *i <<
endl);
121 for (JPMTParametersMap::const_iterator ps = parameters.cbegin(); ps != parameters.cend(); ++ps) {
122 if (compare(ps->first,
id)) {
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)
#define MAKE_STRING(A)
Make string.
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.
Template definition of a multi-dimensional oscillation probability interpolation table.
std::ostream & print(std::ostream &out, const JTestSummary &summary, T __begin, T __end, const bool useColors=true, const JFormat_t &formatting=JFormat_t(18, 3, std::ios::fixed))
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).
Auxiliary data structure for floating point format specification.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...