Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
2e47cc23
Commit
2e47cc23
authored
11 years ago
by
Frank Gaede
Browse files
Options
Downloads
Patches
Plain Diff
- one more test ...
parent
22c16605
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDTest/src/test_units.cc
+8
-2
8 additions, 2 deletions
DDTest/src/test_units.cc
with
8 additions
and
2 deletions
DDTest/src/test_units.cc
+
8
−
2
View file @
2e47cc23
...
...
@@ -73,10 +73,16 @@ int main(int argc, char** argv ){
//======== densities =========
double
rho1
=
lcdd
.
constant
<
double
>
(
"rho1"
)
/
k
g
*
m3
;
double
rho1
=
lcdd
.
constant
<
double
>
(
"rho1"
)
/
g
*
c
m3
;
double
rho2
=
lcdd
.
constant
<
double
>
(
"rho2"
)
/
g
*
cm3
;
test
(
STR
(
rho1
),
STR
(
1000.
*
rho2
)
,
" densities [kg/m3] - [g/cm3] "
)
;
test
(
STR
(
rho1
),
STR
(
rho2
)
,
" densities in [g/cm3] "
)
;
rho1
=
lcdd
.
constant
<
double
>
(
"rho1"
)
/
kg
*
m3
;
rho2
=
lcdd
.
constant
<
double
>
(
"rho2"
)
/
kg
*
m3
;
test
(
STR
(
rho1
),
STR
(
rho2
)
,
" densities in [kg/cm3] "
)
;
// --------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment