Functions
sim::details Namespace Reference

Functions

std::map< geo::PlaneID, size_t > createPlaneIndexMap ()
 

Function Documentation

std::map< geo::PlaneID, size_t > sim::details::createPlaneIndexMap ( )

Definition at line 22 of file MCRecoEdep.cxx.

22  {
24  std::map<geo::PlaneID, size_t> m;
25  size_t i = 0;
26  for(auto const& pid : geom->IteratePlaneIDs()){
27  m[pid] = i;
28  i++;
29  }
30  return m;
31  }
IteratorBox< plane_id_iterator,&GeometryCore::begin_plane_id,&GeometryCore::end_plane_id > IteratePlaneIDs() const
Enables ranged-for loops on all plane IDs of the detector.