IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 1de042d2 authored by Remy Prechelt's avatar Remy Prechelt Committed by ralfulrich
Browse files

Delete specialized writers.

parent 99697d4b
No related branches found
No related tags found
No related merge requests found
/*
* (c) Copyright 2021 CORSIKA Project, corsika-project@lists.kit.edu
*
* This software is distributed under the terms of the GNU General Public
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
* the license.
*/
#pragma once
#include <corsika/output/BaseOutput.hpp>
#include <corsika/framework/core/ParticleProperties.hpp>
#include <corsika/framework/core/PhysicalUnits.hpp>
#include <corsika/media/ShowerAxis.hpp>
namespace corsika {
class EnergyLossWriterOff : public BaseOutput {
public:
/**
* Construct a new writer.
*/
EnergyLossWriterOff() = default;
/**
* Called at the start of each library.
*/
void startOfLibrary(boost::filesystem::path const&) final override {}
/**
* Called at the start of each shower.
*/
void startOfShower(unsigned int const) final override {}
/**
* Called at the end of each shower.
*/
void endOfShower(unsigned int const) final override {}
/**
* Called at the end of each library.
*
* This must also increment the run number since we override
* the default behaviour of BaseOutput.
*/
void endOfLibrary() final override {}
/**
* Write a track to the file.
*/
template <typename TTrack>
void write(TTrack const&, Code const, HEPEnergyType const) {}
/**
* Add localized energy loss.
*/
void write(Point const&, Code const, HEPEnergyType const) {}
/**
* Add binned energy loss.
*/
void write(GrammageType const, GrammageType const, HEPEnergyType const) {}
HEPEnergyType getTotal() const { return 0_GeV; }
}; // namespace corsika
} // namespace corsika
/*
* (c) Copyright 2021 CORSIKA Project, corsika-project@lists.kit.edu
*
* This software is distributed under the terms of the GNU General Public
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
* the license.
*/
#pragma once
#include <corsika/output/BaseOutput.hpp>
#include <corsika/framework/core/ParticleProperties.hpp>
#include <corsika/framework/core/PhysicalUnits.hpp>
#include <corsika/media/ShowerAxis.hpp>
namespace corsika {
class LongitudinalProfileWriterOff : public BaseOutput {
public:
/**
* Construct a new writer.
*/
LongitudinalProfileWriterOff() = default;
/**
* Called at the start of each library.
*/
void startOfLibrary(boost::filesystem::path const&) final override {}
/**
* Called at the start of each shower.
*/
void startOfShower(unsigned int const) final override {}
/**
* Called at the end of each shower.
*/
void endOfShower(unsigned int const) final override {}
/**
* Called at the end of each library.
*
* This must also increment the run number since we override
* the default behaviour of BaseOutput.
*/
void endOfLibrary() final override {}
template <typename TTrack>
void write(TTrack const&, Code const, double const) {}
void write(GrammageType const, GrammageType const, Code const, double const) {}
}; // namespace corsika
} // namespace corsika
/*
* (c) Copyright 2021 CORSIKA Project, corsika-project@lists.kit.edu
*
* This software is distributed under the terms of the GNU General Public
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
* the license.
*/
#pragma once
#include <corsika/output/BaseOutput.hpp>
#include <corsika/framework/core/ParticleProperties.hpp>
#include <corsika/framework/core/PhysicalUnits.hpp>
#include <corsika/framework/geometry/QuantityVector.hpp>
namespace corsika {
class TrackWriterOff : public BaseOutput {
public:
/**
* Construct a new writer.
*
* @param name The name of this output.
*/
TrackWriterOff() = default;
/**
* Called at the start of each library.
*/
void startOfLibrary(boost::filesystem::path const&) final override {}
/**
* Called at the start of each shower.
*/
void startOfShower(unsigned int const) final override {}
/**
* Called at the end of each shower.
*/
void endOfShower(unsigned int const) final override {}
/**
* Called at the end of each library.
*
* This must also increment the run number since we override
* the default behaviour of BaseOutput.
*/
void endOfLibrary() final override {}
/**
* Write a track to the file.
*/
void write(Code const& pid, units::si::HEPEnergyType const& energy,
double const weight, QuantityVector<length_d> const& start,
QuantityVector<length_d> const& end) {}
}; // class TrackWriterOff
} // namespace corsika
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment