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.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 26 of file JDAQHitSelector.cc.
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());
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
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.
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.