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
16
namespace
sim
{
17
namespace
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
}
22
namespace
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
}
27
namespace
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
}
32
namespace
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
}
37
namespace
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
}
42
}
43
#endif
/* SIMG4COMMON_UNITS_H */
sim::edm2g4::length
const double length
Definition
Units.h:24
sim::edm2g4::energy
const double energy
Definition
Units.h:25
sim::edm2papas::length
const double length
Definition
Units.h:39
sim::edm2papas::energy
const double energy
Definition
Units.h:40
sim::edmdefault::energy
const double energy
Definition
Units.h:20
sim::edmdefault::length
const double length
Definition
Units.h:19
sim::g42edm::energy
const double energy
Definition
Units.h:30
sim::g42edm::length
const double length
Definition
Units.h:29
sim::papas2edm::energy
const double energy
Definition
Units.h:35
sim::papas2edm::length
const double length
Definition
Units.h:34
sim
Conversion between units.
Definition
ConstantField.h:14
SimG4Common
include
SimG4Common
Units.h
Generated on Mon Nov 4 2024 17:11:00 for k4SimGeant4 by
1.11.0