Skip to content

Commit

Permalink
[PWGCF] FemtoUniverse: Fixing Coll and CollExt tables filling
Browse files Browse the repository at this point in the history
  • Loading branch information
prchakra authored Jan 27, 2025
1 parent 59c864e commit 1dacc1c
Showing 1 changed file with 18 additions and 29 deletions.
47 changes: 18 additions & 29 deletions PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ struct FemtoUniverseProducerTask {
} ConfD0Selection;

HfHelper hfHelper;

bool isKaonNSigma(float mom, float nsigmaTPCK, float nsigmaTOFK)
{

Expand Down Expand Up @@ -792,22 +791,18 @@ struct FemtoUniverseProducerTask {
// particle candidates for such collisions
if (!colCuts.isSelected(col)) {
return false;
} else {
if (!confIsUsePileUp) {
if (confDoSpher) {
outputCollision(vtxZ, mult, multNtr, colCuts.computeSphericity(col, tracks), mMagField);
} else {
outputCollision(vtxZ, mult, multNtr, 2, mMagField);
}
} else {
if ((!confEvNoSameBunchPileup || col.selection_bit(aod::evsel::kNoSameBunchPileup)) && (!confEvIsGoodZvtxFT0vsPV || col.selection_bit(aod::evsel::kIsGoodZvtxFT0vsPV)) && (!confEvIsVertexITSTPC || col.selection_bit(aod::evsel::kIsVertexITSTPC))) {
outputCollision(vtxZ, mult, multNtr, confDoSpher ? colCuts.computeSphericity(col, tracks) : 2, mMagField);
}
}
}
if (!confIsUsePileUp) {
outputCollision(vtxZ, mult, multNtr, confDoSpher ? colCuts.computeSphericity(col, tracks) : 2, mMagField);
colCuts.fillQA(col);
return true;
} else if ((!confEvNoSameBunchPileup || col.selection_bit(aod::evsel::kNoSameBunchPileup)) && (!confEvIsGoodZvtxFT0vsPV || col.selection_bit(aod::evsel::kIsGoodZvtxFT0vsPV)) && (!confEvIsVertexITSTPC || col.selection_bit(aod::evsel::kIsVertexITSTPC))) {
outputCollision(vtxZ, mult, multNtr, confDoSpher ? colCuts.computeSphericity(col, tracks) : 2, mMagField);
colCuts.fillQA(col);
return true;
} else {
return false;
}
return true;
}

template <bool isMC, typename CollisionType, typename TrackType>
Expand Down Expand Up @@ -835,24 +830,18 @@ struct FemtoUniverseProducerTask {
// particle candidates for such collisions
if (!colCuts.isSelected(col)) {
return false;
} else {
if (!confIsUsePileUp) {
if (confDoSpher) {
outputCollision(vtxZ, mult, multNtr, colCuts.computeSphericity(col, tracks), mMagField);
} else {
outputCollision(vtxZ, mult, multNtr, 2, mMagField);
}
} else {
if (confDoSpher && (!confEvNoSameBunchPileup || col.selection_bit(aod::evsel::kNoSameBunchPileup)) && (!confEvIsGoodZvtxFT0vsPV || col.selection_bit(aod::evsel::kIsGoodZvtxFT0vsPV)) && (!confEvIsVertexITSTPC || col.selection_bit(aod::evsel::kIsVertexITSTPC))) {
outputCollision(vtxZ, mult, multNtr, colCuts.computeSphericity(col, tracks), mMagField);
} else {
outputCollision(vtxZ, mult, multNtr, 2, mMagField);
}
}
}
if (!confIsUsePileUp) {
outputCollision(vtxZ, mult, multNtr, confDoSpher ? colCuts.computeSphericity(col, tracks) : 2, mMagField);
colCuts.fillQA(col);
return true;
} else if ((!confEvNoSameBunchPileup || col.selection_bit(aod::evsel::kNoSameBunchPileup)) && (!confEvIsGoodZvtxFT0vsPV || col.selection_bit(aod::evsel::kIsGoodZvtxFT0vsPV)) && (!confEvIsVertexITSTPC || col.selection_bit(aod::evsel::kIsVertexITSTPC))) {
outputCollision(vtxZ, mult, multNtr, confDoSpher ? colCuts.computeSphericity(col, tracks) : 2, mMagField);
colCuts.fillQA(col);
return true;
} else {
return false;
}
return true;
}

template <typename CollisionType, typename TrackType>
Expand Down

0 comments on commit 1dacc1c

Please sign in to comment.