Newer
Older
* (c) Copyright 2018 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.
*/
#include <iomanip>
#include <iostream>
#include <corsika/process/ProcessSequence.h>
#include <corsika/geometry/Point.h>
#include <corsika/geometry/RootCoordinateSystem.h>
#include <corsika/geometry/Vector.h>
using namespace corsika;
using namespace corsika::units::si;
using namespace corsika::process;
class Process1 : public BaseProcess<Process1> {
template <typename D, typename T, typename S>
EProcessReturn DoContinuous(D& d, T&, S&) const {
class Process2 : public BaseProcess<Process2> {
template <typename D, typename T, typename S>
inline EProcessReturn DoContinuous(D& d, T&, S&) const {
class Process3 : public BaseProcess<Process3> {
template <typename D, typename T, typename S>
class Process4 : public BaseProcess<Process4> {
template <typename D, typename T, typename S>
inline EProcessReturn DoContinuous(D& d, T&, S&) const {
for (int i = 0; i < nData; ++i) d.p[i] *= fV;
double p[nData] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
};
struct DummyStack {
void clear() {}
ralfulrich
committed
auto sequence = m1 % m2 % m3 % m4;
DummyData particle;
DummyTrajectory track;
for (int i = 0; i < n; ++i) { sequence.DoContinuous(particle, track); }
for (int i = 0; i < nData; ++i) {
// cout << p.p[i] << endl;
ralfulrich
committed
assert(particle.p[i] == n-i*100);
cout << " done (nothing...) " << endl;
std::cout << "staticsequence_example" << std::endl;