![]() |
Project
|
The usage of JETSCAPE with the O2 machinery is presented in this short manual. An in-depth explanation of the mechanisms behind the HepMC(3) data handling can be found in the HepMC_fifo folder of the MC examples. The scripts use the cmd
parameter of GeneratorHepMC
to spawn the JETSCAPE generation via the jetscape.sh
script. It is important to turn on the HepMC3 output format in the xml configuration file, as done in jetscape_user_example.xml, otherwise the simulation will not work.
Two scripts are available to run the simulations
In addition an jetscape_user_example.xml file is provided to start JETSCAPE with user parameters. The user could easily create scripts similar to the one provided for the EPOS4 tutorial for DPL or O2DPG based simulations.
It can be run without the help of the other scripts to simply generate an .hepmc file. This example shows all the functionalities of the script (which are implemented in a similar way inside the generation steering scripts). In particular the -i
flag allows to provide the .xml user configuration file to JETSCAPE, -s
feeds the generator with a user seed, and the HepMC output filename is set using the -o
flag. The script edits automatically some specific parts of the provided input XML file.
This script works only with O2sim versions containing the FIFO custom name creation fix (the specific build will be added here in the future) otherwise it will crash or not complete the simulation. Few flags are available to change the settings of the generation:
The last few lines of the script contain the execution of o2-sim, so this part can be modified by the users following their requirements. It's important not to delete from the configuration keys GeneratorFileOrCmd.cmd=$cmd -i $xml;GeneratorFileOrCmd.fileNames=test_out.hepmc;GeneratorFileOrCmd.outputSwitch=-o;GeneratorFileOrCmd.bMaxSwitch=none;GeneratorFileOrCmd.nEventsSwitch=none;
because the script might not work anymore, and it would be better to provide additional configurations via the -m flag.