From b752a37242139bad1933395bee25ab471f09df02 Mon Sep 17 00:00:00 2001 From: sungbinoh Date: Wed, 27 Aug 2025 09:23:59 -0500 Subject: [PATCH 1/3] adding efield and phi to SRCaloPoint for 2025A --- 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 1114872faa1b574e46378f7e8fb63a566addc230 Mon Sep 17 00:00:00 2001 From: sungbinoh Date: Thu, 28 Aug 2025 10:25:46 -0500 Subject: [PATCH 2/3] following Gianluca's comments --- sbnanaobj/StandardRecord/SRCaloPoint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbnanaobj/StandardRecord/SRCaloPoint.h b/sbnanaobj/StandardRecord/SRCaloPoint.h index 738778bf..9b615d8c 100644 --- a/sbnanaobj/StandardRecord/SRCaloPoint.h +++ b/sbnanaobj/StandardRecord/SRCaloPoint.h @@ -20,8 +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 + float efield; //!< |E| [kV/cm] + float phi; //!< angle (degree) 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 aa68c6293d6423324168b388fe874a98cbfc0f94 Mon Sep 17 00:00:00 2001 From: sungbinoh Date: Wed, 3 Sep 2025 17:32:57 -0500 Subject: [PATCH 3/3] SRCaloPoint.h phi unit to radian from degree --- sbnanaobj/StandardRecord/SRCaloPoint.h | 2 +- sbnanaobj/StandardRecord/classes_def.xml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sbnanaobj/StandardRecord/SRCaloPoint.h b/sbnanaobj/StandardRecord/SRCaloPoint.h index 9b615d8c..24f61514 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 (degree) 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] diff --git a/sbnanaobj/StandardRecord/classes_def.xml b/sbnanaobj/StandardRecord/classes_def.xml index d736e7a6..f14c0cac 100644 --- a/sbnanaobj/StandardRecord/classes_def.xml +++ b/sbnanaobj/StandardRecord/classes_def.xml @@ -146,7 +146,8 @@ - + +