Skip to content
Closed
Show file tree
Hide file tree
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
66 changes: 42 additions & 24 deletions PWGLF/TableProducer/Strangeness/hStrangeCorrelationFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,14 @@ struct HStrangeCorrelationFilter {
if (!collision.selection_bit(aod::evsel::kIsGoodITSLayersAll) && eventSelections.requireAllGoodITSLayers) {
return false;
}
// same occupancy / time frame / ITS ROF border selections as in Pb-Pb
auto occupancy = collision.trackOccupancyInTimeRange();
if (occupancy < cfgCutOccupancyLow || occupancy > cfgCutOccupancyHigh) {
return false;
}
if (!collision.selection_bit(o2::aod::evsel::kNoTimeFrameBorder) || !collision.selection_bit(o2::aod::evsel::kNoITSROFrameBorder)) {
return false;
}
if (zorroMask.value != "") {
auto bc = collision.template bc_as<aod::BCsWithTimestamps>();
initCCDB(bc);
Expand Down Expand Up @@ -863,57 +871,62 @@ struct HStrangeCorrelationFilter {
continue;
}

// proper lifetime (c tau): required in both pp and PbPb, DCA and Armenteros below stay PbPb only
const float v0DistOverTotMom = v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ());
const bool passesLifetimeK0S = v0DistOverTotMom * o2::constants::physics::MassK0Short < v0Selection.lifetimecutK0S;
const bool passesLifetimeLambda = v0DistOverTotMom * o2::constants::physics::MassLambda0 < v0Selection.lifetimecutLambda;
const bool passesLifetimeAntiLambda = v0DistOverTotMom * o2::constants::physics::MassLambda0Bar < v0Selection.lifetimecutLambda;
float dcaDauCutForK0s = v0Selection.dcaDaugToPVForK0s == 0 ? v0Selection.dcaMesonToPV : v0Selection.dcaDaugToPVForK0s;
bool isGoodK0Short = (v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * o2::constants::physics::MassK0Short < v0Selection.lifetimecutK0S &&
bool isGoodK0Short = (passesLifetimeK0S &&
std::abs(v0.dcapostopv()) > dcaDauCutForK0s && std::abs(v0.dcanegtopv()) > dcaDauCutForK0s &&
v0.qtarm() * v0Selection.armPodCut > std::abs(v0.alpha()));
bool isGoodLambda = (v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * o2::constants::physics::MassLambda0 < v0Selection.lifetimecutLambda &&
bool isGoodLambda = (passesLifetimeLambda &&
std::abs(v0.dcapostopv()) > v0Selection.dcaBaryonToPV && std::abs(v0.dcanegtopv()) > v0Selection.dcaMesonToPV);
bool isGoodAntiLambda = (v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * o2::constants::physics::MassLambda0Bar < v0Selection.lifetimecutLambda &&
bool isGoodAntiLambda = (passesLifetimeAntiLambda &&
std::abs(v0.dcapostopv()) > v0Selection.dcaMesonToPV && std::abs(v0.dcanegtopv()) > v0Selection.dcaBaryonToPV);
if (std::abs(posdau.tpcNSigmaPi()) < strangedEdxNSigmaLoose && std::abs(negdau.tpcNSigmaPi()) < strangedEdxNSigmaLoose) {
if (doPPAnalysis || isGoodK0Short) {
if (doPPAnalysis ? passesLifetimeK0S : isGoodK0Short) {
SETBIT(compatibleK0Short, 0);
}
}
if (std::abs(posdau.tpcNSigmaPi()) < strangedEdxNSigma && std::abs(negdau.tpcNSigmaPi()) < strangedEdxNSigma) {
if (doPPAnalysis || isGoodK0Short) {
if (doPPAnalysis ? passesLifetimeK0S : isGoodK0Short) {
SETBIT(compatibleK0Short, 1);
}
}
if (std::abs(posdau.tpcNSigmaPi()) < strangedEdxNSigmaTight && std::abs(negdau.tpcNSigmaPi()) < strangedEdxNSigmaTight) {
if (doPPAnalysis || isGoodK0Short) {
if (doPPAnalysis ? passesLifetimeK0S : isGoodK0Short) {
SETBIT(compatibleK0Short, 2);
}
}
if (v0.v0cosPA() > v0Selection.lambdaCospa) {
if (std::abs(posdau.tpcNSigmaPr()) < strangedEdxNSigmaLoose && std::abs(negdau.tpcNSigmaPi()) < strangedEdxNSigmaLoose) {
if (doPPAnalysis || isGoodLambda) {
if (doPPAnalysis ? passesLifetimeLambda : isGoodLambda) {
SETBIT(compatibleLambda, 0);
}
}
if (std::abs(posdau.tpcNSigmaPr()) < strangedEdxNSigma && std::abs(negdau.tpcNSigmaPi()) < strangedEdxNSigma) {
if (doPPAnalysis || isGoodLambda) {
if (doPPAnalysis ? passesLifetimeLambda : isGoodLambda) {
SETBIT(compatibleLambda, 1);
}
}
if (std::abs(posdau.tpcNSigmaPr()) < strangedEdxNSigmaTight && std::abs(negdau.tpcNSigmaPi()) < strangedEdxNSigmaTight) {
if (doPPAnalysis || isGoodLambda) {
if (doPPAnalysis ? passesLifetimeLambda : isGoodLambda) {
SETBIT(compatibleLambda, 2);
}
}
if (std::abs(posdau.tpcNSigmaPi()) < strangedEdxNSigmaLoose && std::abs(negdau.tpcNSigmaPr()) < strangedEdxNSigmaLoose) {
if (doPPAnalysis || isGoodAntiLambda) {
if (doPPAnalysis ? passesLifetimeAntiLambda : isGoodAntiLambda) {
SETBIT(compatibleAntiLambda, 0);
}
}
if (std::abs(posdau.tpcNSigmaPi()) < strangedEdxNSigma && std::abs(negdau.tpcNSigmaPr()) < strangedEdxNSigma) {
if (doPPAnalysis || isGoodAntiLambda) {
if (doPPAnalysis ? passesLifetimeAntiLambda : isGoodAntiLambda) {
SETBIT(compatibleAntiLambda, 1);
}
}
if (std::abs(posdau.tpcNSigmaPi()) < strangedEdxNSigmaTight && std::abs(negdau.tpcNSigmaPr()) < strangedEdxNSigmaTight) {
if (doPPAnalysis || isGoodAntiLambda) {
if (doPPAnalysis ? passesLifetimeAntiLambda : isGoodAntiLambda) {
SETBIT(compatibleAntiLambda, 2);
}
}
Expand Down Expand Up @@ -1002,58 +1015,63 @@ struct HStrangeCorrelationFilter {
continue;
}

// proper lifetime (c tau): required in both pp and PbPb, DCA and Armenteros below stay PbPb only
const float v0DistOverTotMom = v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ());
const bool passesLifetimeK0S = v0DistOverTotMom * o2::constants::physics::MassK0Short < v0Selection.lifetimecutK0S;
const bool passesLifetimeLambda = v0DistOverTotMom * o2::constants::physics::MassLambda0 < v0Selection.lifetimecutLambda;
const bool passesLifetimeAntiLambda = v0DistOverTotMom * o2::constants::physics::MassLambda0Bar < v0Selection.lifetimecutLambda;
float dcaDauCutForK0s = v0Selection.dcaDaugToPVForK0s == 0 ? v0Selection.dcaMesonToPV : v0Selection.dcaDaugToPVForK0s;
bool isGoodK0Short = v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * o2::constants::physics::MassK0Short < v0Selection.lifetimecutK0S &&
bool isGoodK0Short = passesLifetimeK0S &&
std::abs(v0.dcapostopv()) > dcaDauCutForK0s && std::abs(v0.dcanegtopv()) > dcaDauCutForK0s &&
v0.qtarm() * v0Selection.armPodCut > std::abs(v0.alpha());
bool isGoodLambda = v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * o2::constants::physics::MassLambda0 < v0Selection.lifetimecutLambda &&
bool isGoodLambda = passesLifetimeLambda &&
std::abs(v0.dcapostopv()) > v0Selection.dcaBaryonToPV && std::abs(v0.dcanegtopv()) > v0Selection.dcaMesonToPV;
bool isGoodAntiLambda = v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * o2::constants::physics::MassLambda0Bar < v0Selection.lifetimecutLambda &&
bool isGoodAntiLambda = passesLifetimeAntiLambda &&
std::abs(v0.dcapostopv()) > v0Selection.dcaMesonToPV && std::abs(v0.dcanegtopv()) > v0Selection.dcaBaryonToPV;
if (std::abs(posdau.tpcNSigmaPi()) < strangedEdxNSigmaLoose && std::abs(negdau.tpcNSigmaPi()) < strangedEdxNSigmaLoose) {
if (doPPAnalysis || isGoodK0Short) {
if (doPPAnalysis ? passesLifetimeK0S : isGoodK0Short) {
SETBIT(compatibleK0Short, 0);
}
}
if (std::abs(posdau.tpcNSigmaPi()) < strangedEdxNSigma && std::abs(negdau.tpcNSigmaPi()) < strangedEdxNSigma) {
if (doPPAnalysis || isGoodK0Short) {
if (doPPAnalysis ? passesLifetimeK0S : isGoodK0Short) {
SETBIT(compatibleK0Short, 1);
}
}
if (std::abs(posdau.tpcNSigmaPi()) < strangedEdxNSigmaTight && std::abs(negdau.tpcNSigmaPi()) < strangedEdxNSigmaTight) {
if (doPPAnalysis || isGoodK0Short) {
if (doPPAnalysis ? passesLifetimeK0S : isGoodK0Short) {
SETBIT(compatibleK0Short, 2);
}
}
if (v0.v0cosPA() > v0Selection.lambdaCospa) {
if (std::abs(posdau.tpcNSigmaPr()) < strangedEdxNSigmaLoose && std::abs(negdau.tpcNSigmaPi()) < strangedEdxNSigmaLoose) {
if (doPPAnalysis || isGoodLambda) {
if (doPPAnalysis ? passesLifetimeLambda : isGoodLambda) {
SETBIT(compatibleLambda, 0);
}
}
if (std::abs(posdau.tpcNSigmaPr()) < strangedEdxNSigma && std::abs(negdau.tpcNSigmaPi()) < strangedEdxNSigma) {
if (doPPAnalysis || isGoodLambda) {
if (doPPAnalysis ? passesLifetimeLambda : isGoodLambda) {
SETBIT(compatibleLambda, 1);
}
}

if (std::abs(posdau.tpcNSigmaPr()) < strangedEdxNSigmaTight && std::abs(negdau.tpcNSigmaPi()) < strangedEdxNSigmaTight) {
if (doPPAnalysis || isGoodLambda) {
if (doPPAnalysis ? passesLifetimeLambda : isGoodLambda) {
SETBIT(compatibleLambda, 2);
}
}
if (std::abs(posdau.tpcNSigmaPi()) < strangedEdxNSigmaLoose && std::abs(negdau.tpcNSigmaPr()) < strangedEdxNSigmaLoose) {
if (doPPAnalysis || isGoodAntiLambda) {
if (doPPAnalysis ? passesLifetimeAntiLambda : isGoodAntiLambda) {
SETBIT(compatibleAntiLambda, 0);
}
}
if (std::abs(posdau.tpcNSigmaPi()) < strangedEdxNSigma && std::abs(negdau.tpcNSigmaPr()) < strangedEdxNSigma) {
if (doPPAnalysis || isGoodAntiLambda) {
if (doPPAnalysis ? passesLifetimeAntiLambda : isGoodAntiLambda) {
SETBIT(compatibleAntiLambda, 1);
}
}
if (std::abs(posdau.tpcNSigmaPi()) < strangedEdxNSigmaTight && std::abs(negdau.tpcNSigmaPr()) < strangedEdxNSigmaTight) {
if (doPPAnalysis || isGoodAntiLambda) {
if (doPPAnalysis ? passesLifetimeAntiLambda : isGoodAntiLambda) {
SETBIT(compatibleAntiLambda, 2);
}
}
Expand Down
Loading
Loading