IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 015c2fe2 authored by ralfulrich's avatar ralfulrich Committed by Ralf Ulrich
Browse files

missing file

parent 567425f2
No related branches found
No related tags found
1 merge request!362Remove setup from framework (followup)
/*
* (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/framework/stack/SecondaryView.hpp>
namespace corsika {
/**
* Class to handle the generation of new secondaries. Used as default mix-in for
* SecondaryView.
*/
template <class T1, template <class> class T2>
class DefaultSecondaryProducer {
using view_type = SecondaryView<T1, T2, DefaultSecondaryProducer>;
public:
static bool constexpr has_event{false};
/**
* Method is called after a new secondary has been created on the
* SecondaryView. Extra logic can be introduced here.
*
* The input Particle is the new secondary that was produced and
* is of course a reference into the SecondaryView itself.
*/
template <typename Particle>
void new_secondary(Particle&&) const {
CORSIKA_LOG_TRACE("DefaultSecondaryProducer::new_secondary(Particle&&)");
}
/**
* Method is called when a new SecondaryView is being created
* created. Extra logic can be introduced here.
*
* The input Particle is a reference object into the original
* parent stack! It is not a reference into the SecondaryView
* itself.
*/
template <typename Particle>
DefaultSecondaryProducer(Particle const&) {
CORSIKA_LOG_TRACE("DefaultSecondaryProducer::DefaultSecondaryProducer(Particle&)");
}
};
} // namespace corsika
\ No newline at end of file
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