CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
NoOutput.hpp
1 /*
2  * (c) Copyright 2021 CORSIKA Project, corsika-project@lists.kit.edu
3  *
4  * This software is distributed under the terms of the GNU General Public
5  * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
6  * the license.
7  */
8 #pragma once
9 
12 
13 namespace corsika {
14 
19  class NoOutput : public BaseOutput {
20 
21  protected:
22  NoOutput() {}
23 
24  public:
28  void startOfLibrary(boost::filesystem::path const&) final override {}
29 
33  void startOfShower(unsigned int const) final override {}
34 
38  void endOfShower(unsigned int const) final override {}
39 
43  void endOfLibrary() final override {}
44 
48  YAML::Node getConfig() const override { return YAML::Node(); };
49 
53  YAML::Node getSummary() const final override { return YAML::Node(); };
54 
55  protected:
56  void write(Code const&, units::si::HEPEnergyType const&, units::si::LengthType const&,
58  };
59 
60 } // namespace corsika
void endOfLibrary() final override
Called at the end of each run.
Definition: NoOutput.hpp:43
YAML::Node getConfig() const override
Get the configuration of this output.
Definition: NoOutput.hpp:48
Import and extend the phys::units package.
void startOfLibrary(boost::filesystem::path const &) final override
Called at the start of each run.
Definition: NoOutput.hpp:28
This is the base class for all outputs so that they can be stored in homogeneous containers.
Definition: NoOutput.hpp:19
void startOfShower(unsigned int const) final override
Called at the start of each event/shower.
Definition: NoOutput.hpp:33
void endOfShower(unsigned int const) final override
Called at the end of each event/shower.
Definition: NoOutput.hpp:38
`, 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.
Definition: BaseOutput.hpp:21
Interface to particle properties.
YAML::Node getSummary() const final override
Get any summary information for the entire library.
Definition: NoOutput.hpp:53