Skip to content

Commit f880dff

Browse files
committed
Merge branch 'release/v09_15_08'
2 parents d42e601 + 8fa9375 commit f880dff

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
cmake_minimum_required(VERSION 3.19 FATAL_ERROR)
1515

1616
find_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

1919
message(STATUS
2020
"\n-- ============================================================================="

sbnobj/Common/Trigger/ExtraTriggerInfo.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)