11 #include <corsika/output/BaseOutput.hpp> 12 #include <corsika/output/ParquetStreamer.hpp> 15 #include <corsika/media/ShowerAxis.hpp> 34 template <
size_t NColumns>
46 void startOfLibrary(boost::filesystem::path
const& directory)
override;
56 void endOfShower(
unsigned int const showerId)
override;
70 std::array<HEPEnergyType, NColumns>
const& data);
73 std::array<const char*, NColumns> columns_;
80 #include <corsika/detail/modules/writers/EnergyLossWriterParquet.inl> Import and extend the phys::units package.
This class automates the construction of simple tabular Parquet files using the parquet::StreamWriter...
void write(unsigned int const showerId, GrammageType const grammage, std::array< HEPEnergyType, NColumns > const &data)
Write energy lost to the file.
`, since they are used everywhere as integral part of the framework.
This is the base class for all outputs so that they can be stored in homogeneous containers.
EnergyLossWriterParquet(std::array< const char *, NColumns > const &colNames)
Construct a new writer.
Interface to particle properties.
The actual writer to save dEdX data to disk.
void startOfShower(unsigned int const showerId) override
Called at the start of each shower.
void endOfShower(unsigned int const showerId) override
Called at the end of each shower.
void startOfLibrary(boost::filesystem::path const &directory) override
Called at the start of each library.
void endOfLibrary() override
Called at the end of each library.