LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
WireReadoutGeometryBuilder.h
Go to the documentation of this file.
1 #ifndef LARCOREALG_GEOMETRY_WIREREADOUTGEOMETRYBUILDER_H
2 #define LARCOREALG_GEOMETRY_WIREREADOUTGEOMETRYBUILDER_H
3 
4 // LArSoft libraries
8 
9 // C++ standard library
10 #include <cstddef>
11 #include <map>
12 #include <vector>
13 
14 namespace geo {
15 
38  public:
39  // --- BEGIN Data types ----------------------------------------------------
42 
43  // --- END Data types ------------------------------------------------------
44 
45  // --- BEGIN Constructors and destructor -----------------------------------
47  virtual ~WireReadoutGeometryBuilder() = default;
48 
49  // --- END Constructors and destructor -------------------------------------
50 
51  // --- BEGIN Plane information ------------------------------------------
54 
56  using Planes_t = std::map<std::size_t, std::vector<PlaneGeo>>;
57 
66  Planes_t extractPlanes(Path_t path) const { return doExtractPlanes(path); }
67 
69  // --- END Plane information --------------------------------------------
70 
71  private:
72  virtual Planes_t doExtractPlanes(Path_t& path) const = 0;
73 
74  }; // class WireReadoutGeometryBuilder
75 
76 } // namespace geo
77 
78 #endif // LARCOREALG_GEOMETRY_WIREREADOUTGEOMETRYBUILDER_H
virtual Planes_t doExtractPlanes(Path_t &path) const =0
Class representing a path in ROOT geometry.
Planes_t extractPlanes(Path_t path) const
Looks for all cryostats under the specified path.
Manages the extraction of LArSoft geometry information from ROOT.
std::map< std::size_t, std::vector< PlaneGeo >> Planes_t
Collection of wire-plane information objects.
Encapsulate the construction of a single detector plane .
Representation of a node and its ancestry.
Definition: GeoNodePath.h:34
ROOT libraries.
virtual ~WireReadoutGeometryBuilder()=default
Virtual destructor.