Skip to content

address PR comments round 1 - #2

Merged
carriganm95 merged 1 commit into
feature/carriganm95_hitTuningfrom
update_hitTuning
Apr 10, 2026
Merged

address PR comments round 1#2
carriganm95 merged 1 commit into
feature/carriganm95_hitTuningfrom
update_hitTuning

Conversation

@carriganm95

Copy link
Copy Markdown
Owner
  • Added check in getValueOrListOf to ensure the number of planes is correct if a list is provided
  • make getValueOrListOf a constant function, removed inline
  • Removed StandardRecord and StandardRecordFlat from CMake file where unnecessary

Copilot AI review requested due to automatic review settings April 10, 2026 20:51
@carriganm95
carriganm95 merged commit 0aaeca7 into feature/carriganm95_hitTuning Apr 10, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses prior review feedback by tightening configuration validation in GaussHitFinderSBN and cleaning up unnecessary link dependencies in the CAF RecoUtils library.

Changes:

  • Add a size check when reading per-plane FHiCL sequences in getValueOrListOf.
  • Update getValueOrListOf to be a const member function (and remove the explicit inline keyword).
  • Remove unnecessary sbnanaobj::StandardRecord* dependencies from caf_RecoUtils’s CMake link list.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
sbncode/HitFinder/GaussHitFinderSBN_module.cc Adds validation for per-plane parameter vectors read from FHiCL.
sbncode/CAFMaker/RecoUtils/CMakeLists.txt Drops unused StandardRecord link dependencies for the RecoUtils library.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 79 to 86
if (pset.is_key_to_sequence(key))
auto vec = pset.get<std::vector<T>>(key);
if (vec.size() != N_PLANES) {
throw cet::exception("Configuration")
<< "Parameter '" << key << "' has size " << vec.size()
<< " but expected " << N_PLANES << " (number of planes)";
}
return pset.get<std::vector<T>>(key);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants