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
dfcfc678
Commit
dfcfc678
authored
3 years ago
by
ralfulrich
Committed by
Ralf Ulrich
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
some improvements
parent
56aab330
No related branches found
No related tags found
1 merge request
!352
Better examples
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
examples/em_shower.cpp
+2
-2
2 additions, 2 deletions
examples/em_shower.cpp
tests/modules/testPythia8.cpp
+14
-6
14 additions, 6 deletions
tests/modules/testPythia8.cpp
with
17 additions
and
8 deletions
.gitlab-ci.yml
+
1
−
0
View file @
dfcfc678
...
...
@@ -549,6 +549,7 @@ sanity:
-
corsika
before_script
:
-
apt-get update && apt-get install -y python3-pip
-
pip3 install --upgrade cython
script
:
-
cd ${CI_PROJECT_DIR}/python
# change into the Python directory
-
pip3 install --user -e '.[test]'
# install the package + test deps
...
...
This diff is collapsed.
Click to expand it.
examples/em_shower.cpp
+
2
−
2
View file @
dfcfc678
...
...
@@ -140,7 +140,7 @@ int main(int argc, char** argv) {
OutputManager
output
(
"em_shower_outputs"
);
ShowerAxis
const
showerAxis
{
injectionPos
,
(
showerCore
-
injectionPos
)
*
1.02
,
env
,
false
,
1000
.
};
false
,
1000
};
// setup processes, decays and interactions
...
...
@@ -190,4 +190,4 @@ int main(int argc, char** argv) {
longprof
.
save
(
"longprof_emShower.txt"
);
output
.
endOfLibrary
();
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
tests/modules/testPythia8.cpp
+
14
−
6
View file @
dfcfc678
...
...
@@ -96,8 +96,10 @@ TEST_CASE("Pythia8Interface", "modules") {
logging
::
set_level
(
logging
::
level
::
info
);
auto
[
env
,
csPtr
,
nodePtr
]
=
setup
::
testing
::
setup_environment
(
Code
::
Proton
);
auto
const
&
cs
=
*
csPtr
;
[[
maybe_unused
]]
auto
const
&
env_dummy
=
env
;
[[
maybe_unused
]]
auto
const
&
node_dummy
=
nodePtr
;
{
[[
maybe_unused
]]
auto
const
&
env_dummy
=
env
;
[[
maybe_unused
]]
auto
const
&
node_dummy
=
nodePtr
;
}
SECTION
(
"pythia decay"
)
{
HEPEnergyType
const
P0
=
10
_GeV
;
...
...
@@ -228,15 +230,21 @@ TEST_CASE("Pythia8Interface", "modules") {
// incompatible target
auto
[
env_Fe
,
csPtr_Fe
,
nodePtr_Fe
]
=
setup
::
testing
::
setup_environment
(
Code
::
Iron
);
[[
maybe_unused
]]
auto
const
&
cs_Fe
=
*
csPtr_Fe
;
[[
maybe_unused
]]
auto
const
&
env_dummy_Fe
=
env_Fe
;
[[
maybe_unused
]]
auto
const
&
node_dummy_Fe
=
nodePtr_Fe
;
{
[[
maybe_unused
]]
auto
const
&
cs_Fe
=
*
csPtr_Fe
;
[[
maybe_unused
]]
auto
const
&
env_dummy_Fe
=
env_Fe
;
[[
maybe_unused
]]
auto
const
&
node_dummy_Fe
=
nodePtr_Fe
;
}
// resonable projectile, but tool low energy
auto
[
stackPtr
,
secViewPtr
]
=
setup
::
testing
::
setup_stack
(
Code
::
Proton
,
0
,
0
,
1
_GeV
,
(
setup
::
Environment
::
BaseNodeType
*
const
)
nodePtr_Fe
,
*
csPtr_Fe
);
auto
&
view
=
*
secViewPtr
;
{
[[
maybe_unused
]]
auto
const
&
dummy_StackPtr
=
stackPtr
;
}
corsika
::
pythia8
::
Interaction
collision
;
...
...
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