Skip to content
Merged
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
2 changes: 1 addition & 1 deletion PWGLF/DataModel/cascqaanalysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ DECLARE_SOA_TABLE(CascAnalysisFull, "AOD", "CascAnalysisFull", o2::soa::Index<>,
cascadesflow::CosThetaStarLambdaFromOmega, cascadesflow::CosThetaStarLambdaFromXi, cascadesflow::CosThetaStarProton, mycascades::McPdgCode);

DECLARE_SOA_TABLE(LambdaAnalysis, "AOD", "LambdaAnalysis", o2::soa::Index<>,
cascadesflow::CentFT0C, cascadesflow::CentFT0M, cascadesflow::HasEventPlane, cascadesflow::HasSpectatorPlane, cascadesflow::Sign, cascadesflow::Pt, cascadesflow::Phi, cascadesflow::Eta, cascadesflow::MassLambda, cascadesflow::MassK0Short, cascadesflow::CtauLambda, cascadesflow::V0Radius, cascadesflow::DcaPosToPV, cascadesflow::DcaNegToPV, cascadesflow::V0CosPA, cascadesflow::DcaV0Daughters, cascadesflow::V2CEP, cascadesflow::PsiT0C, cascadesflow::Pzs2Lambda, cascadesflow::Cos2ThetaLambda, cascadesflow::CosThetaLambda);
cascadesflow::CentFT0C, cascadesflow::CentFT0M, cascadesflow::HasEventPlane, cascadesflow::HasSpectatorPlane, cascadesflow::Sign, cascadesflow::Pt, cascadesflow::Phi, cascadesflow::Eta, cascadesflow::MassLambda, cascadesflow::MassK0Short, cascadesflow::CtauLambda, cascadesflow::V0Radius, cascadesflow::DcaPosToPV, cascadesflow::DcaNegToPV, cascadesflow::V0CosPA, cascadesflow::DcaV0Daughters, cascadesflow::V2CEP, cascadesflow::PsiT0C, cascadesflow::Pzs2Lambda, cascadesflow::Cos2ThetaLambda, cascadesflow::CosThetaLambda);

