33         << setw(3)  << (int) hit.
getPMT() << 
' '  
   34         << setw(8)  << hex << hit.
getT()  << 
' '  
   35         << setw(10) << dec << hit.
getT()  << 
' '  
   36         << setw(3)  << (int) hit.
getToT();
 
   45   void print(std::ostream& out, 
const int type)
 
   52     case JChecksum::TIME_t:
 
   56     case JChecksum::ETDC_t:
 
   60     case JChecksum::EPMT_t:
 
   64     case JChecksum::EUDP_t:
 
   68     case JChecksum::SIZE_t:
 
   86 int main(
int argc, 
char **argv)
 
   90   using namespace KM3NETDAQ;
 
  101     JParser<> zap(
"Example program to histogram timeslice data.");
 
  104     zap[
'n'] = 
make_field(numberOfEvents)      = JLimit::max();
 
  105     zap[
'C'] = 
make_field(selector)            = getROOTClassSelection<JDAQTimesliceTypes_t>();
 
  106     zap[
'N'] = 
make_field(
N,       
"number of rows to print")  = 10;
 
  107     zap[
'R'] = 
make_field(rate_Hz, 
"high-rate veto [Hz]")      = 0.0;
 
  112   catch(
const exception& error) {
 
  113     FATAL(error.what() << endl);
 
  127     STATUS(
"event: " << setw(10) << counter << 
'\r'); 
DEBUG(endl);
 
  131     for (JDAQTimeslice::const_iterator frame = timeslice->begin(); frame != timeslice->end(); ++frame) {
 
  137         if (error->pos >= 0) {
 
  139           const int pmt = (*frame)[error->pos].getPMT();
 
  142                << setw(10) << frame->getModuleID() << 
'.' << setw(2) << setfill(
'0') << pmt << setfill(
' ')  << 
' ' 
  143                << setw(8)  << frame->getFrameIndex()                                                         << 
' '  
  144                << setw(6)  << error->pos           << 
'/' << setw(8)  << frame->size()                       << 
' ' 
  145                << setw(2)  << error->type                                                                    << 
' ';
 
  148             cerr << setw(1)  << frame->testHighRateVeto(pmt)
 
  149                  << setw(1)  << frame->testFIFOStatus  (pmt)                                                 << 
' ';
 
  152           cerr << setw(4)  << frame->getUDPNumberOfReceivedPackets()                                         << 
'/'  
  153                << setw(4)  << frame->getUDPMaximalSequenceNumber();
 
  157           print(cerr, error->type);
 
  159           cerr << endl << endl;
 
  161           deque<JDAQHit> buffer;
 
  163           for (
int i = error->pos - 1, 
n = 0; i >= 0 && 
n <= 
N; --i) {
 
  164             if ((*frame)[i].getPMT() == (*frame)[error->pos].getPMT()) {
 
  165               buffer.push_front((*frame)[i]);
 
  170           for (deque<JDAQHit>::const_iterator i = buffer.begin(); i != buffer.end(); ++i) {
 
  171             print(cerr, *i); cerr << endl;
 
  174           print(cerr, (*frame)[error->pos]);
 
  176           cerr << 
" <<< " << endl;
 
  178           for (
int i = error->pos + 1, 
n = 0; i < frame->size() && 
n <= 
N; ++i) {
 
  179             if ((*frame)[i].getPMT() == (*frame)[error->pos].getPMT()) {
 
  180               print(cerr, (*frame)[i]); cerr << endl;
 
  188                << setw(10) << frame->getModuleID() << 
' ' << setw(2) << 
' '                                  << 
' ' 
  189                << setw(8)  << frame->getFrameIndex()                                                         << 
' '  
  190                << setw(6)  << error->pos           << 
'/' << setw(8)  << frame->size()                       << 
' ' 
  191                << setw(2)  << error->type                                                                    << 
' ';
 
  193           cerr << setw(1)  << 
' '                                    
  194                << setw(1)  << 
' '                                                                            << 
' ';
 
  196           cerr << setw(4)  << frame->getUDPNumberOfReceivedPackets()                                         << 
'/'  
  197                << setw(4)  << frame->getUDPMaximalSequenceNumber();
 
  201           print(cerr, error->type);
 
  203           cerr << endl << endl;
 
Utility class to parse command line options. 
 
int main(int argc, char *argv[])
 
ROOT TTree parameter settings of various packages. 
 
Auxiliary class to select ROOT class based on class name. 
 
then JShowerPostfit f $INPUT_FILE o $OUTPUT_FILE N
 
Long64_t counter_type
Type definition for counter. 
 
result_type::const_iterator const_iterator
 
Auxiliary class for multiplexing object iterators. 
 
JTDC_t getT() const 
Get time. 
 
JPMT_t getPMT() const 
Get PMT. 
 
static const JChecksum checksum
Function object to perform check-sum of raw data. 
 
static int MAXIMAL_FRAME_SIZE
Maximal frame size. 
 
JTOT_t getToT() const 
Get time-over-threshold. 
 
Auxiliary class for defining the range of iterations of objects. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
double getFrameTime()
Get frame time duration. 
 
virtual const pointer_type & next() override
Get next element. 
 
virtual bool hasNext() override
Check availability of next element. 
 
General purpose messaging. 
 
Scanning of objects from multiple files according a format that follows from the extension of each fi...
 
General purpose class for object reading from a list of file names. 
 
Utility class to parse command line options. 
 
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. 
 
static const int NUMBER_OF_PMTS
Total number of PMTs in module. 
 
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
 
const result_type & get(const JDAQSuperFrame &frame) const 
Check sum.