LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
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 17 of file MCRecoEdep.cxx.

References geo::GeometryCore::IteratePlaneIDs().

Referenced by sim::MCRecoEdep::MakeMCEdep(), sim::MCTrackRecoAlg::Reconstruct(), and sim::MCShowerRecoAlg::Reconstruct().

17  {
19  std::map<geo::PlaneID, size_t> m;
20  size_t i = 0;
21  for(auto const& pid : geom->IteratePlaneIDs()){
22  m[pid] = i;
23  i++;
24  }
25  return m;
26  }
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.