26 int main(
int argc, 
char **argv)
 
   36     JParser<> zap(
"Example program to test DAQ hit selection using JTRIGGER::JBuildL0.");
 
   42   catch(
const exception &error) {
 
   43     FATAL(error.what() << endl);
 
   47   const JModule module = getModule<JKM3NeT_t>(1001);
 
   58     for (
int i = 0; i != 100; ++i) {
 
   59       buffer.push_back(
JDAQHit(0, 0, tot));
 
   62     frame.
add(buffer.size(), buffer.data());
 
   72   buildL0(frame, module, back_inserter(buffer));
 
   74   ASSERT(buffer.size() == (
size_t) frame.
size(), 
"Test of L0 hit building w/o DAQ hit selection " << buffer.size() << 
" ?= " << frame.
size());
 
   81   buildL0(frame, module, back_inserter(buffer));
 
   83   ASSERT(buffer.size() == 0
u, 
"Test of L0 hit building with DAQ hit selection " << buffer.size() << 
" ?= " << 0
u);
 
   90   buildL0(frame, module, back_inserter(buffer));
 
   92   ASSERT(buffer.size() == (
size_t) frame.
size(), 
"Test of L0 hit building w/o DAQ hit selection " << buffer.size() << 
" ?= " << frame.
size());
 
int main(int argc, char **argv)
 
Basic data structure for L0 hit.
 
General purpose messaging.
 
#define ASSERT(A,...)
Assert macro.
 
Data structure for optical module.
 
Utility class to parse command line options.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Basic data structure for time and time over threshold information of hit.
 
Data structure for a composite optical module.
 
int getID() const
Get identifier.
 
Utility class to parse command line options.
 
unsigned char JTOT_t
time over threshold [ns]
 
Data frame of one optical module.
 
JDAQSuperFrame & add(const JDAQSuperFrame &super_frame)
Add data from same optical module.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
KM3NeT DAQ data structures and auxiliaries.
 
void setDAQHitSelector(const JDAQHitSelector &selector)
Set DAQ hit selector.
 
void resetDAQHitSelector()
Reset DAQ hit selector.
 
Auxiliary class to select DAQ hits based on time-over-treshold value.