DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Set.hpp
Go to the documentation of this file.
1
9#ifndef TRIGGER_INCLUDE_TRIGGER_SET_HPP_
10#define TRIGGER_INCLUDE_TRIGGER_SET_HPP_
11
15
16#include <cstdint>
17#include <vector>
18
19namespace dunedaq::trigger {
20
24template<class T>
25class Set
26{
27public:
28 using element_t = T;
31
32 enum Type
33 {
36 kHeartbeat = 2
37 };
38
39 // An incremental count of how many Sets have been produced by this source
40 // At TPSet rates seen in one protodune felix link, 32bits overflows in a week.
41 using seqno_t = uint64_t; // NOLINT(build/unsigned)
43
44 // The current run number
46
47 // Identify the instance creator/stream/source of this set.
50
51 // Whether this Set is a regular bag-of-objects or a heartbeat
52 Type type{ kUnknown };
53
54 // The earliest timestamp inspected to form this Set
56
57 // The latest timestamp inspected to form this Set
59
60 // The TPs/TAs themselves. Needs a better name!
61 std::vector<T> objects;
62};
63
64} // namespace dunedaq::trigger
65
66#endif // TRIGGER_INCLUDE_TRIGGER_SET_HPP_
67
68// Local Variables:
69// c-basic-offset: 2
70// End:
A set of TPs or TAs in a given time window, defined by its start and end times.
Definition Set.hpp:26
std::vector< T > objects
Definition Set.hpp:61
daqdataformats::run_number_t run_number
Definition Set.hpp:45
timestamp_t start_time
Definition Set.hpp:55
origin_t origin
Definition Set.hpp:48
daqdataformats::timestamp_t timestamp_t
Definition Set.hpp:30
uint64_t seqno_t
Definition Set.hpp:41
timestamp_t end_time
Definition Set.hpp:58
uint32_t run_number_t
Type used to represent run number.
Definition Types.hpp:20
uint64_t timestamp_t
Type used to represent DUNE timing system timestamps.
Definition Types.hpp:36
SourceID is a generalized representation of the source of a piece of data in the DAQ....
Definition SourceID.hpp:32
static constexpr ID_t s_invalid_id
A value for the id meant to convey that it doesn't identify a data source and shouldn't be worked wit...
Definition SourceID.hpp:60