IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Pranav Sampathkumar
corsika
Commits
c39c7315
Commit
c39c7315
authored
4 years ago
by
Felix Riehn
Browse files
Options
Downloads
Patches
Plain Diff
avoid test for nuclei
parent
e31665dd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Processes/OnShellCheck/OnShellCheck.cc
+1
-1
1 addition, 1 deletion
Processes/OnShellCheck/OnShellCheck.cc
Processes/OnShellCheck/testOnShellCheck.cc
+8
-4
8 additions, 4 deletions
Processes/OnShellCheck/testOnShellCheck.cc
with
9 additions
and
5 deletions
Processes/OnShellCheck/OnShellCheck.cc
+
1
−
1
View file @
c39c7315
...
@@ -35,7 +35,7 @@ namespace corsika::process {
...
@@ -35,7 +35,7 @@ namespace corsika::process {
auto
const
pid
=
p
.
GetPID
();
auto
const
pid
=
p
.
GetPID
();
// if(pid==particles::Code::Gamma || particles::IsNeutrino(pid) ||
// if(pid==particles::Code::Gamma || particles::IsNeutrino(pid) ||
// particles::IsNucleus(pid)) continue;
// particles::IsNucleus(pid)) continue;
if
(
!
particles
::
IsHadron
(
pid
))
continue
;
if
(
!
particles
::
IsHadron
(
pid
)
||
particles
::
IsNucleus
(
pid
)
)
continue
;
auto
const
e_original
=
p
.
GetEnergy
();
auto
const
e_original
=
p
.
GetEnergy
();
auto
const
p_original
=
p
.
GetMomentum
();
auto
const
p_original
=
p
.
GetMomentum
();
auto
const
Plab
=
corsika
::
geometry
::
FourVector
(
e_original
,
p_original
);
auto
const
Plab
=
corsika
::
geometry
::
FourVector
(
e_original
,
p_original
);
...
...
This diff is collapsed.
Click to expand it.
Processes/OnShellCheck/testOnShellCheck.cc
+
8
−
4
View file @
c39c7315
...
@@ -39,10 +39,13 @@ TEST_CASE("OnShellCheck", "[processes]") {
...
@@ -39,10 +39,13 @@ TEST_CASE("OnShellCheck", "[processes]") {
// two energies
// two energies
const
HEPEnergyType
E
=
10
_GeV
;
const
HEPEnergyType
E
=
10
_GeV
;
// list of arbitrary particles
// list of arbitrary particles
std
::
array
<
particles
::
Code
,
2
>
particleList
=
{
particles
::
Code
::
PiPlus
,
std
::
array
<
particles
::
Code
,
4
>
particleList
=
{
particles
::
Code
::
PiMinus
};
particles
::
Code
::
PiPlus
,
particles
::
Code
::
PiMinus
,
particles
::
Code
::
Helium
,
particles
::
Code
::
Gamma
};
std
::
array
<
double
,
2
>
mass_shifts
=
{
1.1
,
1.001
};
std
::
array
<
double
,
4
>
mass_shifts
=
{
1.1
,
1.001
,
1.0
,
1.0
};
SECTION
(
"check particle masses"
)
{
SECTION
(
"check particle masses"
)
{
...
@@ -83,8 +86,9 @@ TEST_CASE("OnShellCheck", "[processes]") {
...
@@ -83,8 +86,9 @@ TEST_CASE("OnShellCheck", "[processes]") {
auto
const
m_kinetic
=
Plab
.
GetNorm
();
auto
const
m_kinetic
=
Plab
.
GetNorm
();
if
(
i
==
0
)
if
(
i
==
0
)
REQUIRE
(
m_kinetic
/
particles
::
PiPlus
::
GetMass
()
==
Approx
(
1
));
REQUIRE
(
m_kinetic
/
particles
::
PiPlus
::
GetMass
()
==
Approx
(
1
));
else
else
if
(
i
==
1
)
REQUIRE_FALSE
(
m_kinetic
/
particles
::
PiMinus
::
GetMass
()
==
Approx
(
1
));
REQUIRE_FALSE
(
m_kinetic
/
particles
::
PiMinus
::
GetMass
()
==
Approx
(
1
));
}
}
}
}
}
}
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