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
!394
Add tracking of particle times to observation plane writer
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add tracking of particle times to observation plane writer
track_times_on_obsplane
into
master
Overview
4
Commits
3
Pipelines
14
Changes
3
Merged
Jean-Marco Alameddine
requested to merge
track_times_on_obsplane
into
master
3 years ago
Overview
4
Commits
3
Pipelines
14
Changes
3
Expand
0
0
Merge request reports
Viewing commit
aa823acc
Show latest version
3 files
+
8
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
aa823acc
Add tracking of particle times to observation plane writer
· aa823acc
Jean-Marco Alameddine
authored
3 years ago
corsika/detail/modules/writers/ObservationPlaneWriterParquet.inl
+
5
−
2
Options
@@ -31,6 +31,8 @@ namespace corsika {
parquet
::
ConvertedType
::
NONE
);
output_
.
addField
(
"y"
,
parquet
::
Repetition
::
REQUIRED
,
parquet
::
Type
::
FLOAT
,
parquet
::
ConvertedType
::
NONE
);
output_
.
addField
(
"t"
,
parquet
::
Repetition
::
REQUIRED
,
parquet
::
Type
::
FLOAT
,
parquet
::
ConvertedType
::
NONE
);
// and build the streamer
output_
.
buildStreamer
();
@@ -43,12 +45,13 @@ namespace corsika {
inline
void
ObservationPlaneWriterParquet
::
write
(
Code
const
&
pid
,
HEPEnergyType
const
&
energy
,
LengthType
const
&
x
,
LengthType
const
&
y
)
{
LengthType
const
&
y
,
TimeType
const
&
t
)
{
// write the next row - we must write `shower_` first.
*
(
output_
.
getWriter
())
<<
shower_
<<
static_cast
<
int
>
(
get_PDG
(
pid
))
<<
static_cast
<
float
>
(
energy
/
1
_GeV
)
<<
static_cast
<
float
>
(
x
/
1
_m
)
<<
static_cast
<
float
>
(
y
/
1
_m
)
<<
parquet
::
EndRow
;
<<
static_cast
<
float
>
(
t
/
1
_ns
)
<<
parquet
::
EndRow
;
}
}
// namespace corsika
Loading