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
Merge requests
!28
Sibyll
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Sibyll
sibyll
into
master
Overview
0
Commits
46
Pipelines
2
Changes
4
Merged
Ralf Ulrich
requested to merge
sibyll
into
master
6 years ago
Overview
0
Commits
46
Pipelines
2
Changes
4
Expand
closes
#72 (closed)
0
0
Merge request reports
Viewing commit
1ab99a5f
Prev
Next
Show latest version
4 files
+
14
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
1ab99a5f
a few fixes
· 1ab99a5f
ralfulrich
authored
6 years ago
Documentation/Examples/cascade_example.cc
+
6
−
3
Options
@@ -125,7 +125,7 @@ public:
}
template
<
typename
Particle
,
typename
Stack
>
EProcessReturn
DoContinuous
(
Particle
&
p
,
setup
::
Trajectory
&
t
,
Stack
&
s
)
const
{
EProcessReturn
DoContinuous
(
Particle
&
,
setup
::
Trajectory
&
,
Stack
&
)
const
{
// cout << "ProcessCut: DoContinous: " << p.GetPID() << endl;
// cout << " is em: " << isEmParticle( p.GetPID() ) << endl;
// cout << " is inv: " << isInvisible( p.GetPID() ) << endl;
@@ -148,7 +148,7 @@ public:
}
template
<
typename
Particle
,
typename
Stack
>
void
DoDiscrete
(
Particle
&
p
,
Stack
&
s
)
const
{
void
DoDiscrete
(
Particle
&
p
,
Stack
&
)
const
{
cout
<<
"ProcessCut: DoDiscrete: "
<<
p
.
GetPID
()
<<
endl
;
const
Code
pid
=
p
.
GetPID
();
if
(
isEmParticle
(
pid
))
{
@@ -499,7 +499,7 @@ int main() {
ProcessSplit
p1
;
corsika
::
process
::
sibyll
::
ProcessDecay
p2
;
ProcessEMCut
p3
;
const
auto
sequence
=
p0
+
p1
+
p2
+
p3
;
const
auto
sequence
=
/*
p0 +
*/
p1
+
p2
+
p3
;
setup
::
Stack
stack
;
corsika
::
cascade
::
Cascade
EAS
(
tracking
,
sequence
,
stack
);
@@ -513,6 +513,9 @@ int main() {
particle
.
SetEnergy
(
E0
);
particle
.
SetMomentum
(
plab
);
particle
.
SetPID
(
Code
::
Proton
);
particle
.
SetTime
(
0
_ns
);
Point
p
(
rootCS
,
0
_m
,
0
_m
,
0
_m
);
particle
.
SetPosition
(
p
);
EAS
.
Init
();
EAS
.
Run
();
cout
<<
"Result: E0="
<<
E0
/
1
_GeV
Loading