LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
ToGeometryElement.h
Go to the documentation of this file.
1 #ifndef LARCOREALG_GEOMETRY_DETAILS_TOGEOMETRYELEMENT_H
2 #define LARCOREALG_GEOMETRY_DETAILS_TOGEOMETRYELEMENT_H
3 
4 // LArSoft libraries
7 
8 namespace geo::details {
10  public:
11  explicit ToGeometryElement(GeometryCore const* geom) : fGeom{geom} {}
12  template <typename T, typename Iterator>
13  auto transform(Iterator const& iterator) const
14  {
16  }
17 
18  private:
20  };
21 
23  public:
24  explicit ToReadoutGeometryElement(WireReadoutGeom const* wireReadoutGeom)
25  : fWireReadoutGeom{wireReadoutGeom}
26  {}
27 
28  template <typename T, typename Iterator>
29  auto transform(Iterator const& iterator) const
30  {
31  return geometry_element_iterator<WireReadoutGeom, T, Iterator>{fWireReadoutGeom, iterator};
32  }
33 
34  private:
36  };
37 }
38 
39 #endif // LARCOREALG_GEOMETRY_DETAILS_TOGEOMETRYELEMENT_H
ToGeometryElement(GeometryCore const *geom)
WireReadoutGeom const * fWireReadoutGeom
Interface for a class providing readout channel mapping to geometry.
Description of the physical geometry of one entire detector.
Definition: GeometryCore.h:91
ToReadoutGeometryElement(WireReadoutGeom const *wireReadoutGeom)
auto transform(Iterator const &iterator) const
Forward iterator browsing all geometry elements in the detector.
auto transform(Iterator const &iterator) const