LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 26 of file MCRecoEdep.cxx.

References geo::GeometryCore::Iterate().

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

27  {
29  std::map<geo::PlaneID, size_t> m;
30  size_t i = 0;
31  for (auto const& pid : geom->Iterate<geo::PlaneID>()) {
32  m[pid] = i;
33  i++;
34  }
35  return m;
36  }
details::range_type< T > Iterate() const
Initializes the specified ID with the ID of the first cryostat.
Definition: GeometryCore.h:541
The data type to uniquely identify a Plane.
Definition: geo_types.h:463