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);
48 const JModule module = getModule<JKM3NeT_t>(1001);
59 for (
int i = 0; i != 100; ++i) {
60 buffer.push_back(
JDAQHit(0, 0, tot));
63 frame.add(buffer.size(), buffer.data());
73 buildL0(frame, module, back_inserter(buffer));
75 ASSERT(buffer.size() == (size_t) frame.size(),
"Test of L0 hit building w/o DAQ hit selection " << buffer.size() <<
" ?= " << frame.size());
82 buildL0(frame, module, back_inserter(buffer));
84 ASSERT(buffer.size() == 0
u,
"Test of L0 hit building with DAQ hit selection " << buffer.size() <<
" ?= " << 0
u);
87 buildL0.resetDAQHitSelector();
91 buildL0(frame, module, back_inserter(buffer));
93 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.