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
c5748994
Commit
c5748994
authored
2 years ago
by
Maximilian Reininghaus
Browse files
Options
Downloads
Patches
Plain Diff
some doxygen
parent
96729f9f
No related branches found
No related tags found
1 merge request
!468
Resolve "Add FLUKA"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/detail/modules/fluka/InteractionModel.inl
+0
-2
0 additions, 2 deletions
corsika/detail/modules/fluka/InteractionModel.inl
corsika/modules/fluka/InteractionModel.hpp
+14
-0
14 additions, 0 deletions
corsika/modules/fluka/InteractionModel.hpp
with
14 additions
and
2 deletions
corsika/detail/modules/fluka/InteractionModel.inl
+
0
−
2
View file @
c5748994
...
@@ -25,8 +25,6 @@
...
@@ -25,8 +25,6 @@
#include
<corsika/framework/core/EnergyMomentumOperations.hpp>
#include
<corsika/framework/core/EnergyMomentumOperations.hpp>
#include
<corsika/framework/core/PhysicalUnits.hpp>
#include
<corsika/framework/core/PhysicalUnits.hpp>
#include
<FLUKA.hpp>
#include
<corsika/modules/fluka/ParticleConversion.hpp>
#include
<corsika/modules/fluka/ParticleConversion.hpp>
namespace
corsika
::
fluka
{
namespace
corsika
::
fluka
{
...
...
This diff is collapsed.
Click to expand it.
corsika/modules/fluka/InteractionModel.hpp
+
14
−
0
View file @
c5748994
...
@@ -21,11 +21,24 @@
...
@@ -21,11 +21,24 @@
#include
<corsika/framework/random/RNGManager.hpp>
#include
<corsika/framework/random/RNGManager.hpp>
namespace
corsika
::
fluka
{
namespace
corsika
::
fluka
{
/**
* This class exposes the (hadronic) interactions of FLUKA. FLUKA needs to be
* initialized with a predefined set of target materials and a flag describing the type
* of interactions (elastic, inelastic, electromagnetic dissociation). Currently, only
* inelastic events are supported.
*
*/
class
InteractionModel
{
class
InteractionModel
{
public:
public:
/**
* Create a new InteractionModel. The FLUKA materials are collected from the elements
* present in the environment. Each element is its own FLUKA material, no FLUKA
* compounds are used.
*/
template
<
typename
TEnvironment
>
template
<
typename
TEnvironment
>
InteractionModel
(
TEnvironment
const
&
);
InteractionModel
(
TEnvironment
const
&
);
//! Return the cross-section of a given combination of projectile/target.
CrossSectionType
getCrossSection
(
Code
projectileId
,
Code
targetId
,
CrossSectionType
getCrossSection
(
Code
projectileId
,
Code
targetId
,
FourMomentum
const
&
projectileP4
,
FourMomentum
const
&
projectileP4
,
FourMomentum
const
&
targetP4
)
const
;
FourMomentum
const
&
targetP4
)
const
;
...
@@ -33,6 +46,7 @@ namespace corsika::fluka {
...
@@ -33,6 +46,7 @@ namespace corsika::fluka {
bool
isValid
(
Code
projectileID
,
Code
targetID
,
HEPEnergyType
sqrtS
)
const
;
bool
isValid
(
Code
projectileID
,
Code
targetID
,
HEPEnergyType
sqrtS
)
const
;
bool
isValid
(
Code
projectileID
,
int
material
,
HEPEnergyType
sqrtS
)
const
;
bool
isValid
(
Code
projectileID
,
int
material
,
HEPEnergyType
sqrtS
)
const
;
//! convert target Code to FLUKA material number
int
getMaterialIndex
(
Code
targetID
)
const
;
int
getMaterialIndex
(
Code
targetID
)
const
;
template
<
typename
TSecondaryView
>
template
<
typename
TSecondaryView
>
...
...
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