k4SimGeant4
Loading...
Searching...
No Matches
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
19const double length = CLHEP::mm;
20const double energy = CLHEP::GeV;
21}
22namespace edm2g4 {
23// FIXME: these should be a constexpr, but CLHEP is only const
24const double length = edmdefault::length / CLHEP::mm;
25const double energy = edmdefault::energy / CLHEP::MeV;
26}
27namespace g42edm {
28// FIXME: these should be a constexpr, but CLHEP is only const
29const double length = CLHEP::mm / edmdefault::length;
30const double energy = CLHEP::MeV / edmdefault::energy;
31}
32namespace papas2edm {
33// FIXME: these should be a constexpr, but CLHEP is only const
34const double length = CLHEP::m / edmdefault::length;
35const double energy = CLHEP::GeV / edmdefault::energy;
36}
37namespace edm2papas {
38// FIXME: these should be a constexpr, but CLHEP is only const
39const double length = edmdefault::length / CLHEP::m;
40const double energy = edmdefault::energy / CLHEP::GeV;
41}
42}
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