DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TriggerActivityData.hpp
Go to the documentation of this file.
1
8
9#ifndef TRGDATAFORMATS_INCLUDE_TRGDATAFORMATS_TRIGGERACTIVITYDATA_HPP_
10#define TRGDATAFORMATS_INCLUDE_TRGDATAFORMATS_TRIGGERACTIVITYDATA_HPP_
11
13#include <cstdint>
14
16
18{
19 enum class Type
20 {
22 kTPC = 1,
23 kPDS = 2,
24 };
25
41
42 // Update this version number if there are any changes to the in-memory representation of this class!
43 static constexpr version_t s_trigger_activity_version = 2; // NOLINT(build/unsigned)
44
45 version_t version = s_trigger_activity_version; // NOLINT(build/unsigned)
50 channel_t channel_start = INVALID_CHANNEL; // NOLINT(build/unsigned)
51 channel_t channel_end = INVALID_CHANNEL; // NOLINT(build/unsigned)
52 channel_t channel_peak = INVALID_CHANNEL; // NOLINT(build/unsigned)
53 uint64_t adc_integral = 0; // NOLINT(build/unsigned)
54 uint16_t adc_peak = 0; // NOLINT(build/unsigned)
55 detid_t detid = INVALID_DETID; // NOLINT(build/unsigned)
56 Type type = Type::kUnknown; // NOLINT(build/unsigned)
57 Algorithm algorithm = Algorithm::kUnknown; // NOLINT(build/unsigned)
58};
59
60} // namespace dunedaq::trgdataformats
61
62#endif // TRGDATAFORMATS_INCLUDE_TRGDATAFORMATS_TRIGGERACTIVITYDATA_HPP_
constexpr channel_t INVALID_CHANNEL
Definition Types.hpp:54
constexpr detid_t INVALID_DETID
Definition Types.hpp:38
constexpr timestamp_t INVALID_TIMESTAMP
Definition Types.hpp:22