Skip to content

Commit 969df78

Browse files
committed
Merge branch 'release/v09_15_04'
2 parents 2e52ded + ce704f5 commit 969df78

3 files changed

Lines changed: 8 additions & 4 deletions

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.03 LANGUAGES CXX)
17+
project(sbnobj VERSION 09.15.04 LANGUAGES CXX)
1818

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

sbnobj/Common/CRT/CRTHit.hh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ namespace sbn::crt {
2828

2929
uint64_t ts0_s; ///< Second-only part of timestamp T0.
3030
double ts0_s_corr; ///< [Honestly, not sure at this point, it was there since long time (BB)]
31-
3231
double ts0_ns; ///< Timestamp T0 (from White Rabbit), in UTC absolute time scale in nanoseconds from the Epoch.
3332
double ts0_ns_corr; ///< [Honestly, not sure at this point, it was there since long time (BB)]
34-
double ts1_ns; ///< Timestamp T1 ([signal time w.r.t. Trigger time]), in UTC absolute time scale in nanoseconds from the Epoch.
33+
34+
double ts1_ns; ///< Timestamp T1 ([signal time w.r.t. Trigger time]),
3535

3636
int plane; ///< Name of the CRT wall (in the form of numbers).
3737

@@ -47,7 +47,9 @@ namespace sbn::crt {
4747
CRTHit() {}
4848

4949
int64_t ts0() const { return static_cast<int64_t>(ts0_s) * 1'000'000'000LL + static_cast<int64_t>(ts0_ns); }
50-
int64_t ts1() const { return static_cast<int64_t>(ts0_s) * 1'000'000'000LL + static_cast<int64_t>(ts1_ns); }
50+
// T1 is a relative time not a timestamp, so we don't need second-part.
51+
// nano-second part is enough and we saved entire time there.
52+
int64_t ts1() const { return static_cast<int64_t>(ts1_ns); }
5153

5254
};
5355

sbnobj/SBND/Trigger/classes_def.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@
2525

2626
<class name="sbndaq::CRTmetric"/>
2727
<class name="art::Wrapper<sbndaq::CRTmetric>"/>
28+
<class name="std::vector<sbndaq::CRTmetric>"/>
29+
<class name="art::Wrapper< std::vector<sbndaq::CRTmetric> >"/>
2830
</lcgdict>

0 commit comments

Comments
 (0)