27  const uint32_t TDC  =  1414808643;           
 
   40    public std::map<uint64_t, timeslice_type>                      
 
   67      for (timeslice_type::iterator collection = this->begin()->second.begin(); collection != this->begin()->second.end(); ++collection) {
 
   69        sort(collection->second.begin(), collection->second.end(), compare);
 
   78        if (timeslice.empty()) {
 
   82        const uint32_t number_of_packets  =  collection->second.size();
 
   93        for (collection_type::const_iterator i = collection->second.begin(); i != collection->second.end(); ++i) {
 
   98          frame.add(size, data);
 
  101        timeslice.push_back(frame);
 
  104      this->erase(this->begin());
 
  153    JParser<> zap(
"Auxiliary program to convert raw CLB data to KM3NETDAQ::JDAQTimeslice data.");
 
  155    zap[
'f'] = 
make_field(inputFile,         
"input file).");
 
  157    zap[
'n'] = 
make_field(numberOfEvents)                               = numeric_limits<int>::max();
 
  158    zap[
'Q'] = 
make_field(queue,             
"queue depth")             = 1000;
 
  164  catch(
const exception& error) {
 
  165    FATAL(error.what() << endl);
 
  179  uint32_t run  = numeric_limits<uint32_t>::max();
 
  182  ifstream in(inputFile.c_str(), ios::binary);
 
  184  for (
int count = 0; count != numberOfEvents && in.read((
char*) &size, 
sizeof(uint32_t)); ++count) {
 
  190    if (in.read(buffer.data(), size)) {
 
  196        if (run == numeric_limits<uint32_t>::max()) {
 
  211            while (data.size() > queue) {
 
  217            WARNING(
"Run numbers differ " << run << 
' ' << header->
runNumber() << 
" -> skip data." << endl);
 
  227  while (!data.empty()) {
 
 
int main(int argc, char **argv)
 
Recording of objects on file according a format that follows from the file name extension.
 
General purpose messaging.
 
#define DEBUG(A)
Message macros.
 
Utility class to parse command line options.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
ROOT TTree parameter settings of various packages.
 
Utility class to parse command line options.
 
Data frame of one optical module.
 
Data structure for UTC time.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
std::vector< JHitW0 > buffer_type
hits
 
KM3NeT DAQ data structures and auxiliaries.
 
static const JBits DAQ_UDP_RECEIVED_PACKETS(0, 15)
Mask of UDP received packets.
 
static const JBits DAQ_UDP_SEQUENCE_NUMBER(16, 31)
Mask of UDP sequence number.
 
static const JBit DAQ_UDP_TRAILER(31)
UDP trailer.
 
std::map< int, range_type > map_type
 
int write(const int value) const
Write given value as bit mask.
 
int write(const int value) const
Write given value as bit mask.
 
uint64_t inMilliSeconds() const