IAP GITLAB
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
corsika
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
123
Issues
123
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Air Shower Physics
corsika
Commits
bdb7f226
Commit
bdb7f226
authored
Mar 02, 2021
by
Matthieu Carrere
Committed by
Ralf Ulrich
Mar 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace vertical_EAS.cpp with do-clang correction
parent
821ee6ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
examples/vertical_EAS.cpp
examples/vertical_EAS.cpp
+16
-15
No files found.
examples/vertical_EAS.cpp
View file @
bdb7f226
...
...
@@ -112,10 +112,8 @@ int main(int argc, char** argv) {
feenableexcept
(
FE_INVALID
);
int
seed
=
0
;
int
number_showers
=
std
::
stoi
(
std
::
string
(
argv
[
4
]));
if
(
argc
>
5
){
seed
=
std
::
stoi
(
std
::
string
(
argv
[
5
]));
}
int
number_showers
=
std
::
stoi
(
std
::
string
(
argv
[
4
]));
if
(
argc
>
5
)
{
seed
=
std
::
stoi
(
std
::
string
(
argv
[
5
]));
}
// initialize random number sequence(s)
registerRandomStreams
(
seed
);
...
...
@@ -158,19 +156,22 @@ int main(int argc, char** argv) {
fmt
::
ptr
(
env
.
getUniverse
()
->
getContainingNode
(
Point
(
rootCS
,
{
constants
::
EarthRadius
::
Mean
+
2
_km
,
0
_m
,
0
_m
}))));
string
output_dir
=
"example_outputs"
;
string
output_dir
=
"example_outputs"
;
for
(
int
i_shower
=
1
;
i_shower
<
number_showers
+
1
;
i_shower
++
)
{
for
(
int
i_shower
=
1
;
i_shower
<
number_showers
+
1
;
i_shower
++
)
{
// directory for outputs
string
labHist_dir
=
output_dir
+
"/inthist_lab_verticalEAS_"
+
to_string
(
i_shower
)
+
".npz"
;
string
cMSHist_dir
=
output_dir
+
"/inthist_cms_verticalEAS_"
+
to_string
(
i_shower
)
+
".npz"
;
string
longprof_dir
=
output_dir
+
"/longprof_verticalEAS_"
+
to_string
(
i_shower
)
+
".txt"
;
string
tracks_dir
=
output_dir
+
"/tracks_"
+
to_string
(
i_shower
)
+
".dat"
;
string
particles_dir
=
output_dir
+
"/particles_"
+
to_string
(
i_shower
)
+
".dat"
;
string
labHist_dir
=
output_dir
+
"/inthist_lab_verticalEAS_"
+
to_string
(
i_shower
)
+
".npz"
;
string
cMSHist_dir
=
output_dir
+
"/inthist_cms_verticalEAS_"
+
to_string
(
i_shower
)
+
".npz"
;
string
longprof_dir
=
output_dir
+
"/longprof_verticalEAS_"
+
to_string
(
i_shower
)
+
".txt"
;
string
tracks_dir
=
output_dir
+
"/tracks_"
+
to_string
(
i_shower
)
+
".dat"
;
string
particles_dir
=
output_dir
+
"/particles_"
+
to_string
(
i_shower
)
+
".dat"
;
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
"Shower "
<<
i_shower
<<
"/"
<<
number_showers
<<
std
::
endl
;
std
::
cout
<<
"Shower "
<<
i_shower
<<
"/"
<<
number_showers
<<
std
::
endl
;
// setup particle stack, and add primary particle
setup
::
Stack
stack
;
...
...
@@ -307,8 +308,9 @@ int main(int argc, char** argv) {
return
SwitchResult
::
Second
;
}
};
auto
hadronSequence
=
make_select
(
urqmdCounted
,
make_sequence
(
sibyllNucCounted
,
sibyllCounted
),
EnergySwitch
(
55
_GeV
));
auto
hadronSequence
=
make_select
(
urqmdCounted
,
make_sequence
(
sibyllNucCounted
,
sibyllCounted
),
EnergySwitch
(
55
_GeV
));
auto
decaySequence
=
make_sequence
(
decayPythia
,
decaySibyll
);
auto
sequence
=
make_sequence
(
stackInspect
,
hadronSequence
,
reset_particle_mass
,
decaySequence
,
...
...
@@ -342,5 +344,4 @@ int main(int argc, char** argv) {
save_hist
(
hists
.
CMSHist
(),
cMSHist_dir
,
true
);
longprof
.
save
(
longprof_dir
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment