Definition at line 42 of file EXTRetriever_module.cc.
sbn::EXTRetriever::EXTRetriever |
( |
Parameters const & |
params | ) |
|
|
explicit |
Definition at line 85 of file EXTRetriever_module.cc.
90 produces< std::vector< sbn::EXTCountInfo >, art::InSubRun >();
std::string raw_data_label_
void sbn::EXTRetriever::beginSubRun |
( |
art::SubRun & |
sr | ) |
|
|
override |
void sbn::EXTRetriever::endSubRun |
( |
art::SubRun & |
sr | ) |
|
|
override |
Definition at line 144 of file EXTRetriever_module.cc.
148 auto p = std::make_unique< std::vector< sbn::EXTCountInfo > >(
fOutExtInfos);
150 sr.put(std::move(
p));
std::vector< sbn::EXTCountInfo > fOutExtInfos
void sbn::EXTRetriever::produce |
( |
art::Event & |
e | ) |
|
|
override |
Definition at line 94 of file EXTRetriever_module.cc.
103 auto const & raw_data =
e.getProduct< std::vector<artdaq::Fragment> >({
raw_data_label_,
"ICARUSTriggerUDP" });
105 unsigned int number_of_gates_since_previous_event = 0;
107 for(
auto raw_datum : raw_data){
109 icarus::ICARUSTriggerUDPFragment frag(raw_datum);
110 std::string data = frag.GetDataString();
111 char *buffer =
const_cast<char*
>(data.c_str());
112 icarus::ICARUSTriggerInfo datastream_info = icarus::parse_ICARUSTriggerString(buffer);
113 gate_type = datastream_info.gate_type;
114 number_of_gates_since_previous_event = frag.getDeltaGatesBNB();
std::string raw_data_label_
std::vector< sbn::EXTCountInfo > fOutExtInfos
int gates_since_last_trigger
std::string sbn::EXTRetriever::raw_data_label_ |
|
private |
int sbn::EXTRetriever::TotalEXTCounts |
|
private |
The documentation for this class was generated from the following file: