Exemplo n.º 1
0
Arquivo: Gun.py Projeto: sponce/DD4hep
 def direction(self, val):
     """ make sure the direction is parseable by boost, i.e. (1.0, 1.0, 1.0) """
     self._direction = ConfigHelper.makeTuple(val)
     if len(self._direction) != 3:
         raise RuntimeError(
             " gun.direction: malformed input '%s', needs to be a string representing a three vector "
             % val)
Exemplo n.º 2
0
Arquivo: Gun.py Projeto: sponce/DD4hep
 def position(self, val):
     """check that the position is a three vector and can be parsed by ddg4"""
     self._position = ConfigHelper.makeTuple(val)
     if len(self._position) != 3:
         raise RuntimeError(
             " gun.position: malformed input '%s', needs to be a string representing a three vector "
             % val)
Exemplo n.º 3
0
 def position( self, val ):
   """check that the position is a three vector and can be parsed by ddg4"""
   self._position = ConfigHelper.makeTuple( val )
   if len(self._position) != 3:
     raise RuntimeError(" gun.position: malformed input '%s', needs to be a string representing a three vector " % val )
Exemplo n.º 4
0
 def direction( self, val ):
   """ make sure the direction is parseable by boost, i.e. (1.0, 1.0, 1.0) """
   self._direction = ConfigHelper.makeTuple( val )
   if len(self._direction) != 3:
     raise RuntimeError(" gun.direction: malformed input '%s', needs to be a string representing a three vector " % val )