14 #ifndef DD4hep_COMPACT_CONVERSION_H
15 #define DD4hep_COMPACT_CONVERSION_H
38 template <
typename T,
typename ARG=XML::Handle_t>
struct Converter {
55 template <
typename TYPE> TYPE*
_param()
const {
return (TYPE*)
param; }
57 template <
typename TYPE> TYPE&
_object()
const {
return *(TYPE*)
param; }
Converter(Geometry::LCDD &l, user_param p, user_param o)
Initializing constructor of the functor with initialization of the user parameter.
Converter(Geometry::LCDD &l, user_param p)
Initializing constructor of the functor with initialization of the user parameter.
Converter(Geometry::LCDD &l)
Initializing constructor of the functor.
TYPE * _option() const
Typed access to the 2nd. user parameter (unchecked)
void operator()(ARG handle) const
Callback operator to be specialized depending on the element type.
Basic conversion objects for handling DD4hep XML files.
user_param param
Reference to optional user defined parameter.
TYPE * _param() const
Typed access to the 1rst. user parameter (unchecked)
The main interface to the DD4hep detector description package.
Geometry::LCDD & lcdd
Reference to the detector description object.
void handle(const O *o, const C &c, F pmf)
TYPE & _object() const
Typed object access to the 1rst. user parameter (unchecked)