LArSoft  v10_04_05
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 27 of file MCRecoEdep.cxx.

References Get.

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

28  {
29  auto const& wireReadoutGeom = art::ServiceHandle<geo::WireReadout const>()->Get();
30  std::map<geo::PlaneID, size_t> m;
31  size_t i = 0;
32  for (auto const& pid : wireReadoutGeom.Iterate<geo::PlaneID>()) {
33  m[pid] = i;
34  i++;
35  }
36  return m;
37  }
The data type to uniquely identify a Plane.
Definition: geo_types.h:364
cout<< "Opened file "<< fin<< " ixs= "<< ixs<< endl;if(ixs==0) hhh=(TH1F *) fff-> Get("h1")
Definition: AddMC.C:8