Skip to content
Open
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
3 changes: 3 additions & 0 deletions Generators/include/Generators/GeneratorHybrid.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ class GeneratorHybrid : public Generator
std::atomic<bool> mStopFlag;
bool mIsInitialized = false;

// Hyperloop flag
const bool mIsHyperloop = Generator::isHyperloop();

o2::dataformats::MCEventHeader mMCEventHeader; // to capture event headers
int mHeaderGeneratorIndex = -1; // index of the generator that updated the header in current event

Expand Down
8 changes: 6 additions & 2 deletions Generators/src/GeneratorHybrid.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,9 @@ bool GeneratorHybrid::importParticles()
if (mCocktailMode) {
// in cocktail mode we need to merge the particles from the different generators
for (auto subIndex : subGenIndex) {
LOG(info) << "Importing particles for task " << subIndex;
if (!mIsHyperloop) {
LOG(info) << "Importing particles for task " << subIndex;
}
auto subParticles = gens[subIndex]->getParticles();

auto time_unit = gens[subIndex]->getTimeUnit();
Expand Down Expand Up @@ -488,7 +490,9 @@ bool GeneratorHybrid::importParticles()
mTasksStarted++;
}
} else {
LOG(info) << "Importing particles for task " << genIndex;
if (!mIsHyperloop) {
LOG(info) << "Importing particles for task " << genIndex;
}
// at this moment the mIndex-th generator is ready to be used
mParticles = gens[genIndex]->getParticles();

Expand Down
Loading