32 int main(
int argc,
char **argv)
36 using namespace KM3NETDAQ;
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) {
84 while (inputFile.hasNext()) {
86 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
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());
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Data structure for detector geometry and calibration.
Scanning of objects from a single file according a format that follows from the extension of each fil...
Auxiliary class for defining the range of iterations of objects.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Auxiliary class for map of PMT parameters.
General purpose messaging.
void load(const char *file_name)
Load from input file.
Direct access to module in detector data structure.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
Utility class to parse command line options.
void store(const char *file_name) const
Store to output file.
Object reading from a list of files.
const JLimit & getLimit() const
Get limit.
do set_variable DETECTOR_TXT $WORKDIR detector
KM3NeT DAQ constants, bit handling, etc.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
JTriggerCounter_t next()
Increment trigger counter.
#define DEBUG(A)
Message macros.