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
e1cfad0f
Commit
e1cfad0f
authored
3 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
better ctest output, qgsjet better filename handling
parent
dc6ffc26
No related branches found
No related tags found
1 merge request
!271
Resolve "Assumption of no continuous between two stochastic losses"
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
corsika/detail/modules/qgsjetII/Interaction.inl
+3
-9
3 additions, 9 deletions
corsika/detail/modules/qgsjetII/Interaction.inl
corsika/modules/qgsjetII/Interaction.hpp
+10
-7
10 additions, 7 deletions
corsika/modules/qgsjetII/Interaction.hpp
with
14 additions
and
16 deletions
.gitlab-ci.yml
+
1
−
0
View file @
e1cfad0f
...
...
@@ -16,6 +16,7 @@ variables:
# _alternatively_ corsika-data can be downloaded as submodule:
GIT_SUBMODULE_STRATEGY
:
normal
# none: we get the submodules in before_script,
# normal: get submodules automatically
CTEST_OUTPUT_ON_FAILURE
:
1
#
...
...
This diff is collapsed.
Click to expand it.
corsika/detail/modules/qgsjetII/Interaction.inl
+
3
−
9
View file @
e1cfad0f
...
...
@@ -27,20 +27,14 @@
namespace
corsika
::
qgsjetII
{
inline
Interaction
::
Interaction
(
const
std
::
string
&
dataPath
)
:
data_path_
(
dataPath
)
{
if
(
dataPath
==
""
)
{
if
(
std
::
getenv
(
"CORSIKA_DATA"
))
{
data_path_
=
std
::
string
(
std
::
getenv
(
"CORSIKA_DATA"
))
+
"/QGSJetII/"
;
CORSIKA_LOG_DEBUG
(
"Searching for QGSJetII data tables in {}"
,
data_path_
);
}
}
inline
Interaction
::
Interaction
(
boost
::
filesystem
::
path
dataPath
)
{
CORSIKA_LOG_DEBUG
(
"Reading QGSJetII data tables from {}"
,
dataPath
);
// initialize QgsjetII
static
bool
initialized
=
false
;
if
(
!
initialized
)
{
qgset_
();
datadir
DIR
(
data
_p
ath
_
);
datadir
DIR
(
data
P
ath
.
string
()
+
"/"
);
qgaini_
(
DIR
.
data
);
initialized
=
true
;
}
...
...
This diff is collapsed.
Click to expand it.
corsika/modules/qgsjetII/Interaction.hpp
+
10
−
7
View file @
e1cfad0f
...
...
@@ -13,6 +13,10 @@
#include
<corsika/framework/random/RNGManager.hpp>
#include
<corsika/framework/process/InteractionProcess.hpp>
#include
<corsika/modules/qgsjetII/ParticleConversion.hpp>
#include
<corsika/framework/utility/CorsikaData.hpp>
#include
<boost/filesystem/path.hpp>
#include
<qgsjet-II-04.hpp>
#include
<string>
...
...
@@ -21,14 +25,8 @@ namespace corsika::qgsjetII {
class
Interaction
:
public
corsika
::
InteractionProcess
<
Interaction
>
{
std
::
string
data_path_
;
int
count_
=
0
;
bool
initialized_
=
false
;
QgsjetIIHadronType
alternate_
=
QgsjetIIHadronType
::
PiPlusType
;
// for pi0, rho0 projectiles
public:
Interaction
(
const
std
::
string
&
dataPath
=
""
);
Interaction
(
boost
::
filesystem
::
path
dataPath
=
corsika_data
(
"QGSJetII"
)
);
~
Interaction
();
bool
wasInitialized
()
{
return
initialized_
;
}
...
...
@@ -53,6 +51,11 @@ namespace corsika::qgsjetII {
void
doInteraction
(
TSecondaryView
&
);
private
:
int
count_
=
0
;
bool
initialized_
=
false
;
QgsjetIIHadronType
alternate_
=
QgsjetIIHadronType
::
PiPlusType
;
// for pi0, rho0 projectiles
corsika
::
default_prng_type
&
rng_
=
corsika
::
RNGManager
::
getInstance
().
getRandomStream
(
"qgsjet"
);
const
int
maxMassNumber_
=
208
;
...
...
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