20int main(
int argc,
char **argv)
32 JParser<> zap(
"Auxiliary program to print PMT data for a given PMT channel.");
36 zap[
'p'] =
make_field(
id,
"PMT identifier") = getUndefinedObjectID();
41 catch(
const exception &error) {
42 FATAL(error.what() << endl);
57 for (JDetector::const_iterator module =
detector.begin(); module !=
detector.end(); ++module) {
59 if (module->getLocation() == channel.
getLocation()) {
61 cout << module->getPMT(channel.
getTDC()) << endl;
67 }
else if (
id != getUndefinedObjectID()) {
69 for (JDetector::const_iterator module =
detector.begin(); module !=
detector.end(); ++module) {
70 for (JModule::const_iterator pmt = module->begin(); pmt != module->end(); ++pmt) {
71 if (pmt->getID() ==
id) {
82 while (cin >> channel && channel !=
JPMTChannel()) {
84 for (JDetector::const_iterator module =
detector.begin(); module !=
detector.end(); ++module) {
86 if (module->getLocation() == channel.
getLocation()) {
88 cout << module->getPMT(channel.
getTDC()) << endl;