Skip to content

Commit 3f6c1b9

Browse files
authored
Merge pull request #9 from alibuild/alibot-cleanup-13813
Please consider the following formatting changes to AliceO2Group#13813
2 parents 0758007 + bc1e572 commit 3f6c1b9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Generators/src/GeneratorHybrid.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ GeneratorHybrid::GeneratorHybrid(const std::string& inputgens)
4242
}
4343
int index = 0;
4444
if (!(mRandomize || mGenerationMode == GenMode::kParallel)) {
45-
if(mCocktailMode) {
45+
if (mCocktailMode) {
4646
if (mGroups.size() != mFractions.size()) {
4747
LOG(fatal) << "Number of groups does not match the number of fractions";
4848
return;
@@ -58,7 +58,7 @@ GeneratorHybrid::GeneratorHybrid(const std::string& inputgens)
5858
LOG(fatal) << "All fractions provided are 0, no simulation will be performed";
5959
return;
6060
}
61-
}
61+
}
6262
for (auto gen : mInputGens) {
6363
// Search if the generator name is inside generatorNames (which is a vector of strings)
6464
LOG(info) << "Checking if generator " << gen << " is in the list of available generators \n";
@@ -335,7 +335,7 @@ bool GeneratorHybrid::importParticles()
335335
mResultQueue[0].pop(genIndex);
336336
} else {
337337
// need to pop from a particular queue
338-
if(!mCocktailMode){
338+
if (!mCocktailMode) {
339339
mResultQueue[mIndex].pop(genIndex);
340340
} else {
341341
// in cocktail mode we need to pop from the group queue
@@ -508,18 +508,18 @@ Bool_t GeneratorHybrid::parseJSON(const std::string& path)
508508
for (const auto& subset : sets.GetArray()) {
509509
mGroups.back().push_back(subset.GetInt());
510510
}
511-
if(group.HasMember("fractions")) {
511+
if (group.HasMember("fractions")) {
512512
const auto& subfrac = group["fractions"];
513513
mCocktailFractions.push_back({});
514514
for (const auto& frac : subfrac.GetArray()) {
515515
mCocktailFractions.back().push_back(frac.GetInt());
516516
}
517-
if(mGroups.back().size() != mCocktailFractions.back().size()) {
517+
if (mGroups.back().size() != mCocktailFractions.back().size()) {
518518
LOG(fatal) << "Number of fractions does not match the number of generators in the cocktail";
519519
return false;
520520
}
521521
} else {
522-
LOG(warn) << "Fractions not provided for cocktail group " << mGroups.size()-1 << " setting all fractions to 1";
522+
LOG(warn) << "Fractions not provided for cocktail group " << mGroups.size() - 1 << " setting all fractions to 1";
523523
mCocktailFractions.push_back({});
524524
for (int i = 0; i < mGroups.back().size(); i++) {
525525
mCocktailFractions.back().push_back(1);

0 commit comments

Comments
 (0)