IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Pranav Sampathkumar
corsika
Commits
5620d8b0
Commit
5620d8b0
authored
5 years ago
by
Maximilian Reininghaus
Browse files
Options
Downloads
Plain Diff
Merge branch 'trackwriter' into 'master'
format track file See merge request
!177
parents
37836bd0
b72c07f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Processes/TrackWriter/TrackWriter.cc
+11
-3
11 additions, 3 deletions
Processes/TrackWriter/TrackWriter.cc
Processes/TrackWriter/TrackWriter.h
+3
-0
3 additions, 0 deletions
Processes/TrackWriter/TrackWriter.h
with
14 additions
and
3 deletions
Processes/TrackWriter/TrackWriter.cc
+
11
−
3
View file @
5620d8b0
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
#include
<corsika/setup/SetupStack.h>
#include
<corsika/setup/SetupStack.h>
#include
<corsika/setup/SetupTrajectory.h>
#include
<corsika/setup/SetupTrajectory.h>
#include
<iomanip>
#include
<limits>
#include
<limits>
using
namespace
corsika
::
setup
;
using
namespace
corsika
::
setup
;
...
@@ -38,9 +39,16 @@ namespace corsika::process::track_writer {
...
@@ -38,9 +39,16 @@ namespace corsika::process::track_writer {
auto
const
delta
=
vT
.
GetPosition
(
1
).
GetCoordinates
()
-
start
;
auto
const
delta
=
vT
.
GetPosition
(
1
).
GetCoordinates
()
-
start
;
auto
const
pdg
=
static_cast
<
int
>
(
particles
::
GetPDG
(
vP
.
GetPID
()));
auto
const
pdg
=
static_cast
<
int
>
(
particles
::
GetPDG
(
vP
.
GetPID
()));
fFile
<<
pdg
<<
' '
<<
vP
.
GetEnergy
()
/
1
_eV
<<
' '
<<
start
[
0
]
/
1
_m
<<
' '
// clang-format off
<<
start
[
1
]
/
1
_m
<<
' '
<<
start
[
2
]
/
1
_m
<<
" "
<<
delta
[
0
]
/
1
_m
<<
' '
fFile
<<
std
::
setw
(
7
)
<<
pdg
<<
delta
[
1
]
/
1
_m
<<
' '
<<
delta
[
2
]
/
1
_m
<<
'\n'
;
<<
std
::
setw
(
width
)
<<
std
::
scientific
<<
std
::
setprecision
(
precision
)
<<
vP
.
GetEnergy
()
/
1
_eV
<<
std
::
setw
(
width
)
<<
std
::
scientific
<<
std
::
setprecision
(
precision
)
<<
start
[
0
]
/
1
_m
<<
std
::
setw
(
width
)
<<
std
::
scientific
<<
std
::
setprecision
(
precision
)
<<
start
[
1
]
/
1
_m
<<
std
::
setw
(
width
)
<<
std
::
scientific
<<
std
::
setprecision
(
precision
)
<<
start
[
2
]
/
1
_m
<<
std
::
setw
(
width
)
<<
std
::
scientific
<<
std
::
setprecision
(
precision
)
<<
delta
[
0
]
/
1
_m
<<
std
::
setw
(
width
)
<<
std
::
scientific
<<
std
::
setprecision
(
precision
)
<<
delta
[
1
]
/
1
_m
<<
std
::
setw
(
width
)
<<
std
::
scientific
<<
std
::
setprecision
(
precision
)
<<
delta
[
2
]
/
1
_m
<<
'\n'
;
// clang-format on
return
process
::
EProcessReturn
::
eOk
;
return
process
::
EProcessReturn
::
eOk
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Processes/TrackWriter/TrackWriter.h
+
3
−
0
View file @
5620d8b0
...
@@ -36,6 +36,9 @@ namespace corsika::process::track_writer {
...
@@ -36,6 +36,9 @@ namespace corsika::process::track_writer {
private
:
private
:
std
::
string
const
fFilename
;
std
::
string
const
fFilename
;
std
::
ofstream
fFile
;
std
::
ofstream
fFile
;
int
width
=
14
;
int
precision
=
6
;
};
};
}
// namespace corsika::process::track_writer
}
// namespace corsika::process::track_writer
...
...
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