Skip to content

Conversation

@jackal1-66
Copy link
Collaborator

In order to run on hyperloop an external generator based on the automatic FIFOs mechanism has been setup for EPOS4.
The generation has been tested locally using this example command

o2-sim-dpl-eventgen --generator external --nEvents 1000 --aggregate-timeframe 2 --configFile $O2DPG_MC_CONFIG_ROOT/MC/config/examples/ini/GeneratorEPOS4.ini -b | o2-sim-mctracks-to-aod -b | o2-analysis-mctracks-to-aod-simple-task -b

or changing the parameters with

o2-sim-dpl-eventgen --generator external --nEvents 1000 --aggregate-timeframe 2 --configFile $O2DPG_MC_CONFIG_ROOT/MC/config/examples/ini/GeneratorEPOS4.ini --configKeyValues "GeneratorExternal.funcName=generateEPOS4(\"my/path/example2.optns\", 1000)" -b | o2-sim-mctracks-to-aod -b | o2-analysis-mctracks-to-aod-simple-task -b

It is important that in the optns file the option set ihepmc 2 is set, otherwise the generation won't work (as specified also in the HepMC EPOS4 generation tutorial).

@github-actions
Copy link

github-actions bot commented Nov 7, 2024

REQUEST FOR PRODUCTION RELEASES:
To request your PR to be included in production software, please add the corresponding labels called "async-" to your PR. Add the labels directly (if you have the permissions) or add a comment of the form (note that labels are separated by a ",")

+async-label <label1>, <label2>, !<label3> ...

This will add <label1> and <label2> and removes <label3>.

The following labels are available
async-2023-pbpb-apass4
async-2023-pp-apass4
async-2024-pp-apass1
async-2022-pp-apass7
async-2024-pp-cpass0
async-2024-PbPb-cpass0
async-2024-PbPb-apass1
async-2024-ppRef-apass1

@jackal1-66
Copy link
Collaborator Author

I checked again the modifications and I didn't find any issue. I retested everything thoroughly both locally and on LXPLUS and the test passed successfully. I think the issue might be either related to the slc7 build, or to issues when creating the automatic FIFO with the child spawning of EPOS4. Unfortanately I am not able to say more since I don't have access to the CI machines.

@jackal1-66
Copy link
Collaborator Author

Issue with CI is related to the fact that the environment variables seem not to be set correctly in the docker. This can be easily fixed by editing the running script (since it seems instead that EPOS4_ROOT is set correctly). Adding this check and variable exports in epos.sh fixed the test that is now working fine. Merging since the CI check passed. As a note, the problems could be reproduced in lxplus (or locally) by simply unsetting EPO4, HTO, CHK and OPT.

@jackal1-66 jackal1-66 merged commit 8585daa into AliceO2Group:master Nov 15, 2024
7 checks passed
@jackal1-66 jackal1-66 deleted the epos4external branch November 20, 2024 13:14
maciacco pushed a commit to maciacco/O2DPG that referenced this pull request Feb 13, 2025
* Created EPOS4 external example generator

* Updated center-of-mass energy of EPOS4 example

* Implemented GeneratorEPOS4 test

* Testing fix for EPOS4 external

* Revert "Implemented GeneratorEPOS4 test"

This reverts commit e0b88b1.

* Reapply "Implemented GeneratorEPOS4 test"

This reverts commit 53671e8.

* Revert "Testing fix for EPOS4 external"

This reverts commit 920cf42.

* Check for LIBDIR

* Added EPO4 as env variable in external script

* Explicit definition of EPOS4 version

* Reorganised and improved fix for CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants