pyPENELOPE

distribution – Figures from the electron distribution in the shower

Inheritance diagram of penelopetools.api.figure.shower2010.distribution

class penelopetools.api.figure.shower2010.distribution.Trajectories2D(result, projection, exits=[3, 1, 2], **kwargs)

Bases: penelopetools.api.figure._Figure

Draws a two dimensional projection of the electron trajectories recorded in a shower. The input result are from the trajectories result (Trajectories).

The projecting plane is specified using one out of the three constants:

  • XY plane (PROJECTION_XY)
  • YZ plane (PROJECTION_YZ)
  • XZ plane (PROJECTION_XZ)

The user can also decided whether to draw the backscatter, absorbed and/or transmitted electrons. This is specified by the argument exit which is a list of types of electrons to include in the figure. The type of electrons are specified using the following constants:

  • absorbed (EXIT_ABSORBED)
  • backscattered (EXIT_BACKSCATTERED)
  • transmitted (EXIT_TRANSMITTED)
Parameters:
  • result (Trajectories) – electron trajectories result
  • projection – projecting plane, either PROJECTION_XY, PROJECTION_YZ or PROJECTION_XZ
  • exits (list) – type of electrons to draw in the figure
save(path=None, suffix='', format=['png'])