49{
53
59
60 try {
61
62 JParser<> zap(
"Auxiliary application to plot PMT parameters.");
63
66 zap[
'P'] =
make_field(parameters,
"PMT calibration data (or corresponding file name)");
69
71 }
72 catch(const exception &error) {
74 }
75
77
78 try {
80 }
83 }
84
87 }
88
89 JManager<string, TH1D>
manager(
new TH1D(
"%",
NULL, NUMBER_OF_PMTS, -0.5, NUMBER_OF_PMTS - 0.5));
90
92
94
95 for (int pmt = 0; pmt != NUMBER_OF_PMTS; ++pmt) {
96
98
99 for (JProperties::const_iterator p = properties.begin(); p != properties.end(); ++p) {
100
101 double value = 0.0;
102
103 try { value = (p->second.getValue<const double>()); } catch(const exception& error) {}
104 try { value = (p->second.getValue<const bool>() ? 1.0 : 0.0); } catch(const exception& error) {}
105
107 }
108
110
112 }
113 }
114
116
118
119 for (JManager<string, TH1D>::iterator i =
manager.begin(); i !=
manager.end(); ++i) {
120
121 int id;
122
124
126 }
127 }
128
130}
#define DEBUG(A)
Message macros.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
#define MAKE_CSTRING(A)
Make C-string.
Lookup table for PMT addresses in detector.
Auxiliary class for map of PMT parameters.
const JPMTParameters & getPMTParameters(const JPMTIdentifier &id) const
Get PMT parameters.
JProperties getProperties(const JEquationParameters &equation=JPMTParameters::getEquationParameters())
Get properties of this class.
Utility class to parse parameter values.
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
JDetectorAddressMap & getDetectorAddressMap()
Get detector address map.
void setAxisLabels(TAxis *axis, const JModuleAddressMap &memo)
Set axis with PMT address labels.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.