IAP GITLAB

Skip to content
Snippets Groups Projects
Commit f81c1154 authored by ralfulrich's avatar ralfulrich Committed by Ralf Ulrich
Browse files

remy's comments

parent f615942b
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,8 @@ namespace corsika { ...@@ -28,7 +28,8 @@ namespace corsika {
auto const end = vT.getPosition(1).getCoordinates(); auto const end = vT.getPosition(1).getCoordinates();
// write the track to the file // write the track to the file
this->write(vP.getPID(), vP.getEnergy(), start, vP.getTime()-vT.getDuration(), end, vP.getTime()); this->write(vP.getPID(), vP.getEnergy(), start, vP.getTime() - vT.getDuration(), end,
vP.getTime());
return ProcessReturn::Ok; return ProcessReturn::Ok;
} }
......
...@@ -50,8 +50,10 @@ namespace corsika { ...@@ -50,8 +50,10 @@ namespace corsika {
inline void TrackWriterParquet::endOfLibrary() { output_.closeStreamer(); } inline void TrackWriterParquet::endOfLibrary() { output_.closeStreamer(); }
inline void TrackWriterParquet::write(Code const& pid, HEPEnergyType const& energy, inline void TrackWriterParquet::write(Code const& pid, HEPEnergyType const& energy,
QuantityVector<length_d> const& start, TimeType const& t_start, QuantityVector<length_d> const& start,
QuantityVector<length_d> const& end, TimeType const& t_end) { TimeType const& t_start,
QuantityVector<length_d> const& end,
TimeType const& t_end) {
// write the next row - we must write `shower_` first. // write the next row - we must write `shower_` first.
// clang-format off // clang-format off
...@@ -62,11 +64,11 @@ namespace corsika { ...@@ -62,11 +64,11 @@ namespace corsika {
<< static_cast<float>(start[0] / 1_m) << static_cast<float>(start[0] / 1_m)
<< static_cast<float>(start[1] / 1_m) << static_cast<float>(start[1] / 1_m)
<< static_cast<float>(start[2] / 1_m) << static_cast<float>(start[2] / 1_m)
<< static_cast<float>(t_start / 1_s) << static_cast<float>(t_start / 1_ns)
<< static_cast<float>(end[0] / 1_m) << static_cast<float>(end[0] / 1_m)
<< static_cast<float>(end[1] / 1_m) << static_cast<float>(end[1] / 1_m)
<< static_cast<float>(end[2] / 1_m) << static_cast<float>(end[2] / 1_m)
<< static_cast<float>(t_end / 1_s) << static_cast<float>(t_end / 1_ns)
<< parquet::EndRow; << parquet::EndRow;
// clang-format on // clang-format on
} }
......
...@@ -21,7 +21,8 @@ struct TestWriterTrack : public TrackWriterParquet { ...@@ -21,7 +21,8 @@ struct TestWriterTrack : public TrackWriterParquet {
YAML::Node getConfig() const { return YAML::Node(); } YAML::Node getConfig() const { return YAML::Node(); }
void checkWrite() { void checkWrite() {
TrackWriterParquet::write(Code::Unknown, 1_eV, {2_m, 3_m, 4_m}, 5_s, {6_m, 7_m, 8_m}, 9_s); TrackWriterParquet::write(Code::Unknown, 1_eV, {2_m, 3_m, 4_m}, 5_s, {6_m, 7_m, 8_m},
9_s);
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment