diff --git a/Outputs/BaseOutput.h b/Outputs/BaseOutput.h index 53f01347bd9b4b3cb3a21b7e75f2a54e6d3cf45c..eee5740e7d47c3a94668cfd755f740e4185e77b5 100644 --- a/Outputs/BaseOutput.h +++ b/Outputs/BaseOutput.h @@ -52,6 +52,11 @@ namespace corsika::output { * Get the configuration of this output. */ virtual YAML::Node GetConfig() const = 0; + + /** + * Get final text outputs for the config file. + */ + virtual YAML::Node GetOutput() = 0; }; } // namespace corsika::output diff --git a/Outputs/ObservationPlaneWriterParquet.h b/Outputs/ObservationPlaneWriterParquet.h index 3da21460c50b964aae92bb03c036572c1a5b802f..8c27b099d394acd2a676c95075ec4b1c922cee87 100644 --- a/Outputs/ObservationPlaneWriterParquet.h +++ b/Outputs/ObservationPlaneWriterParquet.h @@ -52,20 +52,22 @@ namespace corsika::output { /** * Called at the start of each event/shower. */ - void StartOfEvent() final { ++event_; - } + void StartOfEvent() final { ++event_; } /** * Called at the end of each event/shower. */ - void EndOfEvent() final { - } + void EndOfEvent() final {} /** * Called at the end of each run. */ - void EndOfRun() final { streamer_.Close(); - } + void EndOfRun() final { streamer_.Close(); } + + /** + * Get final text outputs for the config file. + */ + YAML::Node GetOutput() final { return YAML::Node(); } protected: /** @@ -79,10 +81,8 @@ namespace corsika::output { // write the next row writer_ << event_ << static_cast<int>(particles::GetPDG(pid)) << energy / 1_eV << distance / 1_m << parquet::EndRow; - } - std::string const name_; ///< The name of this output. private: