8 const std::map<std::pair<int,int>,
PlaneInfo> *plane_map;
9 if (channel_map_name ==
"PD2HDTPCChannelMap") plane_map = &
pdhd_plane_map;
10 else if (channel_map_name ==
"PD2VDTPCChannelMap") plane_map = &
pdvd_plane_map;
13 auto it = plane_map->find({detelement, plane});
14 if (it == plane_map->end()) {
15 throw std::out_of_range(
"Invalid detelement/plane combination");