GeometryGeoIDTestAlg.h
Go to the documentation of this file.
1 /**
2  * @file GeometryGeoIDTestAlg.h
3  * @brief Tests the correct assignment of IDs to detector geometry objects
4  * @author Gianluca Petrillo (petrillo@fnal.gov)
5  * @date October 31, 2016
6  */
7 
8 #ifndef LARCORE_TEST_GEOMETRY_GEOMETRYGEOIDTESTALG_H
9 #define LARCORE_TEST_GEOMETRY_GEOMETRYGEOIDTESTALG_H
10 
11 
12 namespace fhicl {
13  class ParameterSet;
14 }
15 
16 namespace geo {
17 
18  class GeometryCore; // forward declaration
19 
20  //----------------------------------------------------------------------------
21 
23  public:
24 
25  /// Constructor: reads configuration, does nothing
27 
28  /// Algorithm set up
29  void Setup(geo::GeometryCore const& new_geo) { geom = &new_geo; }
30 
31  /// Executes the test
32  unsigned int Run() const;
33 
34  /// @name All the ID iterator tests
35  /// @{
36  void CryostatGeoIDTest() const;
37  void TPCGeoIDTest() const;
38  void PlaneGeoIDTest() const;
39  void WireGeoIDTest() const;
40  /// @}
41 
42 
43  protected:
44  GeometryCore const* geom = nullptr; ///< pointer to the geometry description
45 
46  }; // class GeometryGeoIDTestAlg
47 
48 
49 } // namespace geo
50 
51 
52 #endif // LARCORE_TEST_GEOMETRY_GEOMETRYGEOIDTESTALG_H
void Setup(geo::GeometryCore const &new_geo)
Algorithm set up.
GeometryGeoIDTestAlg(fhicl::ParameterSet const &)
Constructor: reads configuration, does nothing.
Description of geometry of one entire detector.
LArSoft geometry interface.
Definition: ChannelGeo.h:16