IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Air Shower Physics
corsika
Commits
015c2fe2
Commit
015c2fe2
authored
3 years ago
by
ralfulrich
Committed by
Ralf Ulrich
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
missing file
parent
567425f2
No related branches found
No related tags found
1 merge request
!362
Remove setup from framework (followup)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
corsika/framework/stack/DefaultSecondaryProducer.hpp
+54
-0
54 additions, 0 deletions
corsika/framework/stack/DefaultSecondaryProducer.hpp
with
54 additions
and
0 deletions
corsika/framework/stack/DefaultSecondaryProducer.hpp
0 → 100644
+
54
−
0
View file @
015c2fe2
/*
* (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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment