Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:14:22

0001 """Base class for inputfile parameters"""
0002 
0003 from DDSim.Helper.ConfigHelper import ConfigHelper
0004 
0005 
0006 class Input(ConfigHelper):
0007   """Configuration for the InputFiles"""
0008 
0009   def __init__(self):
0010     super(Input, self).__init__()
0011     self.__parameters = {}
0012     self._closeProperties()
0013 
0014   def getParameters(self):
0015     return self.__parameters
0016 
0017   @property
0018   def _parameters(self):
0019     return self.__parameters
0020 
0021   @_parameters.setter
0022   def _parameters(self, newParameters):
0023     if isinstance(newParameters, dict):
0024       for par, val in newParameters.items():
0025         self.__parameters[par] = str(val)
0026 
0027     else:
0028       raise RuntimeError("Commandline setting of InputFileParameters is not supported, use a steeringFile: %s "
0029                          % newParameters)