Skip to content

Commit 1b2dbf8

Browse files
authored
[PWGCF] Add histograms (AliceO2Group#10399)
1 parent 4e85781 commit 1b2dbf8

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

PWGCF/EbyEFluctuations/Tasks/meanPtFlucId.cxx

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ struct MeanPtFlucId {
223223
hist.add("QA/after/h_Pt_weighted", "weighted pT distribution", kTH1D, {axisPt});
224224
hist.add("QA/after/h2_Pt_NFT0M", "p_{T} in Multiplicity Classes ", kTH2D, {{axisPt}, {axisMultFT0M}});
225225
hist.add("QA/after/h2_pt_nch", "Truth", kTH2D, {{axisMult}, {axisPt}});
226+
hist.add("QA/after/h3_nft0m_pt_nch", "Reco", kTHnSparseD, {axisMult, axisPt, axisMultFT0M});
226227
hist.add("QA/after/h2_pt_nch_prof", "Truth", kTProfile, {axisMult});
227228

228229
hist.add("QA/Pion/before/h2_TPCNsigma", "n #sigma_{TPC}", tpcNSigmaHist);
@@ -260,8 +261,9 @@ struct MeanPtFlucId {
260261
hist.add("QA/Pion/h2_PtTruth_NFT0M", "p_{T} in Multiplicity Classes ", kTH2D, {{axisPt}, {axisMultFT0M}});
261262
hist.add("QA/Pion/h2_PtPosTruth_NFT0M", "p_{T} in Multiplicity Classes ", kTH2D, {{axisPt}, {axisMultFT0M}});
262263
hist.add("QA/Pion/h2_PtNegTruth_NFT0M", "p_{T} in Multiplicity Classes ", kTH2D, {{axisPt}, {axisMultFT0M}});
263-
hist.add("QA/Pion/h2_pt_nch", "Truth", kTH2D, {{axisMult}, {axisPt}});
264-
hist.add("QA/Pion/h2_pt_nch_prof", "Truth", kTProfile, {axisMult});
264+
hist.add("QA/Pion/h2_pt_nch", "Reco", kTH2D, {{axisMult}, {axisPt}});
265+
hist.add("QA/Pion/h3_nft0m_pt_nch", "Reco", kTHnSparseD, {axisMult, axisPt, axisMultFT0M});
266+
hist.add("QA/Pion/h2_pt_nch_prof", "Reco", kTProfile, {axisMult});
265267

266268
hist.add("QA/Pion/h2_TPCNsigma", "n #sigma_{TPC}", tpcNSigmaHist);
267269
hist.add("QA/Pion/h2_TPCNsigma_El", "n #sigma_{TPC, El}", tpcNSigmaHist);
@@ -344,6 +346,7 @@ struct MeanPtFlucId {
344346
hist.add("Gen/Charged/h_Mult", "Multiplicity", kTH1D, {axisMult});
345347
hist.add("Gen/Charged/h_Mult_weighted", "Multiplicity", kTH1D, {axisMult});
346348
hist.add("Gen/Charged/h2_pt_nch", "Truth", kTH2D, {{axisMult}, {axisPt}});
349+
hist.add("Gen/Charged/h3_nft0m_pt_nch", "Truth", kTHnSparseD, {axisMult, axisPt, axisMultFT0M});
347350
hist.add("Gen/Charged/h2_pt_nch_prof", "Truth", kTProfile, {axisMult});
348351
hist.add("Gen/Charged/h_mean_pT", " <p_{T}> ", kTH1D, {axisMeanPt});
349352

@@ -466,9 +469,6 @@ struct MeanPtFlucId {
466469
if (std::fabs(track.dcaZ()) > cfgCutDcaZ)
467470
return false;
468471

469-
if (std::fabs(track.dcaXY()) > cfgCutDcaXY)
470-
return false;
471-
472472
return true;
473473
}
474474

@@ -1291,27 +1291,31 @@ struct MeanPtFlucId {
12911291
double pt = track.pt();
12921292
wghtCh = getCorrectedWeight(ptBins, {}, effValuesCh, {}, pt, 0.0, false, cfgCorrection);
12931293
hist.fill(HIST("QA/after/h2_pt_nch"), nCh, pt, wghtCh);
1294+
hist.fill(HIST("QA/after/h3_nft0m_pt_nch"), nCh, pt, nFT0M, wghtCh);
12941295
hist.fill(HIST("QA/after/h2_pt_nch_prof"), nCh, pt, wghtCh);
12951296
}
12961297

12971298
if (selLowPi(track) == cfgSelLow || selHighPi(track) == cfgSelHigh) {
12981299
ptPi = track.pt();
12991300
wghtPi = getCorrectedWeight(ptBins, rapBins, effPtValuesPi, effPtRapValuesPi, ptPi, rapPi, cfgCorrectionPtRapPID, cfgCorrectionPID);
13001301
hist.fill(HIST("QA/Pion/h2_pt_nch"), nPi, ptPi, wghtPi);
1302+
hist.fill(HIST("QA/Pion/h3_nft0m_pt_nch"), nPi, ptPi, nFT0M, wghtPi);
13011303
hist.fill(HIST("QA/Pion/h2_pt_nch_prof"), nPi, ptPi, wghtPi);
13021304
}
13031305

13041306
if (selLowKa(track) == cfgSelLow || selHighKa(track) == cfgSelHigh) {
13051307
ptKa = track.pt();
13061308
wghtKa = getCorrectedWeight(ptBins, rapBins, effPtValuesKa, effPtRapValuesKa, ptKa, rapKa, cfgCorrectionPtRapPID, cfgCorrectionPID);
13071309
hist.fill(HIST("QA/Kaon/h2_pt_nch"), nKa, ptKa, wghtKa);
1310+
hist.fill(HIST("QA/Kaon/h3_nft0m_pt_nch"), nKa, ptKa, nFT0M, wghtKa);
13081311
hist.fill(HIST("QA/Kaon/h2_pt_nch_prof"), nKa, ptKa, wghtKa);
13091312
}
13101313

13111314
if (selLowPr(track) == cfgSelLow || selHighPr(track) == cfgSelHigh) {
13121315
ptPr = track.pt();
13131316
wghtPr = getCorrectedWeight(ptBins, rapBins, effPtValuesPr, effPtRapValuesPr, ptPr, rapPr, cfgCorrectionPtRapPID, cfgCorrectionPID);
13141317
hist.fill(HIST("QA/Proton/h2_pt_nch"), nPr, ptPr, wghtPr);
1318+
hist.fill(HIST("QA/Proton/h3_nft0m_pt_nch"), nPr, ptPr, nFT0M, wghtPr);
13151319
hist.fill(HIST("QA/Proton/h2_pt_nch_prof"), nPr, ptPr, wghtPr);
13161320
}
13171321
}
@@ -1331,6 +1335,7 @@ struct MeanPtFlucId {
13311335
if (std::abs(mcPart.eta()) < 0.8) {
13321336
double pt = mcPart.pt();
13331337
hist.fill(HIST("Gen/Charged/h2_pt_nch"), nChSim, pt);
1338+
hist.fill(HIST("Gen/Charged/h3_nft0m_pt_nch"), nChSim, pt, nFT0M);
13341339
hist.fill(HIST("Gen/Charged/h2_pt_nch_prof"), nChSim, pt);
13351340
}
13361341

@@ -1339,14 +1344,17 @@ struct MeanPtFlucId {
13391344

13401345
if (std::abs(pid) == kPiPlus && mcPart.pt() >= cfgCutPiPtMin) {
13411346
hist.fill(HIST("Gen/Pion/h2_pt_nch"), nPiSim, mcPart.pt());
1347+
hist.fill(HIST("Gen/Pion/h3_nft0m_pt_nch"), nPiSim, mcPart.pt(), nFT0M);
13421348
hist.fill(HIST("Gen/Pion/h2_pt_nch_prof"), nPiSim, mcPart.pt());
13431349
}
13441350
if (std::abs(pid) == kKPlus && mcPart.pt() >= cfgCutKaPtMin) {
13451351
hist.fill(HIST("Gen/Kaon/h2_pt_nch"), nKaSim, mcPart.pt());
1352+
hist.fill(HIST("Gen/Kaon/h3_nft0m_pt_nch"), nKaSim, mcPart.pt(), nFT0M);
13461353
hist.fill(HIST("Gen/Kaon/h2_pt_nch_prof"), nKaSim, mcPart.pt());
13471354
}
13481355
if (std::abs(pid) == kProton && mcPart.pt() >= cfgCutPrPtMin) {
13491356
hist.fill(HIST("Gen/Proton/h2_pt_nch"), nPrSim, mcPart.pt());
1357+
hist.fill(HIST("Gen/Proton/h3_nft0m_pt_nch"), nPrSim, mcPart.pt(), nFT0M);
13501358
hist.fill(HIST("Gen/Proton/h2_pt_nch_prof"), nPrSim, mcPart.pt());
13511359
}
13521360
}

0 commit comments

Comments
 (0)