CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DDutils.h
Go to the documentation of this file.
1 #ifndef DETECTOR_DESCRIPTION_DDCMS_DDUTILS_H
2 #define DETECTOR_DESCRIPTION_DDCMS_DDUTILS_H
3 #include "DD4hep/DD4hepUnits.h"
4 
5 namespace cms {
6  template <class NumType>
7  inline constexpr NumType convert2mm(NumType length) {
8  return (length / dd4hep::mm);
9  }
10 } // namespace cms
11 #endif
constexpr NumType convert2mm(NumType length)
Definition: DDutils.h:7