Skip to content

Commit

Permalink
Add offset to mitigate edge effects min bias to trigger event ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
hscheid committed Jul 23, 2024
1 parent d13558d commit a2835df
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public:

auto seed = (gRandom->TRandom::GetSeed() % 900000000);

int offset = (int)(gRandom->Uniform(lInverseTriggerRatio)); // create offset to mitigate edge effects due to small number of events per job
lGeneratedEvents += offset;

cout << "Initalizing extra PYTHIA object used to generate min-bias events..." << endl;
TString pathconfigMB = gSystem->ExpandPathName("$O2DPG_ROOT/MC/config/PWGEM/pythia8/generator/pythia8_MB_gapevent.cfg");
pythiaObjectMinimumBias.readFile(pathconfigMB.Data());
Expand Down

0 comments on commit a2835df

Please sign in to comment.