GeometryIteratorLoopTestAlg.h
Go to the documentation of this file.
1 /**
2  * @file GeometryIteratorLoopTestAlg.h
3  * @brief Tests the correct iteration of the geo::Geometry iterators
4  * @author Gianluca Petrillo (petrillo@fnal.gov)
5  * @date May 7th, 2015
6  */
7 
8 #ifndef GEO_GEOMETRYITERATORLOOPTESTALG_H
9 #define GEO_GEOMETRYITERATORLOOPTESTALG_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  /// Virtual destructor
29  virtual ~GeometryIteratorLoopTestAlg() = default;
30 
31  /// Algorithm set up
32  virtual void Setup(geo::GeometryCore const& new_geo) { geom = &new_geo; }
33 
34  /// Executes the test
35  virtual unsigned int Run();
36 
37  protected:
38  GeometryCore const* geom = nullptr; ///< pointer to the geometry description
39 
40  }; // class GeometryIteratorLoopTestAlg
41 
42 
43 } // namespace geo
44 
45 
46 #endif // GEO_GEOMETRYITERATORLOOPTESTALG_H
virtual void Setup(geo::GeometryCore const &new_geo)
Algorithm set up.
Description of geometry of one entire detector.
GeometryIteratorLoopTestAlg(fhicl::ParameterSet const &)
Constructor: reads configuration, does nothing.
LArSoft geometry interface.
Definition: ChannelGeo.h:16