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
511e49ef
Commit
511e49ef
authored
4 years ago
by
Maximilian Sackel
Committed by
Ralf Ulrich
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add ecut which is neccessary for proposal
parent
9d824303
No related branches found
No related tags found
1 merge request
!245
Include proposal process rebase
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Processes/ParticleCut/ParticleCut.h
+3
-1
3 additions, 1 deletion
Processes/ParticleCut/ParticleCut.h
Processes/Proposal/Interaction.cc
+3
-1
3 additions, 1 deletion
Processes/Proposal/Interaction.cc
Processes/Proposal/Interaction.h
+3
-0
3 additions, 0 deletions
Processes/Proposal/Interaction.h
with
9 additions
and
2 deletions
Processes/ParticleCut/ParticleCut.h
+
3
−
1
View file @
511e49ef
...
...
@@ -26,7 +26,8 @@ namespace corsika::process {
unsigned
int
fInvCount
=
0
;
public:
ParticleCut
(
const
units
::
si
::
HEPEnergyType
vCut
);
ParticleCut
(
const
units
::
si
::
HEPEnergyType
eCut
)
:
fECut
(
eCut
)
{}
bool
ParticleIsInvisible
(
particles
::
Code
)
const
;
EProcessReturn
DoSecondaries
(
corsika
::
setup
::
StackView
&
);
...
...
@@ -38,6 +39,7 @@ namespace corsika::process {
void
ShowResults
();
units
::
si
::
HEPEnergyType
GetECut
()
const
{
return
fECut
;
}
units
::
si
::
HEPEnergyType
GetInvEnergy
()
const
{
return
fInvEnergy
;
}
units
::
si
::
HEPEnergyType
GetCutEnergy
()
const
{
return
fEnergy
;
}
units
::
si
::
HEPEnergyType
GetEmEnergy
()
const
{
return
fEmEnergy
;
}
...
...
This diff is collapsed.
Click to expand it.
Processes/Proposal/Interaction.cc
+
3
−
1
View file @
511e49ef
...
...
@@ -37,8 +37,10 @@ namespace corsika::process::proposal {
template
<
>
Interaction
::
Interaction
(
SetupEnvironment
const
&
_env
,
CORSIKA_ParticleCut
const
&
_cut
)
:
cut
(
make_shared
<
const
PROPOSAL
::
EnergyCutSettings
>
(
_cut
.
GetCut
Energy
()
/
1
_
G
eV
,
1
,
:
cut
(
make_shared
<
const
PROPOSAL
::
EnergyCutSettings
>
(
_cut
.
Get
E
Cut
()
/
1
_
M
eV
,
1
,
false
))
{
std
::
cout
<<
"corsika set cut to "
<<
_cut
.
GetECut
()
/
1
_GeV
<<
" [GeV]"
<<
std
::
endl
;
std
::
cout
<<
"proposal set ecut to "
<<
cut
->
GetEcut
()
<<
" [MeV]"
<<
std
::
endl
;
auto
all_compositions
=
std
::
vector
<
const
NuclearComposition
*>
();
_env
.
GetUniverse
()
->
walk
([
&
](
auto
&
vtn
)
{
if
(
vtn
.
HasModelProperties
())
{
...
...
This diff is collapsed.
Click to expand it.
Processes/Proposal/Interaction.h
+
3
−
0
View file @
511e49ef
...
...
@@ -55,6 +55,7 @@ namespace corsika::process::proposal {
auto
BuildCalculator
(
particles
::
Code
corsika_code
,
NuclearComposition
const
&
comp
)
{
auto
medium
=
media
.
at
(
&
comp
);
if
(
corsika_code
==
particles
::
Code
::
Gamma
)
{
std
::
cout
<<
"Build gamma tables"
<<
std
::
endl
;
auto
cross
=
GetStdCrossSections
(
PROPOSAL
::
GammaDef
(),
media
.
at
(
&
comp
),
cut
,
true
);
auto
inter_types
=
PROPOSAL
::
CrossSectionVector
::
GetInteractionTypes
(
cross
);
...
...
@@ -66,6 +67,7 @@ namespace corsika::process::proposal {
return
insert_it
;
}
if
(
corsika_code
==
particles
::
Code
::
Electron
)
{
std
::
cout
<<
"Build electron tables"
<<
std
::
endl
;
auto
cross
=
GetStdCrossSections
(
PROPOSAL
::
EMinusDef
(),
media
.
at
(
&
comp
),
cut
,
true
);
auto
inter_types
=
PROPOSAL
::
CrossSectionVector
::
GetInteractionTypes
(
cross
);
...
...
@@ -77,6 +79,7 @@ namespace corsika::process::proposal {
return
insert_it
;
}
if
(
corsika_code
==
particles
::
Code
::
Positron
)
{
std
::
cout
<<
"Build positron tables"
<<
std
::
endl
;
auto
cross
=
GetStdCrossSections
(
PROPOSAL
::
EPlusDef
(),
media
.
at
(
&
comp
),
cut
,
true
);
auto
inter_types
=
PROPOSAL
::
CrossSectionVector
::
GetInteractionTypes
(
cross
);
...
...
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