-
Notifications
You must be signed in to change notification settings - Fork 14
PMT Software Trigger class #174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f29d462
05f3484
e0f1688
d1d5ae1
3819845
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| /** | ||
| * @file /sbnanaobj/StandardRecord/SRSoftwareTrigger.h | ||
| * @brief Defines CAF data structures to store sbnd::trigger::pmtSoftwareTrigger objects (header). | ||
| * @author Lynn Tung | ||
| * @date November 12, 2025 | ||
| * | ||
| */ | ||
|
|
||
| #ifndef SRSOFTWARETRIGGER_H | ||
| #define SRSOFTWARETRIGGER_H | ||
|
|
||
| #include "sbnanaobj/StandardRecord/SRConstants.h" | ||
|
|
||
| namespace caf{ | ||
|
|
||
| /** | ||
| * @brief A struct to store software trigger information for SBND Data and MC | ||
| */ | ||
|
|
||
| struct SRSoftwareTrigger { | ||
| int npmts = caf::kUninitializedInt; | ||
| float flash_peaktime = caf::kSignalingNaN; | ||
| float flash_peakpe = caf::kSignalingNaN; | ||
| }; | ||
| } | ||
|
|
||
| #endif | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,8 +5,10 @@ | |||||
| <!-- art::Wrappers for these products are defined in CAFMaker --> | ||||||
|
|
||||||
| <lcgdict> | ||||||
| <class name="caf::StandardRecord" ClassVersion="15"> | ||||||
| <version ClassVersion="15" checksum="1805006132"/> | ||||||
| <class name="caf::StandardRecord" ClassVersion="17"> | ||||||
| <version ClassVersion="17" checksum="3621177915"/> | ||||||
| <version ClassVersion="16" checksum="3162654488"/> | ||||||
| <version ClassVersion="15" checksum="2636549707"/> | ||||||
|
Comment on lines
+8
to
+11
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please regenerate this file. |
||||||
| <version ClassVersion="14" checksum="1860171062"/> | ||||||
| <version ClassVersion="13" checksum="1979816256"/> | ||||||
| <version ClassVersion="12" checksum="3984422068"/> | ||||||
|
|
@@ -439,6 +441,8 @@ | |||||
| <version ClassVersion="10" checksum="4144120809"/> | ||||||
| </class> | ||||||
|
|
||||||
| <class name="caf::SRSoftwareTrigger" /> | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add
Suggested change
|
||||||
|
|
||||||
| <enum name="caf::Det_t" ClassVersion="10"/> | ||||||
| <enum name="caf::Plane_t" ClassVersion="10"/> | ||||||
| <enum name="caf::Wall_t" ClassVersion="10"/> | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Place a comment explaining units and details. For example:
I don't know if these descriptions are correct (that's why some should be there! 😄).
Exception: the time unit can be omitted if it is the standard CAF one (microseconds). However, given that sometimes trigger-related times are specified in nanoseconds, it's still worth to be explicit.