Skip to content

Add missing ASCII representation for some Objects so they can be used by the TextWriter Module

This fixes #164 (closed)

The objects were missing the implementation of the Object::print method. The following is a sample of the output for each object.

  • DepositedCharge
--- Deposited charge information
Type: "h"
Charge: 469 e
Local Position: (6.86916, 5.23198, -0.145112) mm
Global Position: (0.21084, 1.78235, -2.08823) mm
  • PropagatedCharge
--- Propagated charge information
Type: "h"
Charge: 100 e
Local Position: (7.38617, 7.03661, 0.15) mm
Global Position: (-0.443189, -0.0211037, 299.584) mm
  • PixelCharge
--- Pixel charge information
Pixel: (132, 160)
Charge: 500 e
Local Position: (7.26, 8.8, -0.15) mm
Global Position: (-0.0960784, -1.81634, 201.558) mm

Please let me know if you want to modify any of the printed information

Edited by Mohamed Moanis Ali

Merge request reports