-
Notifications
You must be signed in to change notification settings - Fork 13
Light Calorimetry: Add obj for light calo objects #158
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 10 commits
d20b9a3
e39af6a
fa0960e
878f4bd
7011f08
6d13a02
3d1aa8c
94bb6d1
e7249f6
234ce58
249628a
baddfca
6d4ab84
50391f8
9f24cf3
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 @@ | ||
| #include "sbnobj/Common/Reco/LightCalo.h" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| /** | ||
| * @file sbnobj/Common/Reco/LightCalo.h | ||
| * @brief Defines data structures for light calorimetry products. | ||
| * @author Lynn Tung | ||
| * @date December 2nd, 2025 | ||
| * | ||
| */ | ||
|
|
||
| #ifndef sbnobj_LightCalo_H | ||
| #define sbnobj_LightCalo_H | ||
|
|
||
| #include <limits> | ||
|
|
||
| namespace sbn{ | ||
|
|
||
| /** | ||
| * @brief A simple class to store reconstructed charge, light, and visible energy. | ||
| */ | ||
|
|
||
| class LightCalo { | ||
| public: | ||
|
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. This is now redundant ( |
||
|
|
||
| // NaN value to initialize data members | ||
| static constexpr double nan = std::numeric_limits<double>::signaling_NaN(); | ||
|
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. Somehow the capitalisation |
||
|
|
||
| /// @name Reconstructed charge, light, and visible energy data members. | ||
| /// @{ | ||
| double charge = nan; ///< Total charge in a reconstructed interaction (recob::Slice) [# of electrons] | ||
| double light = nan; ///< Total light in a reconstructed interaction (recob::Slice + recob::OpFlash) [# of photons] | ||
| double energy = nan; ///< Total visible energy (sum of charge+light) for a reconstructed interaction [GeV] | ||
| int bestplane = -1; ///< Plane that was used for the total charge | ||
| /// @} | ||
|
|
||
| /** | ||
| * Default constructor. | ||
| */ | ||
| LightCalo() = default; | ||
| LightCalo(double charge, double light, double energy, int bestplane) | ||
| : charge(charge) | ||
| , light(light) | ||
| , energy(energy) | ||
| , bestplane(bestplane) | ||
| {} | ||
|
lynnt20 marked this conversation as resolved.
Outdated
|
||
| }; | ||
| } | ||
|
|
||
| #endif | ||
Uh oh!
There was an error while loading. Please reload this page.