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
67a3c889
Commit
67a3c889
authored
2 years ago
by
Felix Riehn
Committed by
Maximilian Reininghaus
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
photon always projectile
parent
356354fe
No related branches found
No related tags found
1 merge request
!465
Resolve "SOPHIA for low energy photo-hadronic interaction"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/detail/modules/sophia/InteractionModel.inl
+4
-7
4 additions, 7 deletions
corsika/detail/modules/sophia/InteractionModel.inl
tests/modules/testSophia.cpp
+0
-5
0 additions, 5 deletions
tests/modules/testSophia.cpp
with
4 additions
and
12 deletions
corsika/detail/modules/sophia/InteractionModel.inl
+
4
−
7
View file @
67a3c889
...
...
@@ -70,16 +70,13 @@ namespace corsika::sophia {
throw
std
::
runtime_error
(
"SOPHIA: Invalid target/projectile/energy combination"
);
}
auto
const
nucleonId
=
(
projectileId
==
Code
::
Photon
?
targetId
:
projectileId
);
auto
const
nucleonP4
=
(
projectileId
==
Code
::
Photon
?
targetP4
:
projectileP4
);
auto
const
photonP4
=
(
projectileId
==
Code
::
Photon
?
projectileP4
:
targetP4
);
COMBoost
const
boost
(
projectileP4
,
targetP4
);
int
nucleonSophiaCode
=
convertToSophiaRaw
(
nucleon
Id
);
// either proton or neutron
int
nucleonSophiaCode
=
convertToSophiaRaw
(
target
Id
);
// either proton or neutron
// initialize resonance spectrum
initial_
(
nucleonSophiaCode
);
double
Enucleon
=
nucleon
P4
.
getTimeLikeComponent
()
/
1
_GeV
;
double
Ephoton
=
p
hoton
P4
.
getTimeLikeComponent
()
/
1
_GeV
;
double
Enucleon
=
target
P4
.
getTimeLikeComponent
()
/
1
_GeV
;
double
Ephoton
=
p
rojectile
P4
.
getTimeLikeComponent
()
/
1
_GeV
;
double
theta
=
0.0
;
// set nucleon at rest in collision
int
Imode
=
-
1
;
// overwritten inside SOPHIA
CORSIKA_LOGGER_DEBUG
(
logger_
,
...
...
@@ -96,7 +93,7 @@ namespace corsika::sophia {
auto
const
&
originalCS
=
boost
.
getOriginalCS
();
// SOPHIA has photon along -z and nucleon along +z (GZK calc..)
COMBoost
const
boostInternal
(
nucleonP4
,
photon
P4
);
COMBoost
const
boostInternal
(
targetP4
,
projectile
P4
);
auto
const
&
csPrime
=
boost
.
getRotatedCS
();
CoordinateSystemPtr
csPrimePrime
=
make_rotation
(
csPrime
,
QuantityVector
<
length_d
>
{
1
_m
,
0
_m
,
0
_m
},
M_PI
);
...
...
This diff is collapsed.
Click to expand it.
tests/modules/testSophia.cpp
+
0
−
5
View file @
67a3c889
...
...
@@ -62,11 +62,6 @@ TEST_CASE("Sophia", "modules") {
CHECK_FALSE
(
corsika
::
sophia
::
canInteract
(
Code
::
Helium
));
}
// SECTION("cross-section type") {
// CHECK(corsika::sophia::getSophiaXSCode(Code::Proton) == 1);
// CHECK(corsika::sophia::getSophiaXSCode(Code::Electron) == 0);
// }
SECTION
(
"sophia mass"
)
{
CHECK_FALSE
(
corsika
::
sophia
::
getSophiaMass
(
Code
::
Electron
)
==
0
_GeV
);
// Nucleus not a particle
...
...
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