Skip to content

Commit 70b9c12

Browse files
njacazioBenedikt Volkel
authored andcommitted
Update AODProducerWorkflowSpec.cxx
(cherry picked from commit 0e34ac0)
1 parent 0389ea9 commit 70b9c12

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Detectors/AOD/src/AODProducerWorkflowSpec.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,8 +1924,8 @@ void AODProducerWorkflowDPL::run(ProcessingContext& pc)
19241924

19251925
for (int iCol = 0; iCol < nMCCollisions; iCol++) {
19261926
const auto time = mcRecords[iCol].getTimeOffsetWrtBC();
1927-
const auto globalBC = mcRecords[iCol].toLong();
1928-
const auto item = bcsMap.find(globalBC);
1927+
auto globalBC = mcRecords[iCol].toLong();
1928+
auto item = bcsMap.find(globalBC);
19291929
int bcID = -1;
19301930
if (item != bcsMap.end()) {
19311931
bcID = item->second;
@@ -1934,11 +1934,11 @@ void AODProducerWorkflowDPL::run(ProcessingContext& pc)
19341934
<< "for MC collision; BC = " << globalBC
19351935
<< ", mc collision = " << iCol;
19361936
}
1937-
const auto& colParts = mcParts[iCol];
1938-
const auto nParts = colParts.size();
1937+
auto& colParts = mcParts[iCol];
1938+
auto nParts = colParts.size();
19391939
for (const auto colPart : colParts) {
1940-
const auto eventID = colPart.entryID;
1941-
const auto sourceID = colPart.sourceID;
1940+
auto eventID = colPart.entryID;
1941+
auto sourceID = colPart.sourceID;
19421942
// enable embedding: if several colParts exist, then they are
19431943
// saved as one collision
19441944
if (nParts == 1 || sourceID == 0) {

0 commit comments

Comments
 (0)