Newer
Older
#include <corsika/particles/ParticleProperties.h>
#include <corsika/stack/super_stupid/SuperStupidStack.h>
// using namespace corsika::literals;
// using namespace corsika::io;
using namespace corsika::units;
using namespace corsika::stack;
void fill(corsika::stack::super_stupid::SuperStupidStack& s) {
p.SetPID(corsika::particles::Code::Electron);
p.SetEnergy(1.5_GeV * i);
void read(corsika::stack::super_stupid::SuperStupidStack& s) {
cout << "found Stack with " << s.GetSize() << " particles. " << endl;
Etot += p.GetEnergy();
cout << "particle: " << p.GetPID() << " with " << p.GetEnergy() / 1_GeV << " GeV"
ralfulrich
committed
<< endl;
}
cout << "Etot=" << Etot << " = " << Etot / 1_GeV << " GeV" << endl;
corsika::stack::super_stupid::SuperStupidStack s;