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
4d0df41e
Commit
4d0df41e
authored
2 years ago
by
Felix Riehn
Committed by
Maximilian Reininghaus
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
change output to kinetic energy again, with label
parent
eeb0c7bd
No related branches found
No related tags found
1 merge request
!490
Resolve "ObservationPlanes show non-existing particles"
Pipeline
#10189
skipped
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/detail/modules/ObservationPlane.inl
+2
-3
2 additions, 3 deletions
corsika/detail/modules/ObservationPlane.inl
corsika/detail/modules/writers/ParticleWriterParquet.inl
+2
-2
2 additions, 2 deletions
corsika/detail/modules/writers/ParticleWriterParquet.inl
with
4 additions
and
5 deletions
corsika/detail/modules/ObservationPlane.inl
+
2
−
3
View file @
4d0df41e
...
@@ -46,14 +46,13 @@ namespace corsika {
...
@@ -46,14 +46,13 @@ namespace corsika {
return
ProcessReturn
::
Ok
;
return
ProcessReturn
::
Ok
;
}
}
HEPEnergyType
const
energy
=
HEPEnergyType
const
kineticEnergy
=
step
.
getEkinPost
();
step
.
getEkinPost
()
+
get_mass
(
step
.
getParticlePre
().
getPID
());
Point
const
pointOfIntersection
=
step
.
getPositionPost
();
Point
const
pointOfIntersection
=
step
.
getPositionPost
();
Vector
const
displacement
=
pointOfIntersection
-
plane_
.
getCenter
();
Vector
const
displacement
=
pointOfIntersection
-
plane_
.
getCenter
();
// add our particles to the output file stream
// add our particles to the output file stream
double
const
weight
=
1.
;
// step.getParticlePre().getWeight();
double
const
weight
=
1.
;
// step.getParticlePre().getWeight();
this
->
write
(
step
.
getParticlePre
().
getPID
(),
e
nergy
,
displacement
.
dot
(
xAxis_
),
this
->
write
(
step
.
getParticlePre
().
getPID
(),
kineticE
nergy
,
displacement
.
dot
(
xAxis_
),
displacement
.
dot
(
yAxis_
),
0
_m
,
step
.
getTimePost
(),
weight
);
displacement
.
dot
(
yAxis_
),
0
_m
,
step
.
getTimePost
(),
weight
);
CORSIKA_LOG_TRACE
(
"Particle detected absorbed={}"
,
deleteOnHit_
);
CORSIKA_LOG_TRACE
(
"Particle detected absorbed={}"
,
deleteOnHit_
);
...
...
This diff is collapsed.
Click to expand it.
corsika/detail/modules/writers/ParticleWriterParquet.inl
+
2
−
2
View file @
4d0df41e
...
@@ -29,8 +29,8 @@ namespace corsika {
...
@@ -29,8 +29,8 @@ namespace corsika {
// build the schema
// build the schema
output_
.
addField
(
"pdg"
,
parquet
::
Repetition
::
REQUIRED
,
parquet
::
Type
::
INT32
,
output_
.
addField
(
"pdg"
,
parquet
::
Repetition
::
REQUIRED
,
parquet
::
Type
::
INT32
,
parquet
::
ConvertedType
::
INT_32
);
parquet
::
ConvertedType
::
INT_32
);
output_
.
addField
(
"energy"
,
parquet
::
Repetition
::
REQUIRED
,
parquet
::
Type
::
FLOAT
,
output_
.
addField
(
"
kinetic_
energy"
,
parquet
::
Repetition
::
REQUIRED
,
parquet
::
ConvertedType
::
NONE
);
parquet
::
Type
::
FLOAT
,
parquet
::
ConvertedType
::
NONE
);
output_
.
addField
(
"x"
,
parquet
::
Repetition
::
REQUIRED
,
parquet
::
Type
::
FLOAT
,
output_
.
addField
(
"x"
,
parquet
::
Repetition
::
REQUIRED
,
parquet
::
Type
::
FLOAT
,
parquet
::
ConvertedType
::
NONE
);
parquet
::
ConvertedType
::
NONE
);
output_
.
addField
(
"y"
,
parquet
::
Repetition
::
REQUIRED
,
parquet
::
Type
::
FLOAT
,
output_
.
addField
(
"y"
,
parquet
::
Repetition
::
REQUIRED
,
parquet
::
Type
::
FLOAT
,
...
...
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