DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TriggerCandidateData.hpp
Go to the documentation of this file.
1
15
16#ifndef TRGDATAFORMATS_INCLUDE_TRGDATAFORMATS_TRIGGERCANDIDATEDATA_HPP_
17#define TRGDATAFORMATS_INCLUDE_TRGDATAFORMATS_TRIGGERCANDIDATEDATA_HPP_
18
20
21#include <array>
22#include <cstdint>
23#include <map>
24#include <string>
25
27
29{
30 // If you add an enum to TriggerCandidateData::Type, declare it
31 // second-to-last (just above kFinalEnum) and ensure its value is +1
32 // greater than the enum above it
33
34 enum class Type : int
35 {
36 kUnknown = 0,
37 kTiming = 1,
38 kTPCLowE = 2,
39 kSupernova = 3,
40 kRandom = 4,
41 kPrescale = 5,
42 kADCSimpleWindow = 6,
43 kHorizontalMuon = 7,
44 kMichelElectron = 8,
45 kPlaneCoincidence = 9,
46 kDBSCAN = 10,
47 kChannelDistance = 11,
48 kBundle = 12,
49 kCTBFakeTrigger = 13,
50 kCTBBeam = 14,
51 kCTBBeamChkvHL = 15,
52 kCTBCustomD = 16,
53 kCTBCustomE = 17,
54 kCTBCustomF = 18,
55 kCTBCustomG = 19,
56 kCTBBeamChkvHLx = 20,
57 kCTBBeamChkvHxL = 21,
58 kCTBBeamChkvHxLx = 22,
59 kNeutronSourceCalib = 23,
60 kChannelAdjacency = 24,
61 kCIBFakeTrigger = 25,
62 kCIBLaserTriggerP1 = 26,
63 kCIBLaserTriggerP2 = 27,
64 kCIBLaserTriggerP3 = 28,
65 kCTBOffSpillSnapshot = 29,
66 kCTBOffSpillCosmicJura = 30,
67 kCTBOffSpillCRTCosmic= 31,
68 kCTBBeamSpillStart = 32,
69 kCTBBeamSpillSnapshot = 33,
70 kCTBCustomC = 34,
71 kCTBCustomPulseTrain = 35,
72 kDTSPulser = 36,
73 kDTSCosmic = 37,
74 kSSPLEDCalibration = 38,
75 kProtoDUNEBSMWindow = 39,
76 kFinalEnum
77 };
78
79 enum class Algorithm : int
80 {
81 kUnknown = 0,
82 kSupernova = 1,
83 kHSIEventToTriggerCandidate = 2,
84 kPrescale = 3,
85 kADCSimpleWindow = 4,
86 kHorizontalMuon = 5,
87 kMichelElectron = 6,
88 kPlaneCoincidence = 7,
89 kCustom = 8,
90 kDBSCAN = 9,
91 kChannelDistance = 10,
92 kBundle = 11,
93 kChannelAdjacency = 12,
94 };
95
97
102 // TODO P. Rodrigues 2021-01-06: This was originally a
103 // std::vector<detid_t> but that messes up the overlay scheme, so
104 // I've changed it for now to be just a detid_t. Need to work out
105 // what to do longer term
109};
110
112 string_to_trigger_candidate_type(const std::string& name);
113
114 inline std::string
116
117} // namespace dunedaq::trgdataformats
118
120
121// This static_assert is meant to alert the developer to bump the
122// version if variables are added or removed in TriggerCandidateData
123static_assert(
126 "An unexpected size for the current version of TriggerCandidateData was found"
127 );
128
129#endif // TRGDATAFORMATS_INCLUDE_TRGDATAFORMATS_TRIGGERCANDIDATEDATA_HPP_
TriggerCandidateData::Type string_to_trigger_candidate_type(const std::string &name)
std::string trigger_candidate_type_to_string(const TriggerCandidateData::Type type)
static constexpr timestamp_t s_invalid_timestamp
Definition Types.hpp:63
static constexpr detid_t s_invalid_detid
Definition Types.hpp:64