Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
c24cd5a3
Commit
c24cd5a3
authored
Nov 18, 2013
by
Lynn Garren
Browse files
changes to match Units
parent
f918f888
Changes
2
Hide whitespace changes
Inline
Side-by-side
Evaluator/ChangeLog
View file @
c24cd5a3
2013-11-18 Lynn Garren <garren@fnal.gov>
* src/setSystemOfUnits.cc: additional units to match Units
==============================
14.11.13 Release CLHEP-2.1.4.1
==============================
...
...
Evaluator/src/setSystemOfUnits.cc
View file @
c24cd5a3
...
...
@@ -211,17 +211,30 @@ void Evaluator::setSystemOfUnits(double meter,
const
double
Bq
=
1.
/
s
;
setVariable
(
"becquerel"
,
Bq
);
setVariable
(
"Bq"
,
Bq
);
setVariable
(
"kilobecquerel"
,
kilo_
*
Bq
);
setVariable
(
"kBq"
,
kilo_
*
Bq
);
setVariable
(
"megabecquerel"
,
mega_
*
Bq
);
setVariable
(
"MBq"
,
mega_
*
Bq
);
setVariable
(
"gigabecquerel"
,
giga_
*
Bq
);
setVariable
(
"GBq"
,
giga_
*
Bq
);
// --- honors Pierre Curie (1859-1906) of France
// and Marie Sklodowska Curie (1867-1934) of Poland
setVariable
(
"curie"
,
3.7e+10
*
Bq
);
setVariable
(
"Ci"
,
3.7e+10
*
Bq
);
setVariable
(
"millicurie"
,
milli_
*
3.7e+10
*
Bq
);
setVariable
(
"mCi"
,
milli_
*
3.7e+10
*
Bq
);
setVariable
(
"microcurie"
,
micro_
*
3.7e+10
*
Bq
);
setVariable
(
"uCi"
,
micro_
*
3.7e+10
*
Bq
);
// Specific energy
// --- honors Louis Harold Gray, F.R.S. (1905-1965) of England
const
double
Gy
=
J
/
kg
;
setVariable
(
"gray"
,
Gy
);
setVariable
(
"Gy"
,
Gy
);
setVariable
(
"kilogray"
,
kilo_
*
Gy
);
setVariable
(
"milligray"
,
milli_
*
Gy
);
setVariable
(
"microgray"
,
micro_
*
Gy
);
// Dose equivalent
const
double
Sv
=
J
/
kg
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment