Pythia8 seeding improvements
This commit improves the seeding of Pythia8 in O2. The seeding...
(a) ... is now done as part of the object's Init function automatically.
Users are no longer required to provide own seeding logic,
which can significantly simplify the setup.
By default, Pythia8 will seed against ROOT TRandom::GetSeed,
which is itself set to values of the command line option --seed,
used in the o2-sim ... or o2-sim-dpl-eventgen execetuables (which
are the 2 places undertaking event generation). This setup guarantees
that
```
o2-sim-dpl-eventgen --generator pythiapp --seed x
```
will result in different event sequences when x changes.
(b) Users can simply set the seed via a setInitialSeed function
on the GeneratorPythia8 object. The function must be called before
GeneratorPythia8::Init is executed. So calling it right after the constructor
is fine.
Example code (e.g., inside user Generator macro) is:
```
auto mygen = new o2::eventgen::GeneratorPythia8();
long seed = atol(getenv(ALIEN_PROC_ID));
if(!mygen->setInitialSeed(seed)) {
std::cerr << "seeding failed";
}
```
In result, the commit leads to a simplification of the Pythia8 setup also in GeneratorFactory.
REQUEST FOR PRODUCTION RELEASES:
To request your PR to be included in production software, please add the corresponding labels called "async-
+async-label <label1>, <label2>, !<label3> ...
This will add <label1> and <label2> and removes <label3>.
The following labels are available async-2023-pbpb-apass3 async-2023-pbpb-apass4 async-2023-pp-apass4 async-2024-pp-apass1 async-2022-pp-apass7 async-2024-pp-cpass0
Error while checking build/O2/fullCI for 75f9579036347563a7d0233d088b2a8871fe2056 at 2024-07-08 17:48:
++ rsync -a '--exclude=**/.git' --delete --delete-excluded /sw/SOURCES/O2DPG/13281-slc8_x86-64/0/ /sw/slc8_x86-64/O2DPG/13281-slc8_x86-64-local1/
++ mkdir -p etc/modulefiles
++ alibuild-generate-module --bin
BUILD_REQUIRES=alibuild-recipe-tools defaults-release
FULL_BUILD_REQUIRES=defaults-release alibuild-recipe-tools
DEFAULTS_RELEASE is a build_requires. Skipping loading the associated module.
++ cat
++ mkdir -p /sw/slc8_x86-64/O2DPG/13281-slc8_x86-64-local1/etc/modulefiles
++ rsync -a --delete etc/modulefiles/ /sw/slc8_x86-64/O2DPG/13281-slc8_x86-64-local1/etc/modulefiles
Full log here.