Skip to content
Snippets Groups Projects
GuineaPig.py 696 B
Newer Older
"""Helper object for GuineaPig InputFile Parameters"""

from DDSim.Helper.Input import Input

Marko Petric's avatar
Marko Petric committed

class GuineaPig(Input):
  """Configuration for the GuineaPig InputFiles"""
Marko Petric's avatar
Marko Petric committed

  def __init__(self):
    super(GuineaPig, self).__init__()
    self._parameters["ParticlesPerEvent"] = -1
    self._closeProperties()
Marko Petric's avatar
Marko Petric committed
  def particlesPerEvent(self):
    """Set the number of pair particles to simulate per event.
    Only used if inputFile ends with ".pairs"
    If "-1" all particles will be simulated in a single event
    """
    return self._parameters["ParticlesPerEvent"]
Marko Petric's avatar
Marko Petric committed

Marko Petric's avatar
Marko Petric committed
  def particlesPerEvent(self, val):
    self._parameters["ParticlesPerEvent"] = str(val)