Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
cmake_minimum_required(VERSION 3.19 FATAL_ERROR)

find_package(cetmodules 3.20.00 REQUIRED)
project(sbnobj VERSION 10.03.02 LANGUAGES CXX)
project(sbnobj VERSION 10.03.02.01 LANGUAGES CXX)

message(STATUS
"\n-- ============================================================================="
Expand Down
1 change: 1 addition & 0 deletions sbnobj/Common/Reco/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ cet_make_library(
CNNScore.cc
CRUMBSResult.cc
FlashTriggerPrimitive.cc
LightCalo.cc
MVAPID.cc
MergedTrackInfo.cc
OpT0FinderResult.cc
Expand Down
1 change: 1 addition & 0 deletions sbnobj/Common/Reco/LightCalo.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "sbnobj/Common/Reco/LightCalo.h"
41 changes: 41 additions & 0 deletions sbnobj/Common/Reco/LightCalo.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* @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.
*/

struct LightCalo {
public:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now redundant (struct members are public by default).


// NaN value to initialize data members
static constexpr double nan = std::numeric_limits<double>::signaling_NaN();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow the capitalisation NaN is so "standard" that even C++, that uses all small letters, uses it. Consider replacing nan with NaN.


/// @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;
};
}

#endif
1 change: 1 addition & 0 deletions sbnobj/Common/Reco/classes.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "sbnobj/Common/Reco/VertexHit.h"
#include "sbnobj/Common/Reco/MVAPID.h"
#include "sbnobj/Common/Reco/CRUMBSResult.h"
#include "sbnobj/Common/Reco/LightCalo.h"
#include "sbnobj/Common/Reco/OpT0FinderResult.h"
#include "sbnobj/Common/Reco/CNNScore.h"
#include "sbnobj/Common/Reco/TPCPMTBarycenterMatch.h"
Expand Down
25 changes: 24 additions & 1 deletion sbnobj/Common/Reco/classes_def.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,31 @@
<class name="art::Assns<sbn::crt::CRTHit, recob::Track, void>" />
<class name="art::Wrapper<art::Assns<sbn::crt::CRTHit, recob::Track, void>>" />

<class name="sbn::OpT0Finder">
<class name="sbn::LightCalo" ClassVersion="10" >
<version ClassVersion="10" checksum="2524683870"/>
</class>
<class name="std::vector<sbn::LightCalo>" />
<class name="art::Wrapper<sbn::LightCalo>" />
<class name="art::Wrapper<std::vector<sbn::LightCalo>>" />

<class name="std::pair<recob::Slice, sbn::LightCalo>" />
<class name="art::Assns<recob::Slice, sbn::LightCalo>" />
<class name="art::Wrapper<art::Assns<recob::Slice, sbn::LightCalo>>" />
<class name="std::pair<sbn::LightCalo, recob::Slice>" />
<class name="art::Assns<sbn::LightCalo, recob::Slice>" />
<class name="art::Wrapper<art::Assns<sbn::LightCalo, recob::Slice>>"/>

<class name="std::pair<recob::OpFlash, sbn::LightCalo>" />
<class name="art::Assns<recob::OpFlash, sbn::LightCalo>" />
<class name="art::Wrapper<art::Assns<recob::OpFlash, sbn::LightCalo>>" />
<class name="std::pair<sbn::LightCalo, recob::OpFlash>" />
<class name="art::Assns<sbn::LightCalo, recob::OpFlash>" />
<class name="art::Wrapper<art::Assns<sbn::LightCalo, recob::OpFlash>>" />

<class name="sbn::OpT0Finder" ClassVersion="10" >
<version ClassVersion="10" checksum="2162209983"/>
</class>

<class name="std::vector<sbn::OpT0Finder>" />
<class name="art::Wrapper<sbn::OpT0Finder>" />
<class name="art::Wrapper<std::vector<sbn::OpT0Finder>>" />
Expand Down