Skip to content

Commit 5c21b16

Browse files
committed
add doxygen style comments
1 parent 123c48d commit 5c21b16

5 files changed

Lines changed: 64 additions & 35 deletions

File tree

sbnanaobj/StandardRecord/SRSBNDFrameShiftInfo.cxx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
////////////////////////////////////////////////////////////////////////
2-
// \file SRSBNDFrame.cxx
3-
////////////////////////////////////////////////////////////////////////
1+
/*
2+
* @file /sbnanaobj/StandardRecord/SRSBNDFrameShiftInfo.cxx
3+
* @brief Defines CAF data structures to store sbnd::timing::FrameShiftInfo (docdb#43090).
4+
* @author Vu Chi Lan Nguyen
5+
* @date August 29, 2025
6+
*
7+
*/
48

59
#include "sbnanaobj/StandardRecord/SRSBNDFrameShiftInfo.h"
610

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,38 @@
1-
////////////////////////////////////////////////////////////////////////
2-
// \file SRSBNDFrameShiftInfo.h
3-
////////////////////////////////////////////////////////////////////////
1+
/*
2+
* @file /sbnanaobj/StandardRecord/SRSBNDFrameShiftInfo.h
3+
* @brief Defines CAF data structures to store sbnd::timing::FrameShiftInfo (docdb#43090).
4+
* @author Vu Chi Lan Nguyen
5+
* @date August 29, 2025
6+
*
7+
*/
8+
49
#ifndef SRSBNDFRAMESHIFTINFO_H
510
#define SRSBNDFRAMESHIFTINFO_H
611

712
#include <cstdint>
813
namespace caf
914
{
15+
/*
16+
* @brief A struct to store shifts across different reference frames from sbnd::timing::FrameShiftInfo for SBND Data
17+
*
18+
* Each shift is in [ns]
19+
*
20+
*/
21+
1022
class SRSBNDFrameShiftInfo
1123
{
1224
public:
1325
SRSBNDFrameShiftInfo();
1426
virtual ~SRSBNDFrameShiftInfo() {}
1527

16-
uint16_t timingType;
17-
double frameTdcCrtt1;
18-
double frameTdcBes;
19-
double frameTdcRwm;
20-
double frameHltCrtt1;
21-
double frameHltBeamGate;
22-
double frameApplyAtCaf;
28+
uint16_t timingType; ///< Types of decoded frames: 0 - SPEC TDC ETRIG, 1 - HLT ETRIG, 2 - Do Nothing
29+
double frameTdcCrtt1; ///< Shift from decoded frame to SPEC-TDC CRT T1 [ns]
30+
double frameTdcBes; ///< Shift from decoded frame to SPEC-TDC BES [ns]
31+
double frameTdcRwm; ///< Shift from decoded frame to SPEC-TDC RWM [ns]
32+
double frameHltCrtt1; ///< Shift from decoded frame to HLT CRT T1 [ns]
33+
double frameHltBeamGate; ///< Shift from decoded frame to HLT Beam Gate [ns]
34+
double frameApplyAtCaf; ///< Frame to shift to when running at CAF stage
2335
};
2436
} // end namespace
25-
2637
#endif // SRSBNDFRAMESHIFTINFO_H
2738
//////////////////////////////////////////////////////////////////////////////

sbnanaobj/StandardRecord/SRSBNDTimingInfo.cxx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
////////////////////////////////////////////////////////////////////////
2-
// \file SRSBNDTimingInfo.cxx
3-
////////////////////////////////////////////////////////////////////////
1+
/*
2+
* @file /sbnanaobj/StandardRecord/SRSBNDTimingInfo.cxx
3+
* @brief Defines CAF data structures to store sbnd::timing::TimingInfo (docdb#43090).
4+
* @author Vu Chi Lan Nguyen
5+
* @date August 29, 2025
6+
*
7+
*/
48

59
#include "sbnanaobj/StandardRecord/SRSBNDTimingInfo.h"
610

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,40 @@
1-
////////////////////////////////////////////////////////////////////////
2-
// \file SRSBNDTimingInfo.h
3-
////////////////////////////////////////////////////////////////////////
4-
#ifndef SRSBNDFRAME_H
5-
#define SRSBNDFRAME_H
1+
/*
2+
* @file /sbnanaobj/StandardRecord/SRSBNDTimingInfo.h
3+
* @brief Defines CAF data structures to store sbnd::timing::TimingInfo (docdb#43090).
4+
* @author Vu Chi Lan Nguyen
5+
* @date August 29, 2025
6+
*
7+
*/
8+
9+
#ifndef SRSBNDTIMINGINFO_H
10+
#define SRSBNDTIMINGINFO_H
611

712
#include <stdint.h>
813

914
namespace caf
1015
{
16+
/*
17+
* @brief A struct to store important timestamps from sbnd::timing::TimingInfo for SBND data
18+
*
19+
* Each timestamp is in UNIX Timestamp Format [ns]
20+
*
21+
*/
22+
1123
class SRSBNDTimingInfo
1224
{
1325
public:
1426
SRSBNDTimingInfo();
1527
virtual ~SRSBNDTimingInfo() {}
1628

17-
uint64_t rawDAQHeaderTimestamp;
18-
uint64_t tdcCrtt1;
19-
uint64_t tdcBes;
20-
uint64_t tdcRwm;
21-
uint64_t tdcEtrig;
22-
uint64_t hltCrtt1;
23-
uint64_t hltEtrig;
24-
uint64_t hltBeamGate;
29+
uint64_t rawDAQHeaderTimestamp; ///< Timestamp when the event is built by the event builder at DAQ-level
30+
uint64_t tdcCrtt1; ///< Timestamp of BNB stream CRT T1 Reset recorded by the SPEC-TDC
31+
uint64_t tdcBes; ///< Timestamp of BES signal sent by MFTU recorded by the SPEC-TDC
32+
uint64_t tdcRwm; ///< Timestamp of RWM signal recorded by the SPEC-TDC
33+
uint64_t tdcEtrig; ///< Timestamp of Event Trigger (ETRIG) sent by the PTB recorded by the SPEC-TDC
34+
uint64_t hltCrtt1; ///< Timestamp of BNB and Offbeam stream CRT T1 Reset High Level Trigger (HLT) created by the PTB
35+
uint64_t hltEtrig; ///< Timestamp of ETRIG HLT created by the PTB
36+
uint64_t hltBeamGate; ///< Timestamp of Beam Gate Acceptance HLT created by the PTB
2537
};
2638
} // end namespace
27-
28-
#endif // SRSBNDFRAME_H
39+
#endif // SRSBNDTIMINGINFO_H
2940
//////////////////////////////////////////////////////////////////////////////

sbnanaobj/StandardRecord/StandardRecord.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ namespace caf
5959
int ncrtpmt_matches; ///<Number of CRT-PMT Matches in event
6060
std::vector<SRCRTPMTMatch> crtpmt_matches; ///< CRT-PMT matches in event
6161
bool pass_flashtrig; ///< Whether this Record passed the Flash Trigger requirement
62-
SRSBNDFrameShiftInfo sbnd_frames; ///< List of Frame Shift in event (SBND)
63-
SRSBNDTimingInfo sbnd_timings; ///< List of Timing Info in event in Unix format(SBND)
64-
62+
SRSBNDFrameShiftInfo sbnd_frames; ///< List of Frame Shift in event in unit [ns] (SBND)
63+
SRSBNDTimingInfo sbnd_timings; ///< List of Timing Info in event in UNIX timestamp format(SBND)
6564

6665
};
6766

0 commit comments

Comments
 (0)