IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 518bb8e3 authored by Remy Prechelt's avatar Remy Prechelt
Browse files

Remove radius from ObservationPlane output.

parent 9ac1f41c
No related branches found
No related tags found
1 merge request!317Output infrastructure and Python analysis library.
......@@ -43,9 +43,9 @@ namespace corsika {
auto const displacement = trajectory.getPosition(1) - plane_.getCenter();
// add our particles to the output file stream
this->write(particle.getPID(), energy, displacement.dot(xAxis_),
displacement.dot(yAxis_),
(trajectory.getPosition(1) - plane_.getCenter()).getNorm());
this->write(particle.getPID(), energy,
displacement.dot(xAxis_),
displacement.dot(yAxis_));
if (deleteOnHit_) {
count_ground_++;
......
......@@ -28,8 +28,6 @@ namespace corsika {
parquet::ConvertedType::NONE);
addField("y", parquet::Repetition::REQUIRED, parquet::Type::FLOAT,
parquet::ConvertedType::NONE);
addField("radius", parquet::Repetition::REQUIRED, parquet::Type::FLOAT,
parquet::ConvertedType::NONE);
// and build the streamer
buildStreamer();
......@@ -42,13 +40,12 @@ namespace corsika {
void ObservationPlaneWriterParquet::write(Code const& pid,
units::si::HEPEnergyType const& energy,
units::si::LengthType const& x,
units::si::LengthType const& y,
units::si::LengthType const& radius) {
units::si::LengthType const& y) {
using namespace units::si;
// write the next row - we must write `shower_` first.
(*writer_) << shower_ << static_cast<int>(get_PDG(pid)) << energy / 1_eV << x / 1_m
<< y / 1_m << radius / 1_m << parquet::EndRow;
<< y / 1_m << parquet::EndRow;
}
} // namespace corsika
......@@ -48,8 +48,7 @@ namespace corsika {
* Write a particle to the file.
*/
void write(Code const& pid, units::si::HEPEnergyType const& energy,
units::si::LengthType const& x, units::si::LengthType const& y,
units::si::LengthType const& radius);
units::si::LengthType const& x, units::si::LengthType const& y);
}; // class ObservationPlaneWriterParquet
......
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