86 #ifndef EGS_INTERFACE1_
87 #define EGS_INTERFACE1_
89 #include "egs_config1.h"
93 #include "array_sizes.h"
111 EGS_Float
x[MXSTACK];
113 EGS_Float
y[MXSTACK];
115 EGS_Float
z[MXSTACK];
117 EGS_Float
u[MXSTACK];
119 EGS_Float
v[MXSTACK];
121 EGS_Float
w[MXSTACK];
125 EGS_Float
wt[MXSTACK];
553 EGS_I32 mcdf_pe_xsections;
617 char file_extensions[20][10];
618 EGS_I32 file_units[20];
620 char input_file[256];
621 char output_file[256];
627 EGS_I32 n_parallel, i_parallel, first_parallel, n_max_parallel,
628 n_chunk, n_files, i_input, i_log, i_incoh, i_nist_data,
629 i_mscat, i_photo_cs, i_photo_relax, xsec_out, is_batch,
630 is_uniform_run, is_pegsless;
640 EGS_Float
ExIN, EyIN, EzIN, EMLMTIN,
641 BxIN, ByIN, BzIN, Bx, By, Bz, Bx_new, By_new, Bz_new;
711 extern __extc__
void egsInit(
int argc,
char **argv);
714 #define egsFinish F77_OBJ_(egs_finish,EGS_FINISH)
727 #define egsAddMedium F77_OBJ_(egs_add_medium,EGS_ADD_MEDIUM)
739 extern __extc__ EGS_I32
egsAddMedium(
const char *medname, EGS_I32 length);
744 #define egsHatch F77_OBJ_(egs_hatch,EGS_HATCH)
755 extern __extc__
void egsHatch(
void);
760 #define egsShower F77_OBJ_(egs_shower,EGS_SHOWER)
778 #define egsRandomDefaultInit F77_OBJ_(egs_init_default_rng,EGS_INIT_DEFAULT_RNG)
791 #define egsRandomInit F77_OBJ_(egs_init_rng,EGS_INIT_RNG)
803 extern __extc__
void egsRandomInit(
const EGS_I32 *s1,
const EGS_I32 *s2);
806 #define egsRandomGet F77_OBJ_(egs_get_rndm,EGS_GET_RNDM)
820 #define egsFillRandomArray F77_OBJ_(egs_fill_rndm_array,EGS_GET_RNDM_ARRAY)
837 #define egsElapsedTime F77_OBJ_(egs_tot_time,EGS_TOT_TIME)
846 #define egsCpuTime F77_OBJ_(egs_etime,EGS_ETIME)
855 #define egsGetTransportParameter F77_OBJ_(get_transport_parameter,GET_TRANSPORT_PARAMETER)
872 #define egsHowfar F77_OBJ_(egs_howfar,EGS_HOWFAR)
905 #define egsHownear F77_OBJ_(egs_hownear,EGS_HOWNEAR)
918 extern __extc__
void egsHownear(EGS_Float *tperp);
921 #define egsAusgab F77_OBJ_(egs_ausgab,EGS_AUSGAB)
931 extern __extc__
void egsAusgab(EGS_I32 *iarg);
934 #define egsStartParticle F77_OBJ_(egs_start_particle,EGS_START_PARTICLE)
__extc__ struct EGS_VarianceReduction * the_egsvr
The address of the mortran egs_vr common block as a pointer to a C-structure of type EGS_VarianceRedu...
#define egsGetTransportParameter
EGS_I32 transport_algorithm
EGS_Float rhor_new
Mass density ratio in the new region.
__extc__ struct EGS_Stack * the_stack
The address of the mortran STACK common block as a pointer to a C-structure of type EGS_Stack...
A structure corresponding to the EGSnrc transport threshold energies common block BOUNDS...
A structure corresponding to the EGSnrc particle stack common block STACK.
EGS_I32 medium
Current medium.
A structure corresponding to the EPCONT common block.
__extc__ struct EGS_Rayleigh * the_rayleigh
The address of the mortran rayleigh_inputs common block as a pointer to a C-structure of type EGS_Ray...
__extc__ struct EGS_EtControl * the_etcontrol
The address of the mortran Et_Control common block as a pointer to a C-structure of type EGS_EtContro...
EGS_Float rhor
Mass density ratio.
double pzero
Precise zero.
double prm
Precise electron rest energy in MeV.
A structure corresponding to the egs_io common block.
__extc__ struct EGS_IO * the_egsio
The address of the mortran egs_io common block as a pointer to a C-structure of type EGS_IO...
EGS_I32 medium_new
Medium in the new region.
__extc__ struct EGS_emfInputs * the_emf
The address of the mortran EMF-INPUTS common block as a pointer to a C-structure of type EGS_emfInput...
A structure corresponding to the rayleigh_inputs common block.
__extc__ struct EGS_Epcont * the_epcont
The address of the mortran EPCONT common block as a pointer to a C-structure of type EGS_Epcont...
__extc__ struct EGS_Bounds * the_bounds
The address of the morrtan BOUNDS common block as a pointer to a C-structure of type EGS_Bounds...
A structure corresponding to the ET_control common block.
A structure corresponding to the particle production threshold energies common block THRESH...
__extc__ struct EGS_Useful * the_useful
The address of the mortran USEFUL common block as a pointer to a C-structure of type EGS_Useful...
#define egsFillRandomArray
#define egsRandomDefaultInit
A structure corresponding to the xsection_options common block.
A structure corresponding to the USEFUL common block.
EGS_I32 medold
Old medium.
__extc__ struct EGS_Media * the_media
The address of the mortran MEDIA common block as a pointer to a C-structure of type EGS_Media...
__extc__ struct EGS_XOptions * the_xoptions
The address of the mortran cross section options common block as a pointer to a C-structure of type E...
EGS_Float rm
Electron rest energy.
__extc__ void egsInit(int argc, char **argv)
Initializes the EGSnrc mortran back-end.
EGS_Float skindepth_for_bca
A structure corresponding to the egs_vr common block.
__extc__ struct EGS_Thresh * the_thresh
The address of the mortran THRESH common block as a pointer to a C-structure of type EGS_Thresh...