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
f696e720
Commit
f696e720
authored
6 years ago
by
Maximilian Reininghaus
Browse files
Options
Downloads
Patches
Plain Diff
deleted DiscreteProcess.h
parent
68bbace4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!96
Delete DiscreteProcess.h
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Framework/ProcessSequence/DiscreteProcess.h
+0
-52
0 additions, 52 deletions
Framework/ProcessSequence/DiscreteProcess.h
with
0 additions
and
52 deletions
Framework/ProcessSequence/DiscreteProcess.h
deleted
100644 → 0
+
0
−
52
View file @
68bbace4
/*
* (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu
*
* See file AUTHORS for a list of contributors.
*
* 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.
*/
#ifndef _include_corsika_discreteprocess_h_
#define _include_corsika_discreteprocess_h_
#include
<corsika/process/ProcessReturn.h>
// for convenience
#include
<corsika/setup/SetupTrajectory.h>
#include
<iostream>
// debug
namespace
corsika
::
process
{
/**
\class DiscreteProcess
The structural base type of a process object in a
ProcessSequence. Both, the ProcessSequence and all its elements
are of type DiscreteProcess<T>
*/
template
<
typename
derived
>
struct
DiscreteProcess
{
derived
&
GetRef
()
{
return
static_cast
<
derived
&>
(
*
this
);
}
const
derived
&
GetRef
()
const
{
return
static_cast
<
const
derived
&>
(
*
this
);
}
/// here starts the interface-definition part
// -> enforce derived to implement DoDiscrete...
template
<
typename
Particle
,
typename
Stack
>
inline
EProcessReturn
DoDiscrete
(
Particle
&
,
Stack
&
)
const
;
template
<
typename
Particle
,
typename
Track
>
inline
double
GetInteractionLength
(
Particle
&
p
,
Track
&
t
)
const
;
template
<
typename
Particle
,
typename
Track
>
inline
double
GetInverseInteractionLength
(
Particle
&
p
,
Track
&
t
)
const
{
return
1.
/
GetRef
().
GetInteractionLength
(
p
,
t
);
}
};
}
// namespace corsika::process
#endif
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