Skip to content

Commit 94b4034

Browse files
authored
[PWGCF] Separated TPC & TOF distributions by charge (#12973)
1 parent d96bdbd commit 94b4034

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

PWGCF/MultiparticleCorrelations/Tasks/threeParticleCorrelations.cxx

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -194,21 +194,21 @@ struct ThreeParticleCorrelations {
194194
rQARegistry.add("hPtProton_MC", "hPtProton_MC", {HistType::kTH3D, {{trackPtAxis}, {centralityAxis}, {2, -2, 2}}});
195195
rQARegistry.add("hPtV0_MC", "hPtV0_MC", {HistType::kTH3D, {{v0PtAxis}, {centralityAxis}, {2, -2, 2}}});
196196

197-
rQARegistry.add("hdEdx", "hdEdx", {HistType::kTH2D, {{56, 0.2, 3.0}, {180, 20, 200}}});
198-
rQARegistry.add("hdEdxPion", "hdEdxPion", {HistType::kTH2D, {{56, 0.2, 3.0}, {180, 20, 200}}});
199-
rQARegistry.add("hdEdxKaon", "hdEdxKaon", {HistType::kTH2D, {{56, 0.2, 3.0}, {180, 20, 200}}});
200-
rQARegistry.add("hdEdxProton", "hdEdxProton", {HistType::kTH2D, {{56, 0.2, 3.0}, {180, 20, 200}}});
201-
rQARegistry.add("hBeta", "hBeta", {HistType::kTH2D, {{56, 0.2, 3.0}, {70, 0.4, 1.1}}});
202-
rQARegistry.add("hBetaPion", "hBetaPion", {HistType::kTH2D, {{56, 0.2, 3.0}, {70, 0.4, 1.1}}});
203-
rQARegistry.add("hBetaKaon", "hBetaKaon", {HistType::kTH2D, {{56, 0.2, 3.0}, {70, 0.4, 1.1}}});
204-
rQARegistry.add("hBetaProton", "hBetaProton", {HistType::kTH2D, {{56, 0.2, 3.0}, {70, 0.4, 1.1}}});
205-
206-
rQARegistry.add("hTPCPion", "hTPCPion", {HistType::kTH2D, {{trackPtAxis}, {1001, -50.05, 50.05}}});
207-
rQARegistry.add("hTPCKaon", "hTPCKaon", {HistType::kTH2D, {{trackPtAxis}, {1001, -50.05, 50.05}}});
208-
rQARegistry.add("hTPCProton", "hTPCProton", {HistType::kTH2D, {{trackPtAxis}, {1001, -50.05, 50.05}}});
209-
rQARegistry.add("hTOFPion", "hTOFPion", {HistType::kTH2D, {{trackPtAxis}, {1001, -50.05, 50.05}}});
210-
rQARegistry.add("hTOFKaon", "hTOFKaon", {HistType::kTH2D, {{trackPtAxis}, {1001, -50.05, 50.05}}});
211-
rQARegistry.add("hTOFProton", "hTOFProton", {HistType::kTH2D, {{trackPtAxis}, {1001, -50.05, 50.05}}});
197+
rQARegistry.add("hdEdx", "hdEdx", {HistType::kTH2D, {{120, -3.0, 3.0}, {180, 20, 200}}});
198+
rQARegistry.add("hdEdxPion", "hdEdxPion", {HistType::kTH2D, {{120, -3.0, 3.0}, {180, 20, 200}}});
199+
rQARegistry.add("hdEdxKaon", "hdEdxKaon", {HistType::kTH2D, {{120, -3.0, 3.0}, {180, 20, 200}}});
200+
rQARegistry.add("hdEdxProton", "hdEdxProton", {HistType::kTH2D, {{120, -3.0, 3.0}, {180, 20, 200}}});
201+
rQARegistry.add("hBeta", "hBeta", {HistType::kTH2D, {{120, -3.0, 3.0}, {70, 0.4, 1.1}}});
202+
rQARegistry.add("hBetaPion", "hBetaPion", {HistType::kTH2D, {{120, -3.0, 3.0}, {70, 0.4, 1.1}}});
203+
rQARegistry.add("hBetaKaon", "hBetaKaon", {HistType::kTH2D, {{120, -3.0, 3.0}, {70, 0.4, 1.1}}});
204+
rQARegistry.add("hBetaProton", "hBetaProton", {HistType::kTH2D, {{120, -3.0, 3.0}, {70, 0.4, 1.1}}});
205+
206+
rQARegistry.add("hTPCPion", "hTPCPion", {HistType::kTH3D, {{trackPtAxis}, {1001, -50.05, 50.05}, {2, -2, 2}}});
207+
rQARegistry.add("hTPCKaon", "hTPCKaon", {HistType::kTH3D, {{trackPtAxis}, {1001, -50.05, 50.05}, {2, -2, 2}}});
208+
rQARegistry.add("hTPCProton", "hTPCProton", {HistType::kTH3D, {{trackPtAxis}, {1001, -50.05, 50.05}, {2, -2, 2}}});
209+
rQARegistry.add("hTOFPion", "hTOFPion", {HistType::kTH3D, {{trackPtAxis}, {1001, -50.05, 50.05}, {2, -2, 2}}});
210+
rQARegistry.add("hTOFKaon", "hTOFKaon", {HistType::kTH3D, {{trackPtAxis}, {1001, -50.05, 50.05}, {2, -2, 2}}});
211+
rQARegistry.add("hTOFProton", "hTOFProton", {HistType::kTH3D, {{trackPtAxis}, {1001, -50.05, 50.05}, {2, -2, 2}}});
212212

213213
rQARegistry.add("hInvMassLambda", "hInvMassLambda", {HistType::kTH3D, {{lambdaInvMassAxis}, {v0PtAxis}, {centralityAxis}}});
214214
rQARegistry.add("hInvMassAntiLambda", "hInvMassAntiLambda", {HistType::kTH3D, {{lambdaInvMassAxis}, {v0PtAxis}, {centralityAxis}}});
@@ -348,13 +348,13 @@ struct ThreeParticleCorrelations {
348348

349349
// Start of the Track QA
350350
for (const auto& track : tracks) {
351-
rQARegistry.fill(HIST("hTPCPion"), track.pt(), track.tpcNSigmaPi());
352-
rQARegistry.fill(HIST("hTPCKaon"), track.pt(), track.tpcNSigmaKa());
353-
rQARegistry.fill(HIST("hTPCProton"), track.pt(), track.tpcNSigmaPr());
351+
rQARegistry.fill(HIST("hTPCPion"), track.pt(), track.tpcNSigmaPi(), track.sign());
352+
rQARegistry.fill(HIST("hTPCKaon"), track.pt(), track.tpcNSigmaKa(), track.sign());
353+
rQARegistry.fill(HIST("hTPCProton"), track.pt(), track.tpcNSigmaPr(), track.sign());
354354
if (track.hasTOF()) {
355-
rQARegistry.fill(HIST("hTOFPion"), track.pt(), track.tofNSigmaPi());
356-
rQARegistry.fill(HIST("hTOFKaon"), track.pt(), track.tofNSigmaKa());
357-
rQARegistry.fill(HIST("hTOFProton"), track.pt(), track.tofNSigmaPr());
355+
rQARegistry.fill(HIST("hTOFPion"), track.pt(), track.tofNSigmaPi(), track.sign());
356+
rQARegistry.fill(HIST("hTOFKaon"), track.pt(), track.tofNSigmaKa(), track.sign());
357+
rQARegistry.fill(HIST("hTOFProton"), track.pt(), track.tofNSigmaPr(), track.sign());
358358
}
359359

360360
if (trackFilters(track)) {
@@ -363,23 +363,23 @@ struct ThreeParticleCorrelations {
363363
rQARegistry.fill(HIST("hTrackEta"), track.eta());
364364
rQARegistry.fill(HIST("hTrackPhi"), track.phi());
365365
rQARegistry.fill(HIST("hTrackNSharedClusters"), track.tpcNClsShared());
366-
rQARegistry.fill(HIST("hdEdx"), track.pt(), track.tpcSignal());
367-
rQARegistry.fill(HIST("hBeta"), track.pt(), track.beta());
366+
rQARegistry.fill(HIST("hdEdx"), track.sign() * track.pt(), track.tpcSignal());
367+
rQARegistry.fill(HIST("hBeta"), track.sign() * track.pt(), track.beta());
368368
if (assocPID[0] == pionID) { // Pions
369369
rQARegistry.fill(HIST("hPtPion_Uncorrected"), track.pt(), collision.centFT0C(), track.sign());
370370
rQARegistry.fill(HIST("hPtPion_Corrected"), track.pt(), collision.centFT0C(), track.sign(), 1. / trackEff(hEffPions, track, collision.centFT0C()));
371-
rQARegistry.fill(HIST("hdEdxPion"), track.pt(), track.tpcSignal());
372-
rQARegistry.fill(HIST("hBetaPion"), track.pt(), track.beta());
371+
rQARegistry.fill(HIST("hdEdxPion"), track.sign() * track.pt(), track.tpcSignal());
372+
rQARegistry.fill(HIST("hBetaPion"), track.sign() * track.pt(), track.beta());
373373
} else if (assocPID[0] == kaonID) { // Kaons
374374
rQARegistry.fill(HIST("hPtKaon_Uncorrected"), track.pt(), collision.centFT0C(), track.sign());
375375
rQARegistry.fill(HIST("hPtKaon_Corrected"), track.pt(), collision.centFT0C(), track.sign(), 1. / trackEff(hEffKaons, track, collision.centFT0C()));
376-
rQARegistry.fill(HIST("hdEdxKaon"), track.pt(), track.tpcSignal());
377-
rQARegistry.fill(HIST("hBetaKaon"), track.pt(), track.beta());
376+
rQARegistry.fill(HIST("hdEdxKaon"), track.sign() * track.pt(), track.tpcSignal());
377+
rQARegistry.fill(HIST("hBetaKaon"), track.sign() * track.pt(), track.beta());
378378
} else if (assocPID[0] == protonID) { // Protons
379379
rQARegistry.fill(HIST("hPtProton_Uncorrected"), track.pt(), collision.centFT0C(), track.sign());
380380
rQARegistry.fill(HIST("hPtProton_Corrected"), track.pt(), collision.centFT0C(), track.sign(), 1. / trackEff(hEffProtons, track, collision.centFT0C()));
381-
rQARegistry.fill(HIST("hdEdxProton"), track.pt(), track.tpcSignal());
382-
rQARegistry.fill(HIST("hBetaProton"), track.pt(), track.beta());
381+
rQARegistry.fill(HIST("hdEdxProton"), track.sign() * track.pt(), track.tpcSignal());
382+
rQARegistry.fill(HIST("hBetaProton"), track.sign() * track.pt(), track.beta());
383383
}
384384
}
385385
}

0 commit comments

Comments
 (0)