Skip to content

Commit

Permalink
rm [] as the default process_planes
Browse files Browse the repository at this point in the history
  • Loading branch information
HaiwangYu committed Dec 18, 2024
1 parent 5175c60 commit 0b59e51
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gen/src/DepoTransform.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ WireCell::Configuration Gen::DepoTransform::default_configuration() const
// type-name for the DFT to use
cfg["dft"] = "FftwDFT";

// Which plane to place charge onto
cfg["process_planes"] = Json::arrayValue;
// Need to remove this otherwise [] will be the default
// cfg["process_planes"] = Json::arrayValue;

return cfg;
}
Expand Down Expand Up @@ -191,7 +191,8 @@ bool Gen::DepoTransform::operator()(const input_pointer& in, output_pointer& out

int plane_index = plane->planeid().index();

if (std::find(m_process_planes.begin(), m_process_planes.end(), plane_index) == m_process_planes.end()) {
if (std::find(m_process_planes.begin(), m_process_planes.end(), plane_index) == m_process_planes.end()) {
log->debug("skip plane {}", plane_index);
continue;
}

Expand Down

0 comments on commit 0b59e51

Please sign in to comment.