Skip to content

Commit f80ad49

Browse files
authored
Update taskDplus.cxx
Fixing collision error
1 parent 94e5901 commit f80ad49

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

PWGHF/D2H/Tasks/taskDplus.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,8 @@ struct HfTaskDplus {
556556
}
557557
ptBhad = candidate.ptBhadMotherPart();
558558
flagBHad = getBHadMotherFlag(candidate.pdgBhadMotherPart());
559-
559+
auto collision = candidate.template collision_as<McRecoCollisionsCent>();
560560
if (storeCentrality || storeOccupancy) {
561-
auto collision = candidate.template collision_as<McRecoCollisionsCent>();
562561
if (storeCentrality && centEstimator != CentralityEstimator::None) {
563562
cent = getCentralityColl(collision, centEstimator);
564563
}

0 commit comments

Comments
 (0)