Skip to content

Commit c0b730c

Browse files
jackal1-66sawenzel
authored andcommitted
Silence importing task line on hyperloop
1 parent d01caa6 commit c0b730c

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎Generators/include/Generators/GeneratorHybrid.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ class GeneratorHybrid : public Generator
119119
std::atomic<bool> mStopFlag;
120120
bool mIsInitialized = false;
121121

122+
// Hyperloop flag
123+
const bool mIsHyperloop = Generator::isHyperloop();
124+
122125
o2::dataformats::MCEventHeader mMCEventHeader; // to capture event headers
123126
int mHeaderGeneratorIndex = -1; // index of the generator that updated the header in current event
124127

‎Generators/src/GeneratorHybrid.cxx‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,9 @@ bool GeneratorHybrid::importParticles()
459459
if (mCocktailMode) {
460460
// in cocktail mode we need to merge the particles from the different generators
461461
for (auto subIndex : subGenIndex) {
462-
LOG(info) << "Importing particles for task " << subIndex;
462+
if (!mIsHyperloop) {
463+
LOG(info) << "Importing particles for task " << subIndex;
464+
}
463465
auto subParticles = gens[subIndex]->getParticles();
464466

465467
auto time_unit = gens[subIndex]->getTimeUnit();
@@ -488,7 +490,9 @@ bool GeneratorHybrid::importParticles()
488490
mTasksStarted++;
489491
}
490492
} else {
491-
LOG(info) << "Importing particles for task " << genIndex;
493+
if (!mIsHyperloop) {
494+
LOG(info) << "Importing particles for task " << genIndex;
495+
}
492496
// at this moment the mIndex-th generator is ready to be used
493497
mParticles = gens[genIndex]->getParticles();
494498

0 commit comments

Comments
 (0)