47 auto trackmap = findNode::getClass<SvtxTrackMap>(topNode,
"SvtxTrackMap");
50 std::cout <<
PHWHERE <<
"No track map on node tree, can't continue."
55 auto tpotgeom = findNode::getClass<PHG4CylinderGeomContainer>(topNode,
"CYLINDERGEOM_MICROMEGAS_FULL");
58 std::cout <<
PHWHERE <<
"No micromegas geometry, can't continue."
64 auto layergeom = tpotgeom->GetLayerGeom(56);
66 const float lastradius = layergeom->get_radius();
67 const float lastthickness = layergeom->get_thickness();
68 const float lasttrackingradius = lastradius + lastthickness / 2.;
70 for (
auto& [key, track] : *trackmap)
72 for (
auto iter = track->begin_states(); iter != track->end_states(); ++iter)
75 if (iter == track->begin_states())
80 float pathlength = iter->second->get_pathlength();
81 if (pathlength < lasttrackingradius)
83 track->erase_state(pathlength);