Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions PWGLF/TableProducer/Strangeness/strangenessbuilder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ struct StrangenessBuilder {
float bestPointingAngle = 10; // a nonsense angle, anything's better
size_t bestPointingAngleIndex = -1;

float bestDCADaughters = 1e+3; // an excessively large DCA
float bestDCADaughters = 1e+3; // an excessively large DCA
size_t bestDCADaughtersIndex = -1;

for (size_t ic = 0; ic < v0tableGrouped[iV0].collisionIds.size(); ic++) {
Expand Down Expand Up @@ -833,13 +833,13 @@ struct StrangenessBuilder {
for (size_t ic = 0; ic < v0tableGrouped[iV0].collisionIds.size(); ic++) {
ao2dV0toV0List[v0tableGrouped[iV0].V0Ids[ic]] = -2;
// algorithm 1: best pointing angle
if (bestPointingAngleIndex == ic && deduplicationAlgorithm.value==1) {
if (bestPointingAngleIndex == ic && deduplicationAlgorithm.value == 1) {
ao2dV0toV0List[v0tableGrouped[iV0].V0Ids[ic]] = -1; // keep best only
}
if (bestDCADaughtersIndex == ic && deduplicationAlgorithm.value==2) {
if (bestDCADaughtersIndex == ic && deduplicationAlgorithm.value == 2) {
ao2dV0toV0List[v0tableGrouped[iV0].V0Ids[ic]] = -1; // keep best only
}
if (bestDCADaughtersIndex == ic && bestPointingAngleIndex == ic && deduplicationAlgorithm.value==3) {
if (bestDCADaughtersIndex == ic && bestPointingAngleIndex == ic && deduplicationAlgorithm.value == 3) {
ao2dV0toV0List[v0tableGrouped[iV0].V0Ids[ic]] = -1; // keep best only
}
}
Expand Down
Loading