예제 #1
0
파일: Gun.py 프로젝트: 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)
예제 #2
0
파일: Gun.py 프로젝트: 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)
예제 #3
0
파일: Gun.py 프로젝트: AIDASoft/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 )
예제 #4
0
파일: Gun.py 프로젝트: AIDASoft/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 )