Example program to test DAQ hit selection using JTRIGGER::JBuildL0.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <vector>
#include "km3net-dataformat/online/JDAQHit.hh"
#include "JDetector/JModule.hh"
#include "JTrigger/JHit.hh"
#include "JTrigger/JHitR0.hh"
#include "JTrigger/JBuildL0.hh"
#include "JTrigger/JDAQHitToTSelector.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
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 24 of file JDAQHitSelector.cc.
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.
Data structure for a composite optical module.
#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
Auxiliary class to select DAQ hits based on time-over-treshold value.
Data frame of one optical module.