27 int main(
int argc,
char **argv)
34 JPMTParametersMap parameters;
40 JParser<> zap(
"Auxiliary application to plot PMT parameters.");
42 zap[
'a'] =
make_field(detectorFile,
"detector file.");
44 zap[
'P'] =
make_field(parameters,
"PMT calibration data (or corresponding file name)");
49 catch(
const exception &error) {
50 FATAL(error.what() << endl);
56 load(detectorFile, detector);
58 catch(
const JException& error) {
62 if (detector.empty()) {
63 FATAL(
"Empty detector." << endl);
68 for (JDetector::iterator module = detector.begin(); module != detector.end(); ++module) {
70 DEBUG(
"Module " << setw(10) << module->getID() << endl);
74 const JProperties properties = parameters.getPMTParameters(JPMTIdentifier(module->getID(), pmt)).getProperties();
76 for (JProperties::const_iterator p = properties.begin(); p != properties.end(); ++p) {
79 manager[
MAKE_CSTRING(module->getID() <<
"." << p->first)]->Fill((Double_t) pmt, p->second.getValue<
const double>());
81 catch(
const exception& error) {}
84 manager[
MAKE_CSTRING(module->getID() <<
"." << p->first)]->Fill((Double_t) pmt, p->second.getValue<
const bool>() ? 1.0 : 0.0);
86 catch(
const exception& error) {}
89 const JPMTParameters buffer = parameters.getPMTParameters(JPMTIdentifier(module->getID(), pmt));