Skip to content

Commit ef3a8c7

Browse files
authored
[PWGCF] Update lambdaR2Correlation.cxx (AliceO2Group#11092)
1 parent 0d5dcee commit ef3a8c7

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

PWGCF/TwoParticleCorrelations/Tasks/lambdaR2Correlation.cxx

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ struct LambdaTableProducer {
248248
Configurable<double> cMinV0CosPA{"cMinV0CosPA", 0.995, "Minimum V0 CosPA to PV"};
249249
Configurable<double> cKshortRejMassWindow{"cKshortRejMassWindow", 0.01, "Reject K0Short Candidates"};
250250
Configurable<bool> cKshortRejFlag{"cKshortRejFlag", true, "K0short Mass Rej Flag"};
251-
Configurable<double> cLambdaMassWindow{"cLambdaMassWindow", 0.005, "Lambda Mass Window"};
251+
// Configurable<double> cLambdaMassWindow{"cLambdaMassWindow", 0.005, "Lambda Mass Window"};
252252

253253
// V0s kinmatic acceptance
254254
Configurable<float> cMinV0Mass{"cMinV0Mass", 1.10, "V0 Mass Min"};
@@ -259,7 +259,6 @@ struct LambdaTableProducer {
259259
Configurable<bool> cDoEtaAnalysis{"cDoEtaAnalysis", false, "Do Eta Analysis"};
260260
Configurable<bool> cV0TypeSelFlag{"cV0TypeSelFlag", false, "V0 Type Selection Flag"};
261261
Configurable<int> cV0TypeSelection{"cV0TypeSelection", 1, "V0 Type Selection"};
262-
Configurable<bool> cGenProcessFlag{"cGenProcessFlag", true, "Generater Level Table Selection"};
263262

264263
// V0s MC
265264
Configurable<bool> cHasMcFlag{"cHasMcFlag", true, "Has Mc Tag"};
@@ -972,7 +971,7 @@ struct LambdaTableProducer {
972971
// check for corresponding MCGen Particle
973972
if constexpr (dmc == kMC) {
974973
histos.fill(HIST("Tracks/h1f_tracks_info"), kTracksBeforeHasMcParticle);
975-
if (!v0.has_mcParticle() || !v0.template posTrack_as<T>().has_mcParticle() || !v0.template negTrack_as<T>().has_mcParticle()) {
974+
if (!v0.has_mcParticle()) {
976975
continue;
977976
}
978977
}
@@ -1239,11 +1238,6 @@ struct LambdaTableProducer {
12391238
auto mcCollision = collision.template mcCollision_as<soa::Join<aod::McCollisions, aod::McCentFT0Ms>>();
12401239
auto mcGenParticles = mcParticles.sliceByCached(aod::mcparticle::mcCollisionId, mcCollision.globalIndex(), cache);
12411240

1242-
if (cGenProcessFlag) {
1243-
fillLambdaMcGenTables<kRun3>(mcCollision, mcGenParticles);
1244-
return;
1245-
}
1246-
12471241
// Fill Gen Table
12481242
lambdaMCGenCollisionTable(mcCollision.centFT0M(), mcCollision.posX(), mcCollision.posY(), mcCollision.posZ());
12491243

@@ -1478,7 +1472,8 @@ struct LambdaR2Correlation {
14781472
const AxisSpec axisPosZ(220, -11, 11, "V_{z} (cm)");
14791473
const AxisSpec axisCent(105, 0, 105, "FT0M (%)");
14801474
const AxisSpec axisMult(10, 0, 10, "N_{#Lambda}");
1481-
const AxisSpec axisMass(100, 1.06, 1.16, "Inv Mass (GeV/#it{c}^{2})");
1475+
const AxisSpec axisMass(100, 1.06, 1.16, "M_{#Lambda} (GeV/#it{c}^{2})");
1476+
const AxisSpec axisMassCorr(60, -0.03, 0.03, "M_{#Lambda} - #frac{M_{pair}}{2} (GeV/#it{c}^{2})");
14821477
const AxisSpec axisPt(cNPtBins, cMinPt, cMaxPt, "p_{T} (GeV/#it{c})");
14831478
const AxisSpec axisEta(cNRapBins, cMinRap, cMaxRap, "#eta");
14841479
const AxisSpec axisRap(cNRapBins, cMinRap, cMaxRap, "y");
@@ -1542,6 +1537,14 @@ struct LambdaR2Correlation {
15421537
histos.add("Reco/h2d_n2_phiphi_LaP_LaP", "#rho_{2}^{#Lambda#Lambda}", kTH2D, {axisPhi, axisPhi});
15431538
histos.add("Reco/h2d_n2_phiphi_LaM_LaM", "#rho_{2}^{#bar{#Lambda}#bar{#Lambda}}", kTH2D, {axisPhi, axisPhi});
15441539

1540+
// rho2 for numerator of R2 as a function of M_{#Lambda} (To remove background from sidebands) {TESTING PHASE !!!!}
1541+
histos.add("Reco/h3d_n2_raprapmass_LaP_LaM", "#rho_{2}^{#Lambda#bar{#Lambda}}", kTH3D, {axisRap, axisRap, axisMassCorr});
1542+
histos.add("Reco/h3d_n2_raprapmass_LaP_LaP", "#rho_{2}^{#Lambda#Lambda}", kTH3D, {axisRap, axisRap, axisMassCorr});
1543+
histos.add("Reco/h3d_n2_raprapmass_LaM_LaM", "#rho_{2}^{#bar{#Lambda}#bar{#Lambda}}", kTH3D, {axisRap, axisRap, axisMassCorr});
1544+
histos.add("Reco/h3d_n2_phiphimass_LaP_LaM", "#rho_{2}^{#Lambda#bar{#Lambda}}", kTH3D, {axisPhi, axisPhi, axisMassCorr});
1545+
histos.add("Reco/h3d_n2_phiphimass_LaP_LaP", "#rho_{2}^{#Lambda#Lambda}", kTH3D, {axisPhi, axisPhi, axisMassCorr});
1546+
histos.add("Reco/h3d_n2_phiphimass_LaM_LaM", "#rho_{2}^{#bar{#Lambda}#bar{#Lambda}}", kTH3D, {axisPhi, axisPhi, axisMassCorr});
1547+
15451548
// rho2 for R2 Rap1Phi1Rap2Phi2
15461549
histos.add("Reco/h2d_n2_rapphi_LaP_LaM", "#rho_{2}^{#Lambda#bar{#Lambda}}", kTH2D, {axisRapPhi, axisRapPhi});
15471550
histos.add("Reco/h2d_n2_rapphi_LaP_LaP", "#rho_{2}^{#Lambda#Lambda}", kTH2D, {axisRapPhi, axisRapPhi});
@@ -1576,12 +1579,18 @@ struct LambdaR2Correlation {
15761579

15771580
float corfac = p1.corrFact() * p2.corrFact();
15781581

1582+
float massParam = MassLambda0 - 0.5 * (p1.mass() + p2.mass());
1583+
15791584
// fill rho2 histograms
15801585
histos.fill(HIST(SubDirRecGen[rec_gen]) + HIST("h2d_n2_ptpt_") + HIST(SubDirHist[part_pair]), p1.pt(), p2.pt(), corfac);
15811586
histos.fill(HIST(SubDirRecGen[rec_gen]) + HIST("h2d_n2_etaeta_") + HIST(SubDirHist[part_pair]), p1.eta(), p2.eta(), corfac);
15821587
histos.fill(HIST(SubDirRecGen[rec_gen]) + HIST("h2d_n2_raprap_") + HIST(SubDirHist[part_pair]), p1.rap(), p2.rap(), corfac);
15831588
histos.fill(HIST(SubDirRecGen[rec_gen]) + HIST("h2d_n2_phiphi_") + HIST(SubDirHist[part_pair]), p1.phi(), p2.phi(), corfac);
15841589

1590+
// fill rho2 3D-histograms with mass
1591+
histos.fill(HIST(SubDirRecGen[rec_gen]) + HIST("h3d_n2_raprapmass_") + HIST(SubDirHist[part_pair]), p1.rap(), p2.rap(), massParam, corfac);
1592+
histos.fill(HIST(SubDirRecGen[rec_gen]) + HIST("h3d_n2_phiphimass_") + HIST(SubDirHist[part_pair]), p1.phi(), p2.phi(), massParam, corfac);
1593+
15851594
if (rapbin1 >= 0 && rapbin2 >= 0 && phibin1 >= 0 && phibin2 >= 0 && rapbin1 < nrapbins && rapbin2 < nrapbins && phibin1 < nphibins && phibin2 < nphibins) {
15861595

15871596
int rapphix = rapbin1 * nphibins + phibin1;

0 commit comments

Comments
 (0)