25 int main(
int argc, 
char **argv)
 
   29   using namespace KM3NETDAQ;
 
   35     JParser<> zap(
"Example program to test DAQ hit selection using JTRIGGER::JBuildL0.");
 
   41   catch(
const exception &error) {
 
   42     FATAL(error.what() << endl);
 
   46   const JModule module = getModule<JKM3NeT_t>(1001);
 
   57     for (
int i = 0; i != 100; ++i) {
 
   58       buffer.push_back(
JDAQHit(0, 0, tot));
 
   61     frame.
add(buffer.size(), buffer.data());
 
   71   buildL0(frame, module, back_inserter(buffer));
 
   73   ASSERT(buffer.size() == (size_t) frame.
size(), 
"Test of L0 hit building w/o DAQ hit selection " << buffer.size() << 
" ?= " << frame.
size());
 
   80   buildL0(frame, module, back_inserter(buffer));
 
   82   ASSERT(buffer.size() == 0
u, 
"Test of L0 hit building with DAQ hit selection " << buffer.size() << 
" ?= " << 0
u);
 
   85   buildL0.resetDAQHitSelector();
 
   89   buildL0(frame, module, back_inserter(buffer));
 
   91   ASSERT(buffer.size() == (size_t) frame.
size(), 
"Test of L0 hit building w/o DAQ hit selection " << buffer.size() << 
" ?= " << frame.
size());
 
Utility class to parse command line options. 
 
int main(int argc, char *argv[])
 
Basic data structure for L0 hit. 
 
Data structure for a composite optical module. 
 
Basic data structure for time and time over threshold information of hit. 
 
#define ASSERT(A,...)
Assert macro. 
 
unsigned char JTOT_t
time over threshold [ns] 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
General purpose messaging. 
 
Utility class to parse command line options. 
 
Auxiliary class to select DAQ hits based on time-over-treshold value. 
 
Data frame of one optical module. 
 
JDAQSuperFrame & add(const JDAQSuperFrame &super_frame)
Add data from same optical module. 
 
Data structure for optical module.