Go to the documentation of this file.
32 int main(
int argc,
char **argv)
39 JLimit_t& numberOfEvents = inputFile.getLimit();
48 JParser<> zap(
"Auxiliary program to monitor optical module response.");
52 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
59 catch(
const exception& error) {
60 FATAL(error.what() << endl);
79 for (JDetector::const_iterator i =
detector.begin(); i !=
detector.end(); ++i) {
91 zmap[hit->getModuleID()] += 1;
99 for (JDetector::const_iterator i =
detector.begin(); i !=
detector.end(); ++i) {
100 Q.
put(zmap[i->getID()]);
105 NOTICE(
"Minimal DOM count " << Rmin << endl);
107 for (JDetector::const_iterator i =
detector.begin(); i !=
detector.end(); ++i) {
109 << setw(3) << i->getString() <<
' '
110 << setw(2) << i->getFloor() <<
' '
111 << setw(8) << i->getID() <<
' '
112 << setw(6) << zmap[i->getID()] <<
' '
113 << (zmap[i->getID()] < Rmin ?
"***" :
"") << endl);
122 parameters.
load(pmtFile.c_str());
126 for (JDetector::const_iterator i =
detector.begin(); i !=
detector.end(); ++i) {
127 if (zmap[i->getID()] < Rmin) {
134 parameters.
store(pmtFile.c_str());
counter_type getCounter() const
Get counter.
Auxiliary class for defining the range of iterations of objects.
void load(const char *file_name)
Load from input file.
void load(const JString &file_name, JDetector &detector)
Load detector from input file.
virtual const pointer_type & next()
Get next element.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Utility class to parse command line options.
virtual bool hasNext()
Check availability of next element.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
void store(const char *file_name) const
Store to output file.
Auxiliary class for map of PMT parameters.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
#define DEBUG(A)
Message macros.
KM3NeT DAQ data structures and auxiliaries.
Object reading from a list of files.
int main(int argc, char **argv)