namespace myMCcascades
{
Expand Down
35 changes: 19 additions & 16 deletions PWGLF/TableProducer/Strangeness/cascadeflow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,8 @@ struct cascadeFlow {
double ComputeEPResolutionwShifts(const TCollision& coll, double psiT0C, double psiV0A, double psiT0A, double psiTPCA, double psiTPCC, TProfile3D* shiftprofileA, TProfile3D* shiftprofileB, TProfile3D* shiftprofileC, TProfile3D* shiftprofileD, TProfile3D* shiftprofileE)
{
float collcentrality = coll.centFT0C();
if (isCollisionCentrality == 1) collcentrality = coll.centFT0M();
if (isCollisionCentrality == 1)
collcentrality = coll.centFT0M();
int nmode = 2;
auto deltapsiFT0C = 0.0;
auto deltapsiFV0A = 0.0;
Expand Down Expand Up @@ -806,15 +807,15 @@ struct cascadeFlow {
invMassLambda = v0.mLambda();
double ctauLambda = v0.distovertotmom(coll.posX(), coll.posY(), coll.posZ()) * o2::constants::physics::MassLambda0;
analysisLambdaSample(coll.centFT0C(),
coll.centFT0M(),
coll.centFT0M(),
hasEventPlane,
hasSpectatorPlane,
chargeIndex,
v0.pt(),
v0.phi(),
v0.eta(),
invMassLambda,
v0.mK0Short(),
v0.mK0Short(),
ctauLambda,
v0.v0radius(),
v0.dcapostopv(),
Expand Down Expand Up @@ -2753,15 +2754,17 @@ struct cascadeFlow {
theta1 = o2::constants::math::PI + theta; // pi/2 < theta1 < pi --> pi/4 < theta1/2 < pi/2 --> 1 < tan (theta1/2) --> negative eta

float cascMCeta = -std::log(std::tan(theta1 / 2));

float pxLambda = cascmc.pxPosMC() + cascmc.pxNegMC();
float pyLambda = cascmc.pyPosMC() + cascmc.pyNegMC();
float pzLambda = cascmc.pzPosMC() + cascmc.pzNegMC();
float ptmcLambda = RecoDecay::sqrtSumOfSquares(pxLambda, pyLambda);
float thetaLambda = std::atan(ptmcLambda / pzLambda);
float theta1Lambda = 0;
if (thetaLambda > 0) theta1Lambda = thetaLambda;
else theta1Lambda = o2::constants::math::PI + thetaLambda;
if (thetaLambda > 0)
theta1Lambda = thetaLambda;
else
theta1Lambda = o2::constants::math::PI + thetaLambda;
float lambdaMCeta = -std::log(std::tan(theta1Lambda / 2));

float cascMCy = 0;
Expand All @@ -2774,10 +2777,10 @@ struct cascadeFlow {
if (std::abs(cascMCy) < yCascMCGen)
histosMCGen.fill(HIST("h2DGenXiY05"), centrality, ptmc);
histosMCGen.fill(HIST("hGenXiY"), cascMCy);
if (std::abs(cascMCy) < yXiToLambdaMCGen && std::abs(lambdaMCeta) < etaLambdaFromXiMCGen){
histosMCGen.fill(HIST("h2DGenXiVsPtLambda"), centrality, ptmcLambda); //to compute secondary lambda efficiency
histosMCGen.fill(HIST("h2DGenLambdaFromXiPtMatrix"), ptmc, ptmcLambda);
}
if (std::abs(cascMCy) < yXiToLambdaMCGen && std::abs(lambdaMCeta) < etaLambdaFromXiMCGen) {
histosMCGen.fill(HIST("h2DGenXiVsPtLambda"), centrality, ptmcLambda); // to compute secondary lambda efficiency
histosMCGen.fill(HIST("h2DGenLambdaFromXiPtMatrix"), ptmc, ptmcLambda);
}
} else if (std::abs(cascmc.pdgCode()) == PDG_t::kOmegaMinus) {
cascMCy = RecoDecay::y(std::array{cascmc.pxMC(), cascmc.pyMC(), cascmc.pzMC()}, constants::physics::MassOmegaMinus);
if (std::abs(cascMCeta) < etaCascMCGen) {
Expand Down Expand Up @@ -2899,9 +2902,9 @@ struct cascadeFlow {
} else {
histos.fill(HIST("hCentvsPtvsPrimaryFracLambda"), collisionCentrality, v0.pt(), 1);
histos.fill(HIST("hCentvsPrimaryFracLambda"), collisionCentrality, 1);
histosMCReco.fill(HIST("h2DRecoTrueLambdaSec"), collisionCentrality, ptmc);
if (v0MC.pdgCodeMother() == PDG_t::kXiMinus)
histosMCReco.fill(HIST("h2DRecoTrueLambdaFromXi"), collisionCentrality, ptmc);
histosMCReco.fill(HIST("h2DRecoTrueLambdaSec"), collisionCentrality, ptmc);
if (v0MC.pdgCodeMother() == PDG_t::kXiMinus)
histosMCReco.fill(HIST("h2DRecoTrueLambdaFromXi"), collisionCentrality, ptmc);
}
} else if (isTrueALambda) {
if (isPrimary) {
Expand All @@ -2911,9 +2914,9 @@ struct cascadeFlow {
} else {
histos.fill(HIST("hCentvsPtvsPrimaryFracLambda"), collisionCentrality, v0.pt(), 3);
histos.fill(HIST("hCentvsPrimaryFracLambda"), collisionCentrality, 3);
histosMCReco.fill(HIST("h2DRecoTrueAntiLambdaSec"), collisionCentrality, ptmc);
if (v0MC.pdgCodeMother() == -PDG_t::kXiMinus)
histosMCReco.fill(HIST("h2DRecoTrueAntiLambdaFromXi"), collisionCentrality, ptmc);
histosMCReco.fill(HIST("h2DRecoTrueAntiLambdaSec"), collisionCentrality, ptmc);
if (v0MC.pdgCodeMother() == -PDG_t::kXiMinus)
histosMCReco.fill(HIST("h2DRecoTrueAntiLambdaFromXi"), collisionCentrality, ptmc);
}
}
}
Expand Down
Loading