Example program to histogram KM3NETDAQ::JDAQSummaryslice.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <limits>
#include "JDAQ/JDAQSummarysliceIO.hh"
#include "JSupport/JMultipleFileScanner.hh"
#include "JSupport/JSupport.hh"
#include "JTools/JQuantile.hh"
#include "Jeep/JPrint.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Example program to histogram KM3NETDAQ::JDAQSummaryslice.
- Author
- mdejong
Definition in file JDAQStatus.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 24 of file JDAQStatus.cc.
28 using namespace KM3NETDAQ;
36 JParser<> zap(
"Example program to histogram summary data.");
39 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
44 catch(
const exception& error) {
45 FATAL(error.what() << endl);
58 STATUS(
"event: " << setw(10) <<
in.getCounter() <<
'\r');
DEBUG(endl);
66 for (JDAQSummaryslice::const_iterator frame = summary->begin(); frame != summary->end(); ++frame) {
68 if (!frame->testHighRateVeto() && !frame->testFIFOStatus()) {
69 Q[0].
put(frame->getUDPNumberOfReceivedPackets() == (frame->getUDPMaximalSequenceNumber() + 1) ? 1.0 : 0.0);
70 Q[1].
put(frame->hasUDPTrailer() ? 1.0 : 0.0);
75 cout << setw(8) << run <<
' '
Utility class to parse command line options.
Q(UTCMax_s-UTCMin_s)-livetime_s
Auxiliary data structure for floating point format specification.
int getRunNumber() const
Get run number.
Auxiliary class for defining the range of iterations of objects.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
const JLimit & getLimit() const
Get limit.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in