diff --git a/corsika/detail/modules/ObservationPlane.inl b/corsika/detail/modules/ObservationPlane.inl index 3f11726d59b20b5d124acac90c2bc54a9111c936..0f3b6b29aaff4a1d9c7bec879e23dcffc09debb2 100644 --- a/corsika/detail/modules/ObservationPlane.inl +++ b/corsika/detail/modules/ObservationPlane.inl @@ -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_++; diff --git a/corsika/detail/modules/writers/ObservationPlaneWriterParquet.inl b/corsika/detail/modules/writers/ObservationPlaneWriterParquet.inl index 8599c4684e5715548a09e7e16fa9100fe7a850ac..76ae3af1c9728174175f09b219ece9f8a5145952 100644 --- a/corsika/detail/modules/writers/ObservationPlaneWriterParquet.inl +++ b/corsika/detail/modules/writers/ObservationPlaneWriterParquet.inl @@ -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 diff --git a/corsika/modules/writers/ObservationPlaneWriterParquet.hpp b/corsika/modules/writers/ObservationPlaneWriterParquet.hpp index 980fc74cff45476402daf27207887d64d8639a2d..53ec19a2e38b868833f0e29c8c6a21061fd5b452 100644 --- a/corsika/modules/writers/ObservationPlaneWriterParquet.hpp +++ b/corsika/modules/writers/ObservationPlaneWriterParquet.hpp @@ -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