Skip to content

Commit 98a13a8

Browse files
Add centrality in gen. Vs recoed histograms in derivedlambdakzeroanalysis
1 parent 4ca72cf commit 98a13a8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,6 +1205,8 @@ struct derivedlambdakzeroanalysis {
12051205
if (doprocessMonteCarloRun3 || doprocessMonteCarloRun2) {
12061206
histos.add("GeneralQA/h2dRapVsRapGen", "h2dRapVsRapGen;Rapidity;Generated rapidity", kTH2D, {axisConfigurations.axisRapidity, axisConfigurations.axisRapidity});
12071207
histos.add("GeneralQA/h2dPtVsPtGen", "h2dPtVsPtGen;#it{p}_{T} (GeV/#it{c});#it{p}_{T}^{MC} (GeV/#it{c})", kTH2D, {axisConfigurations.axisPt, axisConfigurations.axisPt});
1208+
histos.add("GeneralQA/h3dRapVsRapGen", "h3dRapVsRapGen;Centrality (%);Rapidity;Generated rapidity", kTH3D, {axisConfigurations.axisCentrality, axisConfigurations.axisRapidity, axisConfigurations.axisRapidity});
1209+
histos.add("GeneralQA/h3dPtVsPtGen", "h3dPtVsPtGen;Centrality (%);#it{p}_{T} (GeV/#it{c});#it{p}_{T}^{MC} (GeV/#it{c})", kTH3D, {axisConfigurations.axisCentrality, axisConfigurations.axisPt, axisConfigurations.axisPt});
12081210
}
12091211

12101212
// Creation of histograms: MC generated
@@ -2064,6 +2066,8 @@ struct derivedlambdakzeroanalysis {
20642066
if (doprocessMonteCarloRun3 || doprocessMonteCarloRun2) {
20652067
histos.fill(HIST("GeneralQA/h2dRapVsRapGen"), v0.yK0Short(), rapidityK0Short);
20662068
histos.fill(HIST("GeneralQA/h2dPtVsPtGen"), v0.pt(), pt);
2069+
histos.fill(HIST("GeneralQA/h3dRapVsRapGen"), centrality, v0.yK0Short(), rapidityK0Short);
2070+
histos.fill(HIST("GeneralQA/h3dPtVsPtGen"), centrality, v0.pt(), pt);
20672071
}
20682072
nK0Shorts++;
20692073
}
@@ -2154,6 +2158,8 @@ struct derivedlambdakzeroanalysis {
21542158
if (doprocessMonteCarloRun3 || doprocessMonteCarloRun2) {
21552159
histos.fill(HIST("GeneralQA/h2dRapVsRapGen"), v0.yLambda(), rapidityLambda);
21562160
histos.fill(HIST("GeneralQA/h2dPtVsPtGen"), v0.pt(), pt);
2161+
histos.fill(HIST("GeneralQA/h3dRapVsRapGen"), centrality, v0.yLambda(), rapidityLambda);
2162+
histos.fill(HIST("GeneralQA/h3dPtVsPtGen"), centrality, v0.pt(), pt);
21572163
}
21582164
nLambdas++;
21592165
}
@@ -2244,6 +2250,8 @@ struct derivedlambdakzeroanalysis {
22442250
if (doprocessMonteCarloRun3 || doprocessMonteCarloRun2) {
22452251
histos.fill(HIST("GeneralQA/h2dRapVsRapGen"), v0.yLambda(), rapidityLambda);
22462252
histos.fill(HIST("GeneralQA/h2dPtVsPtGen"), v0.pt(), pt);
2253+
histos.fill(HIST("GeneralQA/h3dRapVsRapGen"), centrality, v0.yLambda(), rapidityLambda);
2254+
histos.fill(HIST("GeneralQA/h3dPtVsPtGen"), centrality, v0.pt(), pt);
22472255
}
22482256
nAntiLambdas++;
22492257
}

0 commit comments

Comments
 (0)