Skip to content
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
@@ -1,5 +1,6 @@
#include "FairGenerator.h"
#include "Generators/GeneratorPythia8.h"
#include "Generators/GeneratorPythia8Param.h"
#include "Pythia8/Pythia.h"
#include "TRandom.h"
#include "TDatabasePDG.h"
Expand Down Expand Up @@ -304,7 +305,7 @@ protected:
// we restore the daughter indices of the mothers after the removal
int newPartIdx{0};
std::array<int, 2> newMothers = {0, 0};
if (mGenConfig.includePartonEvent) { // only necessary in case of parton event, otherwise we keep no mother
if (o2::eventgen::GeneratorPythia8Param::Instance().includePartonEvent) { // only necessary in case of parton event, otherwise we keep no mother
newMothers[0] = mothers.front();
newMothers[1] = mothers.back();
newPartIdx = mPythia.event.size();
Expand Down Expand Up @@ -334,7 +335,6 @@ protected:
}
}
}
auto dauOfMomUp = mPythia.event[mothers[iMom]].daughterList();
}

mPythia.event.append(charge * pdgCodeNew, status, newMothers[0], newMothers[1], 0, 0, 0, 0, px, py, pz, energy, mass);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ funcName=GeneratorPythia8GapTriggeredCharmAndBeauty(5, -1.5, 1.5, -1.5, 1.5, {10

[GeneratorPythia8]
config=${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGHF/pythia8/generator/pythia8_charmhadronic_with_decays_DResoTrigger.cfg
includePartonEvent=false # not needed for jet studies, hence no need to keep parton event
includePartonEvent=false
### not needed for jet studies, hence no need to keep parton event