Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWGLF: fix seeding issues #1798

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -278,5 +278,9 @@ private:

FairGenerator *generator_extraStrangeness()
{
return new GeneratorPythia8ExtraStrangeness();
auto generator = new GeneratorPythia8ExtraStrangeness();
gRandom->SetSeed(0);
generator.readString("Random:setSeed = on");
generator.readString("Random:seed =" + std::to_string(gRandom->Integer(900000000 - 2) + 1));
return generator;
}
6 changes: 5 additions & 1 deletion MC/config/PWGLF/pythia8/generator_pythia8_syntheFlow.C
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,9 @@ private:

FairGenerator *generator_syntheFlow()
{
return new GeneratorPythia8SyntheFlow();
auto generator = new GeneratorPythia8SyntheFlow();
gRandom->SetSeed(0);
generator.readString("Random:setSeed = on");
generator.readString("Random:seed =" + std::to_string(gRandom->Integer(900000000 - 2) + 1));
return generator;
}
6 changes: 5 additions & 1 deletion MC/config/PWGLF/pythia8/generator_pythia8_syntheFlowXi.C
Original file line number Diff line number Diff line change
Expand Up @@ -335,5 +335,9 @@ private:

FairGenerator *generator_syntheFlowXi()
{
return new GeneratorPythia8SyntheFlowXi();
auto generator = new GeneratorPythia8SyntheFlowXi();
gRandom->SetSeed(0);
generator.readString("Random:setSeed = on");
generator.readString("Random:seed =" + std::to_string(gRandom->Integer(900000000 - 2) + 1));
return generator;
}