We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a7c03f + 99acf4c commit 57d2cbfCopy full SHA for 57d2cbf
1 file changed
sbnobj/Common/Trigger/ExtraTriggerInfo.h
@@ -252,6 +252,13 @@ struct sbn::ExtraTriggerInfo {
252
// --- END ---- Trigger topology ---------------------------------------------
253
254
255
+ /// Returns the time from the beam gate to the trigger [ns].
256
+ /// Only valid if beam gate timestamp is valid.
257
+ constexpr std::int64_t triggerFromBeamGate() const
258
+ {
259
+ return static_cast<std::int64_t>(triggerTimestamp)
260
+ - static_cast<std::int64_t>(beamGateTimestamp);
261
+ }
262
263
/// Returns whether this object contains any valid information.
264
constexpr bool isValid() const noexcept
0 commit comments