Skip to content

Commit 392f1f2

Browse files
[PWGCF] calculate eff(eta,pT) in MC (#9685)
1 parent 5ce2aec commit 392f1f2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

PWGCF/EbyEFluctuations/Tasks/netprotonCumulantsMc.cxx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ struct NetprotonCumulantsMc {
180180
// Variable bin width axis
181181
std::vector<double> ptBinning = {0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 4.0};
182182
AxisSpec ptAxis = {ptBinning, "#it{p}_{T} (GeV/#it{c})"};
183+
std::vector<double> etaBinning = {-0.8, -0.7, -0.6, -0.5, -0.4, -0.3, -0.2, -0.1, 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8};
184+
AxisSpec etaAxis = {etaBinning, "#it{#eta}"};
183185
std::vector<double> centBining = {0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90};
184186
AxisSpec centAxis = {centBining, "Multiplicity percentile from FT0M (%)"};
185187
AxisSpec netprotonAxis = {41, -20.5, 20.5, "net-proton number"};
@@ -220,6 +222,10 @@ struct NetprotonCumulantsMc {
220222
histos.add("hCorrProfileTotalProton", "Eff. Corrected total proton number vs. centrality", kTProfile, {centAxis});
221223
histos.add("hCorrProfileProton", "Eff. Corrected proton number vs. centrality", kTProfile, {centAxis});
222224
histos.add("hCorrProfileAntiproton", "Eff. Corrected antiproton number vs. centrality", kTProfile, {centAxis});
225+
histos.add("hrec2DEtaVsPtProton", "2D hist of Reconstructed Proton y: eta vs. x: pT", kTH2F, {ptAxis, etaAxis});
226+
histos.add("hrec2DEtaVsPtAntiproton", "2D hist of Reconstructed Anti-proton y: eta vs. x: pT", kTH2F, {ptAxis, etaAxis});
227+
histos.add("hgen2DEtaVsPtProton", "2D hist of Generated Proton y: eta vs. x: pT", kTH2F, {ptAxis, etaAxis});
228+
histos.add("hgen2DEtaVsPtAntiproton", "2D hist of Generated Anti-proton y: eta vs. x: pT", kTH2F, {ptAxis, etaAxis});
223229

224230
if (cfgIsCalculateCentral) {
225231
// uncorrected
@@ -926,6 +932,7 @@ struct NetprotonCumulantsMc {
926932
if (mcParticle.pdgCode() == 2212) {
927933
histos.fill(HIST("hgenPtProton"), mcParticle.pt()); //! hist for p gen
928934
histos.fill(HIST("hgenPtDistProtonVsCentrality"), mcParticle.pt(), cent);
935+
histos.fill(HIST("hgen2DEtaVsPtProton"), mcParticle.pt(), mcParticle.eta());
929936
histos.fill(HIST("hgenEtaProton"), mcParticle.eta());
930937
histos.fill(HIST("hgenPhiProton"), mcParticle.phi());
931938
if (mcParticle.pt() < cfgCutPtUpper)
@@ -934,6 +941,7 @@ struct NetprotonCumulantsMc {
934941
if (mcParticle.pdgCode() == -2212) {
935942
histos.fill(HIST("hgenPtAntiproton"), mcParticle.pt()); //! hist for anti-p gen
936943
histos.fill(HIST("hgenPtDistAntiprotonVsCentrality"), mcParticle.pt(), cent);
944+
histos.fill(HIST("hgen2DEtaVsPtAntiproton"), mcParticle.pt(), mcParticle.eta());
937945
histos.fill(HIST("hgenEtaAntiproton"), mcParticle.eta());
938946
histos.fill(HIST("hgenPhiAntiproton"), mcParticle.phi());
939947
if (mcParticle.pt() < cfgCutPtUpper)
@@ -1011,6 +1019,7 @@ struct NetprotonCumulantsMc {
10111019
histos.fill(HIST("hrecPartPtProton"), particle.pt()); //! hist for p rec
10121020
histos.fill(HIST("hrecPtProton"), track.pt()); //! hist for p rec
10131021
histos.fill(HIST("hrecPtDistProtonVsCentrality"), particle.pt(), cent);
1022+
histos.fill(HIST("hrec2DEtaVsPtProton"), particle.pt(), particle.eta());
10141023
histos.fill(HIST("hrecEtaProton"), particle.eta());
10151024
histos.fill(HIST("hrecPhiProton"), particle.phi());
10161025
histos.fill(HIST("hrecDcaXYProton"), track.dcaXY());
@@ -1025,6 +1034,7 @@ struct NetprotonCumulantsMc {
10251034
histos.fill(HIST("hrecPartPtAntiproton"), particle.pt()); //! hist for anti-p rec
10261035
histos.fill(HIST("hrecPtAntiproton"), track.pt()); //! hist for anti-p rec
10271036
histos.fill(HIST("hrecPtDistAntiprotonVsCentrality"), particle.pt(), cent);
1037+
histos.fill(HIST("hrec2DEtaVsPtAntiproton"), particle.pt(), particle.eta());
10281038
histos.fill(HIST("hrecEtaAntiproton"), particle.eta());
10291039
histos.fill(HIST("hrecPhiAntiproton"), particle.phi());
10301040
histos.fill(HIST("hrecDcaXYAntiproton"), track.dcaXY());

0 commit comments

Comments
 (0)