Example program to test DAQ hit selection using JTRIGGER::JBuildL0.
More...
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Example program to test DAQ hit selection using JTRIGGER::JBuildL0.
- Author
- mdejong
Definition in file JDAQHitSelector.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 25 of file JDAQHitSelector.cc.
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.
Data structure for a composite optical module.
#define ASSERT(A,...)
Assert macro.
unsigned char JTOT_t
time over threshold [ns]
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Auxiliary class to select DAQ hits based on time-over-treshold value.
Data frame of one optical module.