diff --git a/PWGUD/TableProducer/SGCandProducer.cxx b/PWGUD/TableProducer/SGCandProducer.cxx index 65a2e60ab39..a12c33cd015 100644 --- a/PWGUD/TableProducer/SGCandProducer.cxx +++ b/PWGUD/TableProducer/SGCandProducer.cxx @@ -303,7 +303,7 @@ struct McSGCandProducer { {}}; template - void updateUDMcCollisions(TMcCollision const& mccol,uint64_t globBC) + void updateUDMcCollisions(TMcCollision const& mccol, uint64_t globBC) { // save mccol outputMcCollisions(globBC, @@ -504,9 +504,9 @@ struct McSGCandProducer { bool goon = !sgcandAtEnd || !mccolAtEnd; int counter = 0; while (goon) { - auto bcIter = mccol.bc_as(); - uint64_t globBC = bcIter.globalBC(); - //uint64_t globBC = 0; + auto bcIter = mccol.bc_as(); + uint64_t globBC = bcIter.globalBC(); + // uint64_t globBC = 0; // check if dgcand has an associated McCollision if (sgcand.has_collision()) { auto sgcandCol = sgcand.collision_as(); @@ -541,7 +541,7 @@ struct McSGCandProducer { LOGF(info, " Saving McCollision %d", mcsgId); // update UDMcCollisions auto sgcandMcCol = sgcand.collision_as().mcCollision(); - updateUDMcCollisions(sgcandMcCol,globBC); + updateUDMcCollisions(sgcandMcCol, globBC); mcColIsSaved[mcsgId] = outputMcCollisions.lastIndex(); } @@ -596,7 +596,7 @@ struct McSGCandProducer { if (mcColIsSaved.find(mccolId) == mcColIsSaved.end()) { LOGF(info, " Saving McCollision %d", mccolId); // update UDMcCollisions - updateUDMcCollisions(mccol,globBC); + updateUDMcCollisions(mccol, globBC); mcColIsSaved[mccolId] = outputMcCollisions.lastIndex(); // update UDMcParticles