You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is related to #322, where we convert "planeID" to "layerID" for PDHD APA1 inside OmnibusSigProc.
This trick works perfectly for the entire signal processing chain until recently I wanted to turn on MP2 ROI protection. Because MP2ROI uses a function anode->resolve(chid) to get "planeID", we need another conversion. Fortunately, it's the only place that the function anode->resolve() is used in ROI_refinement and ROI_formation.
// mp2: 2 plane protection based on cleaup ROIvoidROI_refinement::MP2ROI(constint target_plane, const IAnodePlane::pointer anode, const IAnodeFace::pointer face,
const std::map<int, int>& map_roichid_anodechid, ROI_formation& roi_form,
constdouble mp_th1, constdouble mp_th2,
constint tick_resolution, constint wire_resolution,
constint nbounds_layers)
{
...
std::map<int, int> map_wireid_roichid[3];
for (auto chident : anode->channels()) {
auto iplane = anode->resolve(chident).index(); // FIXME for PDHD APA1 !!!auto roichid = map_anodechid_roichid[chident];
auto ch = anode->channel(chident);
auto wires = ch->wires();
for (auto wire : wires) {
if (face->which() != wire->planeid().face()) continue;
auto wireid = wire->index();
map_wireid_roichid[iplane][wireid] = roichid;
}
}
...
}
@HaiwangYu do you think it's good to pass the conversion array to void ROI_refinement::MP2ROI()? e.g.,
This issue is related to #322, where we convert "planeID" to "layerID" for PDHD APA1 inside OmnibusSigProc.
This trick works perfectly for the entire signal processing chain until recently I wanted to turn on MP2 ROI protection. Because MP2ROI uses a function
anode->resolve(chid)
to get "planeID", we need another conversion. Fortunately, it's the only place that the functionanode->resolve()
is used in ROI_refinement and ROI_formation.@HaiwangYu do you think it's good to pass the conversion array to
void ROI_refinement::MP2ROI()
? e.g.,The text was updated successfully, but these errors were encountered: