AIDASoft / DD4hep

Detector Description Toolkit for High Energy Physics
http://dd4hep.cern.ch
GNU Lesser General Public License v3.0
49 stars 95 forks source link

The format of command line parameters for ddsim #1235

Closed TrT-TOT closed 5 months ago

TrT-TOT commented 7 months ago

I'd like to pass ui.commandsConfigure to ddsim but have some problems. The command I use is

ddsim --compactFile a.xml --runType qt --macroFile ./vis.mac --enableG4GPS --ui.commandsConfigre "/physics_lists/em/SyncRadiation true"

I've also tried some other format to pass the parameter /physics_lists/em/SyncRadiation true to ddsim, but the output of ddsim is always be:

UI               INFO  ++ Executing configure command: '/physics_lists/em/SyncRadiation
UI               FATAL Failed to execute command: '/physics_lists/em/SyncRadiation

It seems that ddsim didn't read strings after the space. Could someone help me figure out the correct format of the parameter?

andresailer commented 7 months ago

Hi @TrT-TOT

1) Please use triple tick marks ``` around code blocks, or multi-line txt, or stuff. For example like I edited your post. 2) You have a typo in commandsConfigre 3) Please use a steering file for setting ui commands.

ddsim --dumpSteeringFile > mysteer.py
# edit mysteer.py
ddsim --steeringFile mySteer.py