44#include "egs_functions.h"
46#include "egs_advanced_application.h"
47#include "egs_transformations.h"
101 PHSPControl(EGS_Input *inp, EGS_AffineTransform *trans, EGS_AdvancedApplication *app,
Publisher *pub);
104 void finish(EGS_I64 n_orig_particles);
bool kill_after_scoring
Set wt = 0 for particle after scoring if true.
void initSource()
create/open new source and set extra numbers
@ APPEND
IAEA Append mode.
EGS_AffineTransform * transform
void outputResults()
output file name and number of particles written
void finish(EGS_I64 n_orig_particles)
set final number of particles written and destroy source
void update(EB_Message message, void *particle)
receive PARTICLE_ESCAPED_SOURCE message
void writeParticle(EGS_Particle *p)
write a single particle to the phsp
IAEA_I32 mode
Access mode.
IAEA_I32 id
IAEA Source ID (just set to 1 currently)
bool print_header
User has requested the phsp header gets printed after run.
short getIAEAParticleType(const EGS_Particle *p)
convert a particle to its IAEA Particle type
void destroySource()
destroy the source
string fname
root name of phsp header
IAEA_I64 num_written
Number of particles written to phsp file.
A simple pub/sub module to allow various egs_brachy classes to subscribe to particle events.