@@ -21,6 +21,9 @@ namespace sbnd::timing {
2121 uint64_t fTimestamp ; // /< Timestamp of signal [ns]
2222 uint64_t fOffset ; // /< Channel specific offset [ns]
2323 std::string fName ; // /< Name of channel input
24+
25+ // New addition for sbndcode version > v10_04_??
26+ uint64_t fTimestampPs ; // /< Timestamp of signal [ps]
2427
2528 public:
2629
@@ -30,24 +33,28 @@ namespace sbnd::timing {
3033 DAQTimestamp ();
3134
3235 /* *
33- * Constructor to set all parameters
36+ * Constructor to set 4 parameters but timestamp ps
37+ * For decoding with sbndcode <= v10_04_??
3438 *
3539 * @param channel Hardware channel
36- * @param timestamp Timestamp of signal [ns]
40+ * @param timestamp Timestamp of signal [ns] in UTC format
3741 * @param offset Channel specific offset [ns]
3842 * @param name Name of channel input
3943 */
4044 DAQTimestamp (uint32_t channel, uint64_t timestamp, uint64_t offset, std::string name);
45+ DAQTimestamp (uint32_t channel, uint64_t timestamp, uint64_t offset, std::array<char , 8 > name);
4146
4247 /* *
43- * Constructor to set all parameters, using array for name
48+ * Constructor to set all parameters
49+ * For decoding with sbndcode > v10_04_??
4450 *
4551 * @param channel Hardware channel
46- * @param timestamp Timestamp of signal [ns]
52+ * @param timestamp Timestamp of signal [ns] in UTC format
4753 * @param offset Channel specific offset [ns]
4854 * @param name Name of channel input
4955 */
50- DAQTimestamp (uint32_t channel, uint64_t timestamp, uint64_t offset, std::array<char , 8 > name);
56+ DAQTimestamp (uint32_t channel, uint64_t timestamp, uint64_t offset, std::string name, uint64_t timestampPs);
57+ DAQTimestamp (uint32_t channel, uint64_t timestamp, uint64_t offset, std::array<char , 8 > name, uint64_t timestampPs);
5158
5259 /* *
5360 * Destructor
@@ -61,6 +68,9 @@ namespace sbnd::timing {
6168 uint64_t Timestamp () const ;
6269 uint64_t Offset () const ;
6370 std::string Name () const ;
71+
72+ // New addition for sbndcode version > v10_04_??
73+ uint64_t TimestampPs () const ;
6474
6575 /* *
6676 * Setters
@@ -69,6 +79,9 @@ namespace sbnd::timing {
6979 void SetTimestamp (uint64_t timestamp);
7080 void SetOffset (uint64_t offset);
7181 void SetName (std::string name);
82+
83+ // New addition for sbndcode version > v10_04_??
84+ void SetTimestampPs (uint64_t timestamp);
7285 };
7386}
7487
0 commit comments