11 #include <corsika/output/BaseOutput.hpp> 14 #include <corsika/media/ShowerAxis.hpp> 15 #include <corsika/modules/writers/WriterOff.hpp> 16 #include <corsika/modules/writers/EnergyLossWriterParquet.hpp> 58 namespace dEdX_output {
68 size_t constexpr
NColumns =
static_cast<int>(ProfileIndex::Entries);
73 static std::array<char const*, NColumns> constexpr ProfileIndexNames{{
"total"}};
78 typedef std::array<HEPEnergyType, NColumns>
Profile;
107 template <
typename TOutput = EnergyLossWriterParquet<dEdX_output::NColumns>>
116 unsigned int const nBins = 200,
120 void startOfLibrary(boost::filesystem::path
const& directory)
final override;
122 void startOfShower(
unsigned int const showerId)
final override;
124 void endOfShower(
unsigned int const showerId)
final override;
126 void endOfLibrary()
final override;
154 YAML::Node getSummary()
const;
159 YAML::Node getConfig()
const;
166 std::vector<dEdX_output::Profile> profile_;
172 #include <corsika/detail/modules/writers/EnergyLossWriter.inl> The environment::ShowerAxis is created from a Point and a Vector and inside an Environment.
Import and extend the phys::units package.
ProfileIndex
Definition of longitudinal profile columns.
size_t constexpr NColumns
Number of columns (static).
std::array< HEPEnergyType, NColumns > Profile
Data type to store column data.
constexpr detail::Power< D, 2, X > square(quantity< D, X > const &x)
square.
`, since they are used everywhere as integral part of the framework.
The EnergyLossWriter can be used to pool the dEdX energy loss of several processes/modules into one o...
Interface to particle properties.