Skip to content

Commit c1ba4d0

Browse files
wrzesaCERNalibuild
andauthored
[PWGCF] Branch wiola2 (#14808)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent f5b036d commit c1ba4d0

File tree

1 file changed

+28
-22
lines changed

1 file changed

+28
-22
lines changed

PWGCF/FemtoDream/Tasks/femtoDreamTripletTaskTrackTrackV0PbPb.cxx

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ struct FemtoDreamTripletTaskTrackTrackV0PbPb {
7979
Configurable<float> confMinDCAxy{"confMinDCAxy", -0.1f, "Minimum DCAxy of the particles"};
8080
Configurable<float> confPIDthrMom{"confPIDthrMom", 0.75f, "Momentum threshold from which TPC and TOF are required for PID"};
8181
Configurable<bool> confIsMC{"confIsMC", false, "Enable additional Histogramms in the case of a MonteCarlo Run"};
82-
Configurable<bool> confUse3D{"confUse3D", false, "Enable three dimensional histogramms (to be used only for analysis with high statistics): k* vs mT vs multiplicity"};
82+
Configurable<bool> confIsAddPairsInTriplet{"confIsAddPairsInTriplet", false, "Extra histograms and pairing for tracks in triplet"};
8383
Configurable<bool> confDCACutPtDep{"confDCACutPtDep", false, "Use pt dependent dca cut for tracks"};
84-
Configurable<float> confDCACutPtDepPar0{"confDCACutPtDepPar0", 0.0105, "Parameter par[0] of the pt dep cut, par[0] + par[1]/(pT/(GeV/c)−1.1) cm"};
85-
Configurable<float> confDCACutPtDepPar1{"confDCACutPtDepPar1", 0.035, "Parameter par[1] of the pt dep cut, par[0] + par[1]/(pT/(GeV/c)−1.1) cm"};
84+
Configurable<float> confDCACutPtDepPar0{"confDCACutPtDepPar0", 0.004, "Parameter par[0] of the pt dep cut, par[0] + par[1]/(pT/(GeV/c)−1.1) cm"};
85+
Configurable<float> confDCACutPtDepPar1{"confDCACutPtDepPar1", 0.013, "Parameter par[1] of the pt dep cut, par[0] + par[1]/(pT/(GeV/c)−1.1) cm"};
8686

8787
/// Partition for selected particles
8888
Partition<aod::FDParticles> selectedParts = (aod::femtodreamparticle::partType == uint8_t(aod::femtodreamparticle::ParticleType::kTrack)) &&
@@ -232,13 +232,10 @@ struct FemtoDreamTripletTaskTrackTrackV0PbPb {
232232
threeBodyQARegistry.add("TripletTaskQA/hTestPairCleanerPosAfter", ";primaryTrack; posDaughtID", kTH2F, {{40, -20, 20}, {40, -20, 20}});
233233
threeBodyQARegistry.add("TripletTaskQA/hTestPairCleanerNegAfter", ";primaryTrack; negDaughtID", kTH2F, {{40, -20, 20}, {40, -20, 20}});
234234
threeBodyQARegistry.add("TripletTaskQA/hCentralityME", ";Centrality;Entries", kTH1F, {{100, 0.0, 100.0}});
235-
236-
threeBodyQARegistry.add("SameEvent/relPairDist_trackTrack", ";k* (GeV/c) ;Entries", kTH1F, {{2000, 0.0, 4.0}});
237-
threeBodyQARegistry.add("MixedEvent/relPairDist_trackTrack", ";k* (GeV/c) ;Entries", kTH1F, {{2000, 0.0, 4.0}});
238-
threeBodyQARegistry.add("SameEvent/relPairDist_track1V0", ";k* (GeV/c) ;Entries", kTH1F, {{2000, 0.0, 4.0}});
239-
threeBodyQARegistry.add("SameEvent/relPairDist_track2V0", ";k* (GeV/c) ;Entries", kTH1F, {{2000, 0.0, 4.0}});
240-
threeBodyQARegistry.add("MixedEvent/relPairDist_track1V0", ";k* (GeV/c) ;Entries", kTH1F, {{2000, 0.0, 4.0}});
241-
threeBodyQARegistry.add("MixedEvent/relPairDist_track2V0", ";k* (GeV/c) ;Entries", kTH1F, {{2000, 0.0, 4.0}});
235+
if (confIsAddPairsInTriplet) {
236+
threeBodyQARegistry.add("SameEvent/relPairDist_trackTrack", ";k* (GeV/c) ;Entries", kTH1F, {{4000, 0., 4.}});
237+
threeBodyQARegistry.add("MixedEvent/relPairDist_trackTrack", ";k* (GeV/c) ;Entries", kTH1F, {{4000, 0., 4.}});
238+
}
242239
sameEventCont.init(&resultRegistry, confQ3Bins, confMultBins, confIsMC);
243240
mixedEventCont.init(&resultRegistry, confQ3Bins, confMultBins, confIsMC);
244241
sameEventCont.setPDGCodes(confPDGCodePart, confPDGCodePart, confPDGCodeV0);
@@ -329,6 +326,7 @@ struct FemtoDreamTripletTaskTrackTrackV0PbPb {
329326
trackHistoselectedParts.fillQA<isMC, false>(part, aod::femtodreamparticle::kPt, multCol, centCol);
330327
}
331328
/// Histograming V0s
329+
int v0Counter = 0;
332330
for (const auto& V0 : groupselectedV0s) {
333331
const auto& posChild = parts.iteratorAt(V0.index() - 2);
334332
const auto& negChild = parts.iteratorAt(V0.index() - 1);
@@ -405,12 +403,14 @@ struct FemtoDreamTripletTaskTrackTrackV0PbPb {
405403
sameEventCont.setTriplet<isMC>(T1, T2, V0, multCol, q3);
406404
threeBodyQARegistry.fill(HIST("TripletTaskQA/hCentrality"), centCol, q3);
407405

408-
auto kstarTT = FemtoDreamMath::getkstar(T1, mMassOne, T2, mMassTwo);
409-
auto kstarT1V = FemtoDreamMath::getkstar(T1, mMassOne, V0, mMassThree);
410-
auto kstarT2V = FemtoDreamMath::getkstar(T2, mMassTwo, V0, mMassThree);
411-
threeBodyQARegistry.fill(HIST("SameEvent/relPairDist_trackTrack"), kstarTT);
412-
threeBodyQARegistry.fill(HIST("SameEvent/relPairDist_track1V0"), kstarT1V);
413-
threeBodyQARegistry.fill(HIST("SameEvent/relPairDist_track2V0"), kstarT2V);
406+
// Teporary test: pairing the same event tracks in the triplet task (without triplet-combinatoric repetitions)
407+
if (confIsAddPairsInTriplet) {
408+
if (v0Counter == 0) {
409+
auto kstarTT = FemtoDreamMath::getkstar(T1, mMassOne, T2, mMassTwo);
410+
threeBodyQARegistry.fill(HIST("SameEvent/relPairDist_trackTrack"), kstarTT);
411+
}
412+
}
413+
v0Counter = 1;
414414
}
415415
}
416416
}
@@ -590,13 +590,19 @@ struct FemtoDreamTripletTaskTrackTrackV0PbPb {
590590
threeBodyQARegistry.fill(HIST("TripletTaskQA/hMinvME_AntiLambda"), q3, V0.mAntiLambda());
591591
threeBodyQARegistry.fill(HIST("TripletTaskQA/particle_pT_in_Triplet_ME"), T1.pt(), T2.pt(), V0.pt(), q3);
592592
mixedEventCont.setTriplet<isMC>(T1, T2, V0, multCol, q3);
593+
}
593594

594-
auto kstarTT = FemtoDreamMath::getkstar(T1, mMassOne, T2, mMassTwo);
595-
auto kstarT1V = FemtoDreamMath::getkstar(T1, mMassOne, V0, mMassThree);
596-
auto kstarT2V = FemtoDreamMath::getkstar(T2, mMassTwo, V0, mMassThree);
597-
threeBodyQARegistry.fill(HIST("MixedEvent/relPairDist_trackTrack"), kstarTT);
598-
threeBodyQARegistry.fill(HIST("MixedEvent/relPairDist_track1V0"), kstarT1V);
599-
threeBodyQARegistry.fill(HIST("MixedEvent/relPairDist_track2V0"), kstarT2V);
595+
// Teporary test: pairing the mixed event tracks in the triplet task (without triplet-combinatoric repetitions)
596+
if (confIsAddPairsInTriplet) {
597+
for (const auto& [T1, T2] : combinations(CombinationsFullIndexPolicy(groupPartsOne, groupPartsTwo))) {
598+
if (confIsCPR.value) {
599+
if (pairCloseRejectionTrackTrackME.isClosePair(T1, T2, parts, magFieldTesla)) {
600+
continue;
601+
}
602+
}
603+
auto kstarTT = FemtoDreamMath::getkstar(T1, mMassOne, T2, mMassTwo);
604+
threeBodyQARegistry.fill(HIST("MixedEvent/relPairDist_trackTrack"), kstarTT);
605+
}
600606
}
601607
}
602608

0 commit comments

Comments
 (0)