Source-like component that reads neutron state parameters from an mcpl-file.
Author: Erik B Knudsen
Origin: DTU Physics
Date: Mar 2016
Source-like component that reads neutron state parameters from a binary mcpl-file.
MCPL is short for Monte Carlo Particle List, and is a new format for sharing events
between e.g. MCNP(X), Geant4 and McStas.
When used with MPI, the --ncount given on the commandline is overwritten by
#MPI nodes x #events in the file.
Parameters in boldface are required;
the others are optional.
Name of neutron mcpl file to read.
If !=0 read polarisation vectors from file.
Print debugging information for first 10 particles read.
Lower energy bound. Particles found in the MCPL-file below the limit are skipped.
Upper energy bound. Particles found in the MCPL-file above the limit are skipped.
Repeat contents of the MCPL file this number of times. NB: When running MPI, repeating is implicit and is taken into account by integer division. Should be combined sith the _smear options!
When repeating events, make a Gaussian MC choice within E_smear*E around particle energy E
When repeating events, make a flat MC choice of position within pos_smear around particle starting position
When repeating events, make a Gaussian MC choice of direction within dir_smear around particle direction