36   using namespace KM3NETDAQ;
 
   46     JParser<> zap(
"Example program to histogram string and floor rates.");
 
   51     zap[
'n'] = 
make_field(numberOfEvents)      = JLimit::max();
 
   56   catch(
const exception& error) {
 
   57     FATAL(error.what() << endl);
 
   80   TProfile2D h2(
"h2", NULL, 
 
   81                 string.size(), -0.5, 
string.size() - 0.5,
 
   82                 floor .size(), -0.5, floor .size() - 0.5);
 
   84   for (Int_t 
i = 1; 
i <= h2.GetXaxis()->GetNbins(); ++
i) {
 
   87   for (Int_t 
i = 1; 
i <= h2.GetYaxis()->GetNbins(); ++
i) {
 
   91   while (inputFile.hasNext()) {
 
   93     STATUS(
"event: " << setw(10) << inputFile.getCounter() << 
'\r'); 
DEBUG(endl);
 
   97     for (JDAQSummaryslice::const_iterator frame = summary->begin(); frame != summary->end(); ++frame) {
 
   99       if (router.hasModule(frame->getModuleID())) {
 
  101         const JModule& module = router.getModule(frame->getModuleID());
 
  104           if (!frame->testHighRateVeto(pmt) && !frame->testFIFOStatus(pmt)) {
 
  106                     (
double) floor .getIndex(module.
getFloor()),
 
  107                     frame->getRate(pmt) * 1.0e-3);  
 
  111         FATAL(
"JModuleRouter trying to access non existing identifier: " << frame->getModuleID());
 
Utility class to parse command line options. 
 
int getFloor() const 
Get floor number. 
 
Data structure for a composite optical module. 
 
Router for direct addressing of module data in detector data structure. 
 
#define MAKE_CSTRING(A)
Make C-string. 
 
JMODEL::JString getString(const JFit &fit)
Get model parameters of string. 
 
Auxiliary class for defining the range of iterations of objects. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
const array_type< JValue_t > & make_array(const JValue_t(&array)[N])
Method to create array of values. 
 
int getIndex()
Get index for user I/O manipulation. 
 
int getString() const 
Get string number. 
 
void load(const std::string &file_name, JDetector &detector)
Load detector from input file. 
 
const JLimit & getLimit() const 
Get limit. 
 
do set_variable DETECTOR_TXT $WORKDIR detector
 
static const int NUMBER_OF_PMTS
Total number of PMTs in module. 
 
#define DEBUG(A)
Message macros.