Loading [MathJax]/extensions/tex2jax.js
k4SimGeant4
All Classes Namespaces Files Functions Variables Typedefs Friends Modules Pages
Units.h
Go to the documentation of this file.
1#ifndef SIMG4COMMON_UNITS_H
2#define SIMG4COMMON_UNITS_H
3
4// Geant4
5#include "G4SystemOfUnits.hh"
6
16namespace sim {
17namespace edmdefault {
18 // FIXME: these should be a constexpr, but CLHEP is only const
19 const double length = CLHEP::mm;
20 const double energy = CLHEP::GeV;
21} // namespace edmdefault
22namespace edm2g4 {
23 // FIXME: these should be a constexpr, but CLHEP is only const
24 const double length = edmdefault::length / CLHEP::mm;
25 const double energy = edmdefault::energy / CLHEP::MeV;
26} // namespace edm2g4
27namespace g42edm {
28 // FIXME: these should be a constexpr, but CLHEP is only const
29 const double length = CLHEP::mm / edmdefault::length;
30 const double energy = CLHEP::MeV / edmdefault::energy;
31} // namespace g42edm
32namespace papas2edm {
33 // FIXME: these should be a constexpr, but CLHEP is only const
34 const double length = CLHEP::m / edmdefault::length;
35 const double energy = CLHEP::GeV / edmdefault::energy;
36} // namespace papas2edm
37namespace edm2papas {
38 // FIXME: these should be a constexpr, but CLHEP is only const
39 const double length = edmdefault::length / CLHEP::m;
40 const double energy = edmdefault::energy / CLHEP::GeV;
41} // namespace edm2papas
42} // namespace sim
43#endif /* SIMG4COMMON_UNITS_H */
const double length
Definition Units.h:24
const double energy
Definition Units.h:25
const double length
Definition Units.h:39
const double energy
Definition Units.h:40
const double energy
Definition Units.h:20
const double length
Definition Units.h:19
const double energy
Definition Units.h:30
const double length
Definition Units.h:29
const double energy
Definition Units.h:35
const double length
Definition Units.h:34
Conversion between units.
Definition ConstantField.h:14