DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TriggerPrimitive.hpp
Go to the documentation of this file.
1
9#ifndef TRGDATAFORMATS_INCLUDE_TRGDATAFORMATS_TRIGGERPRIMITIVE_HPP_
10#define TRGDATAFORMATS_INCLUDE_TRGDATAFORMATS_TRIGGERPRIMITIVE_HPP_
11
13
14#include <bitset>
15#include <cstddef>
16#include <cstdint>
17#include <iostream>
18#include <limits>
19#include <type_traits>
20
22
27{
28 static constexpr uint8_t s_trigger_primitive_version = 2;
29
30 // Metadata.
31 uint64_t version : 8;
32 uint64_t flag : 8;
33 uint64_t detid : 8;
34
35 // Physics data.
36 uint64_t channel : 24;
37
39 uint64_t time_start : 64;
40 uint64_t samples_to_peak : 16;
41
42 uint64_t adc_integral : 32;
43 uint64_t adc_peak : 16;
44
56};
57
58} // namespace dunedaq::trgdataformats
59
60#endif // TRGDATAFORMATS_INCLUDE_TRGDATAFORMATS_TRIGGERPRIMITIVE_HPP_
constexpr uint16_t INVALID_SAMPLES_OVER_THRESHOLD
Definition Types.hpp:26
constexpr detid_t INVALID_DETID
Definition Types.hpp:38
constexpr uint16_t INVALID_SAMPLES_TO_PEAK
Definition Types.hpp:28
constexpr uint32_t INVALID_TP_CHANNEL
Definition Types.hpp:57
constexpr timestamp_t INVALID_TIMESTAMP
Definition Types.hpp:22
A single energy deposition on a TPC or PDS channel.
static constexpr uint8_t s_trigger_primitive_version