CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
corsika::LongitudinalProfileWriterParquet< NColumns > Class Template Reference

The actual writer to save longitudinal profile data to disk. More...

#include <LongitudinalProfileWriterParquet.hpp>

Inheritance diagram for corsika::LongitudinalProfileWriterParquet< NColumns >:

Public Member Functions

 LongitudinalProfileWriterParquet (std::array< const char *, NColumns > const &colNames)
 Construct a new writer.
 
void startOfLibrary (boost::filesystem::path const &directory) override
 Called at the start of each library.
 
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 endOfLibrary () override
 Called at the end of each library. More...
 
void write (unsigned int const showerId, GrammageType const grammage, std::array< double, NColumns > const &data)
 Add profile to disk.
 
- Public Member Functions inherited from corsika::BaseOutput
bool isInit () const
 Flag to indicate readiness.
 
virtual YAML::Node getSummary () const
 Provide YAML Summary for this BaseOutput.
 
- Public Member Functions inherited from corsika::Configurable
virtual YAML::Node getConfig () const =0
 Provide YAML configuration for this BaseOutput.
 

Additional Inherited Members

- Protected Member Functions inherited from corsika::BaseOutput
void setInit (bool const v)
 Set init flag.
 

Detailed Description

template<size_t NColumns>
class corsika::LongitudinalProfileWriterParquet< NColumns >

The actual writer to save longitudinal profile data to disk.

The purpose of this class is not to collect single-particle-level profile data, but to write entire binned profiles to disk at the end of a shower. To fill the shower data, you have to use ProfileWriter in combination with SubWriter. The LongitudinalProfileWriterParquet is the default output mode of the LongitudinalWriter.

Definition at line 31 of file LongitudinalProfileWriterParquet.hpp.

Member Function Documentation

◆ endOfLibrary()

template<size_t NColumns>
void corsika::LongitudinalProfileWriterParquet< NColumns >::endOfLibrary ( )
overridevirtual

Called at the end of each library.

This must also increment the run number since we override the default behaviour of BaseOutput.

Implements corsika::BaseOutput.


The documentation for this class was generated from the following file: