From b8aecb73d07ab252c8f6ba5283a99c43a70359ac Mon Sep 17 00:00:00 2001 From: sungbinoh Date: Tue, 19 Aug 2025 10:05:43 -0500 Subject: [PATCH 1/2] adding efield and phi to SRCaloPoint --- sbnanaobj/StandardRecord/SRCaloPoint.cxx | 2 ++ sbnanaobj/StandardRecord/SRCaloPoint.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sbnanaobj/StandardRecord/SRCaloPoint.cxx b/sbnanaobj/StandardRecord/SRCaloPoint.cxx index 38ec9d3e..3bda8621 100644 --- a/sbnanaobj/StandardRecord/SRCaloPoint.cxx +++ b/sbnanaobj/StandardRecord/SRCaloPoint.cxx @@ -15,6 +15,8 @@ namespace caf dedx(std::numeric_limits::signaling_NaN()), pitch(std::numeric_limits::signaling_NaN()), t(std::numeric_limits::signaling_NaN()), + efield(std::numeric_limits::signaling_NaN()), + phi(std::numeric_limits::signaling_NaN()), x(std::numeric_limits::signaling_NaN()), y(std::numeric_limits::signaling_NaN()), z(std::numeric_limits::signaling_NaN()), diff --git a/sbnanaobj/StandardRecord/SRCaloPoint.h b/sbnanaobj/StandardRecord/SRCaloPoint.h index 62249e3a..738778bf 100644 --- a/sbnanaobj/StandardRecord/SRCaloPoint.h +++ b/sbnanaobj/StandardRecord/SRCaloPoint.h @@ -20,6 +20,8 @@ namespace caf float dedx; //!< dQ/dx [ADC/cm] -- pre calibration and electron lifetime correction float pitch; //!< Track pitch [cm] float t; //!< Time of deposition [ticks] + float efield; //! |E| [kV/cm] + float phi; //! angle between the E-field and track dir for the hit, used in the GnocchiCalorimetry module // NOTE: flatten-caf seems to have trouble with nesting the point // inside a SRVector3D -- so just expose x/y/z out here float x; //!< X-Position of deposition [cm] From 7fc36e129ded7a96df449509d52080923c6bb904 Mon Sep 17 00:00:00 2001 From: sungbinoh Date: Thu, 4 Sep 2025 09:31:44 -0500 Subject: [PATCH 2/2] adding unit for phi in SRCaloPoint.h --- sbnanaobj/StandardRecord/SRCaloPoint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbnanaobj/StandardRecord/SRCaloPoint.h b/sbnanaobj/StandardRecord/SRCaloPoint.h index 738778bf..3a741338 100644 --- a/sbnanaobj/StandardRecord/SRCaloPoint.h +++ b/sbnanaobj/StandardRecord/SRCaloPoint.h @@ -21,7 +21,7 @@ namespace caf float pitch; //!< Track pitch [cm] float t; //!< Time of deposition [ticks] float efield; //! |E| [kV/cm] - float phi; //! angle between the E-field and track dir for the hit, used in the GnocchiCalorimetry module + float phi; //! angle (radian) between the E-field and track dir for the hit, used in the GnocchiCalorimetry module // NOTE: flatten-caf seems to have trouble with nesting the point // inside a SRVector3D -- so just expose x/y/z out here float x; //!< X-Position of deposition [cm]