27 int main(
int argc, 
char **argv)
 
   31   using namespace KM3NETDAQ;
 
   33   JMultipleFileScanner<JDAQSummaryslice> inputFile;
 
   40     JParser<> zap(
"Example program to histogram summary data.");
 
   44     zap[
'n'] = 
make_field(numberOfEvents)      = JLimit::max();
 
   49   catch(
const exception& error) {
 
   50     FATAL(error.what() << endl);
 
   54   const double factor = 1.0e-3;   
 
   60   TH1D h0(
"h0", NULL, JDAQRate::getN(), JDAQRate::getData(factor));
 
   61   TH1D h1(
"h1", NULL,  32,-0.5, 32.5);
 
   63   while (inputFile.hasNext()) {
 
   65     STATUS(
"event: " << setw(10) << inputFile.getCounter() << 
'\r'); 
DEBUG(endl);
 
   69     for (JDAQSummaryslice::const_iterator frame = summaryslice->begin(); frame != summaryslice->end(); ++frame) {
 
   72         h0.Fill(frame->getRate(pmt, factor), frame->getWeight(pmt, factor));
 
   73         h1.Fill((Double_t) pmt, frame->testHighRateVeto(pmt));
 
   76       if (frame->testWhiteRabbitStatus()) {
 
   77         h1.Fill((Double_t) 32);
 
Utility class to parse command line options. 
 
JLimit JLimit_t
Type definition of limit. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
General purpose messaging. 
 
Scanning of objects from multiple files according a format that follows from the extension of each fi...
 
Utility class to parse command line options. 
 
ROOT TTree parameter settings. 
 
const JLimit & getLimit() const 
Get limit. 
 
static const int NUMBER_OF_PMTS
Total number of PMTs in module. 
 
#define DEBUG(A)
Message macros. 
 
int main(int argc, char *argv[])