diff --git a/DDG4/python/DDSim/Helper/Action.py b/DDG4/python/DDSim/Helper/Action.py index 70ddd95a8531fe540b3f7ef83e4e73a3c05bf274..0070cd2ee9e6ead498cd05aca80127d03054d494 100644 --- a/DDG4/python/DDSim/Helper/Action.py +++ b/DDG4/python/DDSim/Helper/Action.py @@ -44,7 +44,18 @@ class Action(ConfigHelper): # multiple actions by list of dict of name and parameter dict: >>> SIM.action.stack = [ { "name": "Geant4TestStackAction", "parameter": {"Property_int": 10} } ] -On the command line, these can be specified as JSON strings. +On the command line or in python, these actions can be specified as JSON strings: + $ ddsim --action.stack '{ "name": "Geant4TestStackAction", "parameter": { "Property_int": 10 } }' +or + >>> SIM.action.stack = ''' + { + "name": "Geant4TestStackAction", + "parameter": { + "Property_int": 10, + "Property_double": "1.0*mm" + } + } + ''' """