IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Air Shower Physics
corsika
Commits
39fe1346
Commit
39fe1346
authored
3 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
idmass uses REAL not DOUBLE PRECISION
parent
ef399c12
No related branches found
No related tags found
1 merge request
!318
Resolve "EPOS is missing"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
corsika/detail/modules/epos/ParticleConversion.inl
+1
-1
1 addition, 1 deletion
corsika/detail/modules/epos/ParticleConversion.inl
modules/epos/epos.hpp
+1
-1
1 addition, 1 deletion
modules/epos/epos.hpp
tests/modules/testEpos.cpp
+1
-1
1 addition, 1 deletion
tests/modules/testEpos.cpp
with
3 additions
and
3 deletions
corsika/detail/modules/epos/ParticleConversion.inl
+
1
−
1
View file @
39fe1346
...
@@ -20,7 +20,7 @@ namespace corsika::epos {
...
@@ -20,7 +20,7 @@ namespace corsika::epos {
if
(
sCode
==
0
)
if
(
sCode
==
0
)
throw
std
::
runtime_error
(
"getEposMass: unknown particle!"
);
throw
std
::
runtime_error
(
"getEposMass: unknown particle!"
);
else
{
else
{
double
mass2
;
float
mass2
=
0
;
::
epos
::
idmass_
(
sCode
,
mass2
);
::
epos
::
idmass_
(
sCode
,
mass2
);
return
sqrt
(
mass2
)
*
1
_GeV
;
return
sqrt
(
mass2
)
*
1
_GeV
;
}
}
...
...
This diff is collapsed.
Click to expand it.
modules/epos/epos.hpp
+
1
−
1
View file @
39fe1346
...
@@ -100,7 +100,7 @@ namespace epos {
...
@@ -100,7 +100,7 @@ namespace epos {
// get isospin, spin, strangeness for id
// get isospin, spin, strangeness for id
void
idspin_
(
int
&
,
int
&
,
int
&
,
int
&
);
void
idspin_
(
int
&
,
int
&
,
int
&
,
int
&
);
// get mass for id
// get mass for id
void
idmass_
(
int
&
,
double
&
);
void
idmass_
(
int
&
,
float
&
);
// convert id from one format to another
// convert id from one format to another
int
idtrafo_
(
char
[
3
],
char
[
3
],
int
&
);
int
idtrafo_
(
char
[
3
],
char
[
3
],
int
&
);
...
...
This diff is collapsed.
Click to expand it.
tests/modules/testEpos.cpp
+
1
−
1
View file @
39fe1346
...
@@ -70,7 +70,7 @@ TEST_CASE("Epos", "[processes]") {
...
@@ -70,7 +70,7 @@ TEST_CASE("Epos", "[processes]") {
}
}
SECTION
(
"epos mass"
)
{
SECTION
(
"epos mass"
)
{
CHECK_FALSE
(
corsika
::
epos
::
getEposMass
(
Code
::
Electron
)
==
0
_GeV
);
CHECK_FALSE
(
corsika
::
epos
::
getEposMass
(
Code
::
Electron
)
/
1
_GeV
==
Approx
(
0
)
);
}
}
/*
/*
...
...
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