pyPENELOPE

jobproperties – Properties of the simulation job

Inheritance diagram of penelopetools.api.input.shower2010.jobproperties

class penelopetools.api.input.shower2010.jobproperties.Simulation(randomnumberseeds=None, secondary_particles=False, trajectories=100)

Bases: penelopetools.api.input.penelope.option.Option

Parameters of the simulation job of an electron shower.

Parameters:
  • randomnumberseeds (RandomNumberSeeds) – seeds for the random number generator
  • secondary_particles (bool) – whether to simulate the trajectories of secondary particles generated by the primary electrons
  • trajectories – number of trajecteries to simulate in the shower
ATTR_SECPAR = 'secondaryParticle'
ATTR_TRAJECTORIES = 'showers'
KEYWORD_NTRJM = <penelopetools.api.input.penelope.util.Keyword object at 0x793e3d0>
KEYWORD_TRJSC = <penelopetools.api.input.penelope.util.Keyword object at 0x793e510>
NAME = 'simulation parameters'
TAG_NAME = 'simulation'
classmethod from_inputfile(lines)

Creates a Simulation from lines of a IN file.

Parameters:lines – lines
classmethod from_xml(root)

Creates a Simulation from a XML element.

Parameters:element – XML element
randomnumberseeds

Seeds for the random number generator. The random number seeds is a RandomNumberSeeds.

secondary_particles

Whether (True or False) to simulate the trajectories of secondary particles generated by the primary electrons.

to_html(header_level=1)

Returns a HTML representation of this option.

to_inputfile()

Returns the lines of this option to create a IN file.

to_xml()

Returns a XML representation of this option.

trajectories

Desired number of electrons in the shower (NTRJM). The number of electrons must be greater than zero.