DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
triggeralgs::TCMakerADCSimpleWindowAlgorithm Class Reference

#include <TCMakerADCSimpleWindowAlgorithm.hpp>

Inheritance diagram for triggeralgs::TCMakerADCSimpleWindowAlgorithm:
[legend]
Collaboration diagram for triggeralgs::TCMakerADCSimpleWindowAlgorithm:
[legend]

Public Member Functions

void process (const TriggerActivity &, std::vector< TriggerCandidate > &)
 The function that gets call when there is a new activity.
 
void configure (const nlohmann::json &config)
 
- Public Member Functions inherited from triggeralgs::TriggerCandidateMaker
virtual ~TriggerCandidateMaker ()=default
 
void operator() (const TriggerActivity &input_ta, std::vector< TriggerCandidate > &output_tc)
 
virtual bool preprocess (const TriggerActivity &)
 TA pre-processing/filtering.
 
virtual void postprocess (std::vector< TriggerCandidate > &output_tc)
 Post-processing/filtering of the TCs, e.g. prescale.
 
virtual void flush (timestamp_t, std::vector< TriggerCandidate > &)
 

Private Attributes

uint64_t m_activity_count = 0
 

Additional Inherited Members

- Public Attributes inherited from triggeralgs::TriggerCandidateMaker
std::atomic< uint64_t > m_data_vs_system_time = 0
 
std::atomic< uint64_t > m_initial_offset = 0
 
uint64_t m_prescale = 1
 Configurable prescale factor.
 
uint64_t m_tc_count = 0
 TC made count for prescaling.
 
TriggerCandidate::Type m_tc_type_out = TriggerCandidate::Type::kUnknown
 Configurable TC type output.
 

Detailed Description

Definition at line 17 of file TCMakerADCSimpleWindowAlgorithm.hpp.

Member Function Documentation

◆ configure()

void TCMakerADCSimpleWindowAlgorithm::configure ( const nlohmann::json & config)
virtual

Reimplemented from triggeralgs::TriggerCandidateMaker.

Definition at line 40 of file TCMakerADCSimpleWindowAlgorithm.cpp.

41{
43}
virtual void configure(const nlohmann::json &config)

◆ process()

void TCMakerADCSimpleWindowAlgorithm::process ( const TriggerActivity & activity,
std::vector< TriggerCandidate > & cand )
virtual

The function that gets call when there is a new activity.

Implements triggeralgs::TriggerCandidateMaker.

Definition at line 19 of file TCMakerADCSimpleWindowAlgorithm.cpp.

20{
21 // For now, if there is any single activity from any one detector element, emit
22 // a trigger candidate.
23 std::vector<TriggerActivity::TriggerActivityData> ta_list = {static_cast<TriggerActivity::TriggerActivityData>(activity)};
24
26 tc.time_start = activity.time_start;
27 tc.time_end = activity.time_end;
28 tc.time_candidate = activity.time_activity;
29 tc.detid = activity.detid;
30 tc.type = m_tc_type_out;
32
33 tc.inputs = ta_list;
34
35 cand.push_back(tc);
36
37}
TriggerCandidate::Type m_tc_type_out
Configurable TC type output.
std::vector< dunedaq::trgdataformats::TriggerActivityData > inputs

Member Data Documentation

◆ m_activity_count

uint64_t triggeralgs::TCMakerADCSimpleWindowAlgorithm::m_activity_count = 0
private

Definition at line 28 of file TCMakerADCSimpleWindowAlgorithm.hpp.


The documentation for this class was generated from the following files: