|
13 | 13 | /// \brief Analysis task for the Phi and K0S rapidity correlations analysis |
14 | 14 | /// \author Stefano Cannito (stefano.cannito@cern.ch) |
15 | 15 |
|
| 16 | +#include <cmath> |
| 17 | +#include <cstdlib> |
16 | 18 | #include <array> |
17 | 19 | #include <vector> |
18 | 20 | #include <algorithm> |
19 | | -#include <cmath> |
20 | | -#include <cstdlib> |
| 21 | +#include <string> |
| 22 | +#include <utility> |
21 | 23 |
|
22 | 24 | #include <TH1F.h> |
23 | 25 | #include <TH2F.h> |
@@ -162,7 +164,7 @@ struct Phik0shortanalysis { |
162 | 164 |
|
163 | 165 | // Configurable for CCDB |
164 | 166 | 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"}; |
166 | 168 |
|
167 | 169 | // Constants |
168 | 170 | double massKa = o2::constants::physics::MassKPlus; |
@@ -378,6 +380,11 @@ struct Phik0shortanalysis { |
378 | 380 | 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)"}}); |
379 | 381 | 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)"}}); |
380 | 382 |
|
| 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 | + |
381 | 388 | // RecMC Pion coupled to Phi with TPC |
382 | 389 | mcPhiPionHist.add("h3RecMCPhiPiTPCInc", "RecoMC Pion coupled to Phi with TPC Inclusive", kTH3F, {binnedmultAxis, binnedptPiAxis, {100, -10.0f, 10.0f}}); |
383 | 390 | 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 { |
1401 | 1408 |
|
1402 | 1409 | // Primary pion selection |
1403 | 1410 | if (mcTrack.isPhysicalPrimary()) { |
| 1411 | + mcPionHist.fill(HIST("h3RecMCDCAxyPrimPi"), track.pt(), track.dcaXY()); |
1404 | 1412 | } else { |
1405 | 1413 | 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()); |
1407 | 1417 | } |
1408 | 1418 | continue; |
1409 | 1419 | } |
|
0 commit comments