Skip to content

Ash/implement generators with vegas expressions

To be merged after !42 (merged)

I'm using my package vegas_params to implement the random sampling of position, energy, time, direction etc. It's quite flexible.

In this PR I want to

  1. convert the existing modules to Dataclasses/EventProcessors:
  2. update their interface - since we shouldn't be bound by the command line arguments, we can have nested classes, passing one objects into constructors of other objects.

Modules to convert:

  • ToyGen
  • Laser
  • ParticlePropagator
  • CherenkovGenerator
  • MCPhotonPropagator
  • SmartRayTracer
  • H5Writer
Edited by Andrey Sheshukov

Merge request reports

Loading