File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414cmake_minimum_required (VERSION 3.19 FATAL_ERROR )
1515
1616find_package (cetmodules 3.20.00 REQUIRED )
17- project (sbnobj VERSION 09.15.07 LANGUAGES CXX )
17+ project (sbnobj VERSION 09.15.08 LANGUAGES CXX )
1818
1919message (STATUS
2020 "\n -- ============================================================================="
Original file line number Diff line number Diff line change @@ -252,6 +252,13 @@ struct sbn::ExtraTriggerInfo {
252252 // --- END ---- Trigger topology ---------------------------------------------
253253
254254
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+ }
255262
256263 // / Returns whether this object contains any valid information.
257264 constexpr bool isValid () const noexcept
You can’t perform that action at this time.
0 commit comments