All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
geo_vectors_fhicl.h
Go to the documentation of this file.
1 /**
2  * @file geo_vectors_fhicl.h
3  * @brief Helpers for reading vectors from FHiCL files.
4  * @author Gianluca Petrillo (petrillo@fnal.gov)
5  * @date March 24, 2017
6  * @ingroup Geometry
7  *
8  * This library depends on ROOT GenVector.
9  * In the CET link list in `CMakeLists.txt`, link to `${ROOT_GENVECTOR}`.
10  *
11  */
12 
13 #ifndef LARCOREOBJ_SIMPLETYPESANDCONSTANTS_GEO_VECTORS_FHICL_H
14 #define LARCOREOBJ_SIMPLETYPESANDCONSTANTS_GEO_VECTORS_FHICL_H
15 
16 // LArSoft libraries
18 
19 // framework libraries
20 #include "fhiclcpp/types/Atom.h"
21 #include "fhiclcpp/types/TupleAs.h"
22 
23 
24 namespace lar {
25 
26  /// LArSoft utilities for interface with FHiCL and its libraries.
27  namespace fhicl {
28 
29  namespace geo {
30 
31  /// Atom object for reading length (centimeters).
32  using Length_t = ::fhicl::Atom<::geo::Length_t>;
33 
34 
35  /// Atom object for reading a 3D point or vector (centimeters).
36  template <typename Point>
37  using Point3D = ::fhicl::TupleAs
39 
40  /// Atom object for reading a geometry point (centimeters).
42 
43  /// Atom object for reading a geometry vector (centimeters).
45 
46  } // namespace geo
47 
48  } // namespace fhicl
49 
50 } // namespace lar
51 
52 #endif // LARCOREOBJ_SIMPLETYPESANDCONSTANTS_GEO_VECTORS_FHICL_H
::fhicl::TupleAs< Point(::geo::Length_t,::geo::Length_t,::geo::Length_t)> Point3D
Atom object for reading a 3D point or vector (centimeters).
Point3D<::geo::Point_t > Point_t
Atom object for reading a geometry vector (centimeters).
Point3D<::geo::Vector_t > Vector_t
Atom object for reading a geometry point (centimeters).
Definitions of geometry vector data types.
std::tuple< double, double, const reco::ClusterHit3D * > Point
Definitions used by the VoronoiDiagram algorithm.
Definition: DCEL.h:44
::fhicl::Atom<::geo::Length_t > Length_t
Atom object for reading length (centimeters).