Skip to content

Commit e03e972

Browse files
authored
[PWGLF] Study of DCAxy for primary and secondary pions in phik0shortanalysis.cxx (#10071)
1 parent c491a9b commit e03e972

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

PWGLF/Tasks/Strangeness/phik0shortanalysis.cxx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@
1313
/// \brief Analysis task for the Phi and K0S rapidity correlations analysis
1414
/// \author Stefano Cannito (stefano.cannito@cern.ch)
1515

16+
#include <cmath>
17+
#include <cstdlib>
1618
#include <array>
1719
#include <vector>
1820
#include <algorithm>
19-
#include <cmath>
20-
#include <cstdlib>
21+
#include <string>
22+
#include <utility>
2123

2224
#include <TH1F.h>
2325
#include <TH2F.h>
@@ -162,7 +164,7 @@ struct Phik0shortanalysis {
162164

163165
// Configurable for CCDB
164166
Configurable<std::string> ccdbUrl{"ccdbUrl", "http://alice-ccdb.cern.ch", "url of the ccdb repository to use"};
165-
Configurable<std::string> ccdbPurityPath{"ccdbPurityPath", "", "Correction path to file"};
167+
Configurable<std::string> ccdbPurityPath{"ccdbPurityPath", "Users/s/scannito/PhiPuritiesData", "Correction path to file"};
166168

167169
// Constants
168170
double massKa = o2::constants::physics::MassKPlus;
@@ -378,6 +380,11 @@ struct Phik0shortanalysis {
378380
mcPionHist.add("h2TracksPiDCAxyPostCutMCReco", "Dcaxy distribution vs pt after DCAxy cut", kTH2F, {{100, 0.0, 5.0, "#it{p}_{T} (GeV/#it{c})"}, {2000, -0.05, 0.05, "DCA_{xy} (cm)"}});
379381
mcPionHist.add("h2TracksPiDCAzPostCutMCReco", "Dcaz distribution vs pt after DCAxy cut", kTH2F, {{100, 0.0, 5.0, "#it{p}_{T} (GeV/#it{c})"}, {2000, -0.05, 0.05, "DCA_{z} (cm)"}});
380382

383+
// DCA plots for pions in MCReco distinguishing Primaries, Secondaries from Weak Decay and Secondaries from Material
384+
mcPionHist.add("h3RecMCDCAxyPrimPi", "Dcaxy distribution vs pt for Primary Pions", kTH2F, {binnedptPiAxis, {2000, -0.05, 0.05, "DCA_{xy} (cm)"}});
385+
mcPionHist.add("h3RecMCDCAxySecWeakDecayPi", "Dcaz distribution vs pt for Secondary Pions from Weak Decay", kTH2F, {binnedptPiAxis, {2000, -0.05, 0.05, "DCA_{xy} (cm)"}});
386+
mcPionHist.add("h3RecMCDCAxySecMaterialPi", "Dcaxy distribution vs pt for Secondary Pions from Material", kTH2F, {binnedptPiAxis, {2000, -0.05, 0.05, "DCA_{xy} (cm)"}});
387+
381388
// RecMC Pion coupled to Phi with TPC
382389
mcPhiPionHist.add("h3RecMCPhiPiTPCInc", "RecoMC Pion coupled to Phi with TPC Inclusive", kTH3F, {binnedmultAxis, binnedptPiAxis, {100, -10.0f, 10.0f}});
383390
mcPhiPionHist.add("h3RecMCPhiPiTPCFCut", "RecoMC Pion coupled to Phi with TPC Deltay < FirstCut", kTH3F, {binnedmultAxis, binnedptPiAxis, {100, -10.0f, 10.0f}});
@@ -1401,9 +1408,12 @@ struct Phik0shortanalysis {
14011408

14021409
// Primary pion selection
14031410
if (mcTrack.isPhysicalPrimary()) {
1411+
mcPionHist.fill(HIST("h3RecMCDCAxyPrimPi"), track.pt(), track.dcaXY());
14041412
} else {
14051413
if (mcTrack.getProcess() == 4) { // Selection of secondary pions from weak decay
1406-
} else { // Selection of secondary pions from material interactions
1414+
mcPionHist.fill(HIST("h3RecMCDCAxySecWeakDecayPi"), track.pt(), track.dcaXY());
1415+
} else { // Selection of secondary pions from material interactions
1416+
mcPionHist.fill(HIST("h3RecMCDCAxySecMaterialPi"), track.pt(), track.dcaXY());
14071417
}
14081418
continue;
14091419
}

0 commit comments

Comments
 (0)