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
4b975c10
Commit
4b975c10
authored
6 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
fixed typo in comment
parent
6f724ddf
No related branches found
No related tags found
1 merge request
!83
Resolve "Add energy loss process"
Pipeline
#363
passed
6 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Framework/Particles/ParticleProperties.h
+2
-2
2 additions, 2 deletions
Framework/Particles/ParticleProperties.h
with
2 additions
and
2 deletions
Framework/Particles/ParticleProperties.h
+
2
−
2
View file @
4b975c10
...
@@ -78,7 +78,7 @@ namespace corsika::particles {
...
@@ -78,7 +78,7 @@ namespace corsika::particles {
*/
*/
int16_t
constexpr
GetChargeNumber
(
Code
const
p
)
{
int16_t
constexpr
GetChargeNumber
(
Code
const
p
)
{
if
(
p
==
Code
::
Nucleus
)
if
(
p
==
Code
::
Nucleus
)
throw
std
::
runtime_error
(
"Cannot Get
Mass
() of particle::Nucleus -> unspecified"
);
throw
std
::
runtime_error
(
"Cannot Get
ChargeNumber
() of particle::Nucleus -> unspecified"
);
// electric_charges stores charges in units of (e/3), e.g. 3 for a proton
// electric_charges stores charges in units of (e/3), e.g. 3 for a proton
return
detail
::
electric_charges
[
static_cast
<
CodeIntType
>
(
p
)]
/
3
;
return
detail
::
electric_charges
[
static_cast
<
CodeIntType
>
(
p
)]
/
3
;
}
}
...
@@ -88,7 +88,7 @@ namespace corsika::particles {
...
@@ -88,7 +88,7 @@ namespace corsika::particles {
*/
*/
corsika
::
units
::
si
::
ElectricChargeType
constexpr
GetCharge
(
Code
const
p
)
{
corsika
::
units
::
si
::
ElectricChargeType
constexpr
GetCharge
(
Code
const
p
)
{
if
(
p
==
Code
::
Nucleus
)
if
(
p
==
Code
::
Nucleus
)
throw
std
::
runtime_error
(
"Cannot Get
Mass
() of particle::Nucleus -> unspecified"
);
throw
std
::
runtime_error
(
"Cannot Get
Charge
() of particle::Nucleus -> unspecified"
);
return
GetChargeNumber
(
p
)
*
(
corsika
::
units
::
constants
::
e
);
return
GetChargeNumber
(
p
)
*
(
corsika
::
units
::
constants
::
e
);
}
}
...
...
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