24 int main(
int argc,
char **argv)
28 using namespace KM3NETDAQ;
34 JParser<> zap(
"Example program to test DAQ hit selection using JTRIGGER::JBuildL0.");
40 catch(
const exception &error) {
41 FATAL(error.what() << endl);
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);
86 buildL0.resetDAQHitSelector();
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());
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.
T & getInstance(const T &object)
Get static instance from temporary object.
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 a composite optical module.