IAP GITLAB
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
corsika
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
André Schmidt
corsika
Commits
fb4d41cd
Commit
fb4d41cd
authored
Jun 06, 2020
by
Maximilian Reininghaus
🖖
Committed by
Felix Riehn
Aug 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added momentum conservation test for sibyll::Interaction
parent
e71e5a88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
Processes/Sibyll/testSibyll.cc
Processes/Sibyll/testSibyll.cc
+11
-1
No files found.
Processes/Sibyll/testSibyll.cc
View file @
fb4d41cd
...
...
@@ -136,8 +136,18 @@ TEST_CASE("SibyllInterface", "[processes]") {
Interaction
model
;
[[
maybe_unused
]]
const
process
::
EProcessReturn
ret
=
model
.
DoInteraction
(
projectile
);
[[
maybe_unused
]]
auto
const
pSum
=
sumMomentum
(
view
,
cs
);
auto
const
pSum
=
sumMomentum
(
view
,
cs
);
// for debugging!
std
::
cout
<<
pSum
.
GetComponents
(
cs
)
<<
std
::
endl
;
std
::
cout
<<
plab
.
GetComponents
(
cs
)
<<
std
::
endl
;
CHECK
(
pSum
.
GetComponents
(
cs
).
GetX
()
/
P0
==
Approx
(
1
).
margin
(
1e-4
));
CHECK
(
pSum
.
GetComponents
(
cs
).
GetY
()
/
1
_GeV
==
Approx
(
0
).
margin
(
1e-4
));
CHECK
(
pSum
.
GetComponents
(
cs
).
GetZ
()
/
1
_GeV
==
Approx
(
0
).
margin
(
1e-4
));
CHECK
((
pSum
-
plab
).
norm
()
/
1
_GeV
==
Approx
(
0
).
margin
(
1e-4
));
CHECK
(
pSum
.
norm
()
/
P0
==
Approx
(
1
).
margin
(
1e-4
));
[[
maybe_unused
]]
const
GrammageType
length
=
model
.
GetInteractionLength
(
particle
);
}
...
...
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