File indexing completed on 2025-01-18 09:14:22
0001 """Helper object for GuineaPig InputFile Parameters"""
0002
0003 from DDSim.Helper.Input import Input
0004
0005
0006 class GuineaPig(Input):
0007 """Configuration for the GuineaPig InputFiles"""
0008
0009 def __init__(self):
0010 super(GuineaPig, self).__init__()
0011 self._parameters["ParticlesPerEvent"] = -1
0012 self._closeProperties()
0013
0014 @property
0015 def particlesPerEvent(self):
0016 """Set the number of pair particles to simulate per event.
0017 Only used if inputFile ends with ".pairs"
0018 If "-1" all particles will be simulated in a single event
0019 """
0020 return self._parameters["ParticlesPerEvent"]
0021
0022 @particlesPerEvent.setter
0023 def particlesPerEvent(self, val):
0024 self._parameters["ParticlesPerEvent"] = str(val)