From 24d3706e4d419919100051c41a18518bfd0bae4e Mon Sep 17 00:00:00 2001 From: samtaarora1154-art Date: Wed, 25 Nov 2026 20:49:25 +0530 Subject: [PATCH 1/3] Update flowEventPlane.cxx Added Particle Identification selection cuts on TPC inner wall momentum and TOF Expected momentum --- PWGCF/Flow/Tasks/flowEventPlane.cxx | 170 +++++++++++++++++++--------- 1 file changed, 119 insertions(+), 51 deletions(-) diff --git a/PWGCF/Flow/Tasks/flowEventPlane.cxx b/PWGCF/Flow/Tasks/flowEventPlane.cxx index 2ab9c8d97df..788cbdc7a01 100644 --- a/PWGCF/Flow/Tasks/flowEventPlane.cxx +++ b/PWGCF/Flow/Tasks/flowEventPlane.cxx @@ -167,12 +167,16 @@ struct SpCalibTableProducer { Configurable cMaxZVtx{"cMaxZVtx", 10.0, "Max VtxZ cut"}; Configurable cMinCent{"cMinCent", 0., "Minumum Centrality"}; Configurable cMaxCent{"cMaxCent", 100.0, "Maximum Centrality"}; + Configurable cCentBins{"cCentBins", 100, "Number of bins in centrality axis"}; Configurable cSel8Trig{"cSel8Trig", true, "Sel8 (T0A + T0C) Selection Run3"}; Configurable cPileupReject{"cPileupReject", true, "Pileup rejection"}; Configurable cZVtxTimeDiff{"cZVtxTimeDiff", true, "z-vtx time diff selection"}; Configurable cIsGoodITSLayers{"cIsGoodITSLayers", true, "Good ITS Layers All"}; Configurable cMinOccupancy{"cMinOccupancy", 0, "Minimum FT0C Occupancy"}; Configurable cMaxOccupancy{"cMaxOccupancy", 1e6, "Maximum FT0C Occupancy"}; + Configurable capplyTdcCut{"capplyTdcCut", false, "Flag for TDC cut"}; + Configurable ctdcZnMin{"ctdcZnMin", -2.5, "Min ZN TDC cut"}; + Configurable ctdcZnMax{"ctdcZnMax", 2.5, "Max ZN TDC cut"}; // Histogram Registry. HistogramRegistry histos{"histos", {}, OutputObjHandlingPolicy::AnalysisObject}; @@ -184,7 +188,7 @@ struct SpCalibTableProducer { void init(InitContext const&) { // Histogram collision - histos.add("hCent", "Centrality", kTH1F, {{100, 0., 100., "FT0C%"}}); + histos.add("hCent", "Centrality", kTH1F, {{cCentBins, 0., 100., "FT0C%"}}); histos.add("hVz", "V_{z}", kTH1F, {{100, -10., 10., "V_{z}(cm)"}}); } @@ -226,6 +230,20 @@ struct SpCalibTableProducer { return true; } + template + bool selZdcHit(C const& zdc) + { + if (capplyTdcCut) { // a narrow TDC window is set + if ((zdc.timeZNC() <= ctdcZnMin) || (zdc.timeZNC() >= ctdcZnMax)) { + return false; + } + if ((zdc.timeZNA() <= ctdcZnMin) || (zdc.timeZNA() >= ctdcZnMax)) { + return false; + } + } + return true; + } + template void analyzeCollision(B const& bc, C const& collision) { @@ -243,6 +261,10 @@ struct SpCalibTableProducer { posZ = collision.posZ(); auto zdc = bc.zdc(); + if (!selZdcHit(zdc)) { + return; + } + std::vector znaEnergy, zncEnergy; for (int i = 0; i < kXYAC; ++i) { znaEnergy.push_back(zdc.energySectorZNA()[i]); @@ -292,12 +314,18 @@ struct SpectatorPlaneTableProducer { Configurable cMaxZVtx{"cMaxZVtx", 10.0, "Max VtxZ cut"}; Configurable cMinCent{"cMinCent", 0., "Minumum Centrality"}; Configurable cMaxCent{"cMaxCent", 100.0, "Maximum Centrality"}; + Configurable cCentBins{"cCentBins", 100, "Number of bins in centrality axis"}; Configurable cSel8Trig{"cSel8Trig", true, "Sel8 (T0A + T0C) Selection Run3"}; Configurable cPileupReject{"cPileupReject", true, "Pileup rejection"}; Configurable cZVtxTimeDiff{"cZVtxTimeDiff", true, "z-vtx time diff selection"}; Configurable cIsGoodITSLayers{"cIsGoodITSLayers", true, "Good ITS Layers All"}; Configurable cMinOccupancy{"cMinOccupancy", 0, "Minimum FT0C Occupancy"}; Configurable cMaxOccupancy{"cMaxOccupancy", 1e6, "Maximum FT0C Occupancy"}; + Configurable capplyTdcCut{"capplyTdcCut", false, "Flag for TDC cut"}; + Configurable ctdcZnMin{"ctdcZnMin", -2.5, "Min ZN TDC cut"}; + Configurable ctdcZnMax{"ctdcZnMax", 2.5, "Max ZN TDC cut"}; + + ConfigurableAxis axisVarCent{"axisVarCent", {VARIABLE_WIDTH, 0, 5, 10, 15, 20, 25, 30, 35, 40, 50, 60, 70, 80, 100}, "Variable width centrality bins"}; // Coarse binning factor Configurable cAxisCBF{"cAxisCBF", 10, "Coarse Bin Factor"}; @@ -313,6 +341,7 @@ struct SpectatorPlaneTableProducer { Configurable cRecentVxVy{"cRecentVxVy", true, "Vx / Vy recentering"}; // Corrections + Configurable cLoadCorrection{"cLoadCorrection", true, "Load corrections"}; Configurable cDoGainCalib{"cDoGainCalib", true, "Gain Calib Flag"}; Configurable cUseAlphaZDC{"cUseAlphaZDC", true, "Use Alpha ZDC"}; @@ -327,7 +356,6 @@ struct SpectatorPlaneTableProducer { // Tracks Configurable cTrackMinPt{"cTrackMinPt", 0.1, "p_{T} minimum"}; Configurable cTrackMaxPt{"cTrackMaxPt", 10.0, "p_{T} maximum"}; - Configurable cNEtaBins{"cNEtaBins", 7, "# of eta bins"}; Configurable cTrackEtaCut{"cTrackEtaCut", 0.8, "Pseudorapidity cut"}; Configurable cTrackGlobal{"cTrackGlobal", true, "Global Track"}; Configurable cTrackDcaXYCut{"cTrackDcaXYCut", 0.1, "DcaXY Cut"}; @@ -340,9 +368,15 @@ struct SpectatorPlaneTableProducer { Configurable cTpcRejCut{"cTpcRejCut", 3, "TPC Rej Cut"}; Configurable cTofNSigmaCut{"cTofNSigmaCut", 2, "TOF NSigma Cut"}; Configurable cTofRejCut{"cTofRejCut", 3, "TOF Rej Cut"}; - Configurable cPionPtCut{"cPionPtCut", 0.6, "Pion TPC pT cutoff"}; - Configurable cKaonPtCut{"cKaonPtCut", 0.6, "Kaon TPC pT cutoff"}; - Configurable cProtonPtCut{"cProtonPtCut", 1.1, "Proton TPC pT cutoff"}; + Configurable cPionPtpcMin{"cPionPtpcMin", 0.1, "Pion Minimum momentum"}; + Configurable cPionPtpcMax{"cPionPtpcMax", 0.6, "Pion pTPC cutoff"}; + Configurable cPionPtofMax{"cPionPtofMax", 2.5, "Pion Maximum momentum"}; + Configurable cKaonPtpcMin{"cKaonPtpcMin", 0.25, "Kaon Minimum momentum"}; + Configurable cKaonPtpcMax{"cKaonPtpcMax", 0.6, "Kaon pTPC cutoff"}; + Configurable cKaonPtofMax{"cKaonPtofMax", 2.5, "Kaon Maximum momentum"}; + Configurable cProtonPtpcMin{"cProtonPtpcMin", 0.6, "Proton Minimum momentum"}; + Configurable cProtonPtpcMax{"cProtonPtpcMax", 1.0, "Proton pTPC cutoff"}; + Configurable cProtonPtofMax{"cProtonPtofMax", 5.0, "Proton Maximum momentum"}; // Initialize CCDB Service Service ccdbService{}; @@ -389,7 +423,7 @@ struct SpectatorPlaneTableProducer { // Define axes const AxisSpec axisZDCEnergy{500, 0, 500, "ZD[AC] Signal"}; - const AxisSpec axisCent{100, 0., 100, "FT0C%"}; + const AxisSpec axisCent{cCentBins, 0., 100, "FT0C%"}; const AxisSpec axisVx{cAxisVxyBins, cAxisVxMin, cAxisVxMax, "V_{X}(cm)"}; const AxisSpec axisVy{cAxisVxyBins, cAxisVyMin, cAxisVyMax, "V_{Y}(cm)"}; const AxisSpec axisVz{cAxisVzBins, cMinZVtx, cMaxZVtx, "V_{Z}(cm)"}; @@ -468,6 +502,7 @@ struct SpectatorPlaneTableProducer { // Directed flow QXY vector histos.add("DF/hQaQc", "X^{A}_{1}X^{C}_{1} + Y^{A}_{1}Y^{C}_{1}", kTProfile, {axisCent}); + histos.add("DF/hQaQcVarCent", "X^{A}_{1}X^{C}_{1} + Y^{A}_{1}Y^{C}_{1}", kTProfile, {axisVarCent}); } // Select collsion @@ -509,6 +544,20 @@ struct SpectatorPlaneTableProducer { return true; } + template + bool selZdcHit(C const& zdc) + { + if (capplyTdcCut) { // a narrow TDC window is set + if ((zdc.timeZNC() <= ctdcZnMin) || (zdc.timeZNC() >= ctdcZnMax)) { + return false; + } + if ((zdc.timeZNA() <= ctdcZnMin) || (zdc.timeZNA() >= ctdcZnMax)) { + return false; + } + } + return true; + } + // Load Gain Calibrations and ZDC Q-Vector Recentering Corrections void loadCorrections() { @@ -699,11 +748,18 @@ struct SpectatorPlaneTableProducer { // Zdc information auto zdc = bc.zdc(); + + if (!selZdcHit(zdc)) { + return false; + } auto znaEnergy = zdc.energySectorZNA(); auto zncEnergy = zdc.energySectorZNC(); auto znaEnergyCommon = zdc.energyCommonZNA(); auto zncEnergyCommon = zdc.energyCommonZNC(); + // Change in 3rd tower energy due to spurious peaks + zncEnergy[2] = zncEnergyCommon - zncEnergy[0] - zncEnergy[1] - zncEnergy[3]; + // Check energy deposits if (znaEnergyCommon <= 0 || zncEnergyCommon <= 0 || znaEnergy[0] <= 0 || znaEnergy[1] <= 0 || znaEnergy[2] <= 0 || znaEnergy[3] <= 0 || zncEnergy[0] <= 0 || zncEnergy[1] <= 0 || zncEnergy[2] <= 0 || zncEnergy[3] <= 0) { return false; @@ -816,15 +872,16 @@ struct SpectatorPlaneTableProducer { } template - bool checkTrackPid(float const& ptCut, float const& trackPt, std::vector const& vTpcNsig, std::vector const& vTofNsig, bool const& tofFlag) + bool checkTrackPid(float const& PtpcMinCut, float const& PtpcMaxCut, float const& PtofMaxCut, float const& Ptpc, float const& Ptof, std::vector const& vTpcNsig, std::vector const& vTofNsig, bool const& tofFlag) { + bool retFlag = false; - if (tofFlag) { + if (tofFlag && Ptpc > PtpcMinCut && Ptof < PtofMaxCut) { if (vTofNsig[part1] < cTofNSigmaCut && vTofNsig[part2] > cTofRejCut && vTofNsig[part3] > cTofRejCut && vTpcNsig[part1] < cTpcNSigmaCut) { retFlag = true; } } else { - if (trackPt < ptCut && vTpcNsig[part1] < cTpcNSigmaCut && vTpcNsig[part2] > cTpcRejCut && vTpcNsig[part3] > cTpcRejCut) { + if (Ptpc > PtpcMinCut && Ptpc < PtpcMaxCut && vTpcNsig[part1] < cTpcNSigmaCut && vTpcNsig[part2] > cTpcRejCut && vTpcNsig[part3] > cTpcRejCut) { retFlag = true; } } @@ -840,20 +897,22 @@ struct SpectatorPlaneTableProducer { } // Pion, Kaon, Proton Identification - std::vector vPtCut = {cPionPtCut, cKaonPtCut, cProtonPtCut}; + std::vector vPtpcMinCut = {cPionPtpcMin, cKaonPtpcMin, cProtonPtpcMin}; + std::vector vPtpcMaxCut = {cPionPtpcMax, cKaonPtpcMax, cProtonPtpcMax}; + std::vector vPtofMaxCut = {cPionPtofMax, cKaonPtofMax, cProtonPtofMax}; std::vector vTpcNsig = {std::abs(track.tpcNSigmaPi()), std::abs(track.tpcNSigmaKa()), std::abs(track.tpcNSigmaPr())}; std::vector vTofNsig = {std::abs(track.tofNSigmaPi()), std::abs(track.tofNSigmaKa()), std::abs(track.tofNSigmaPr())}; if (partType == kPi) { - return checkTrackPid(vPtCut[kPi], track.pt(), vTpcNsig, vTofNsig, track.hasTOF()); + return checkTrackPid(vPtpcMinCut[kPi], vPtpcMaxCut[kPi], vPtofMaxCut[kPi], track.tpcInnerParam(), track.tofExpMom(), vTpcNsig, vTofNsig, track.hasTOF()); } if (partType == kKa) { - return checkTrackPid(vPtCut[kKa], track.pt(), vTpcNsig, vTofNsig, track.hasTOF()); + return checkTrackPid(vPtpcMinCut[kKa], vPtpcMaxCut[kKa], vPtofMaxCut[kKa], track.tpcInnerParam(), track.tofExpMom(), vTpcNsig, vTofNsig, track.hasTOF()); } if (partType == kPr) { - return checkTrackPid(vPtCut[kPr], track.pt(), vTpcNsig, vTofNsig, track.hasTOF()); + return checkTrackPid(vPtpcMinCut[kPr], vPtpcMaxCut[kPr], vPtofMaxCut[kPr], track.tpcInnerParam(), track.tofExpMom(), vTpcNsig, vTofNsig, track.hasTOF()); } return false; @@ -901,6 +960,7 @@ struct SpectatorPlaneTableProducer { // Directed flow QXY vector float qac = (vSP[kXa] * vSP[kXc]) + (vSP[kYa] * vSP[kYc]); histos.fill(HIST("DF/hQaQc"), cent, qac); + histos.fill(HIST("DF/hQaQcVarCent"), cent, qac); } // Fill table @@ -925,7 +985,9 @@ struct SpectatorPlaneTableProducer { struct FlowEventPlane { // Tracks - Configurable cEtaBins{"cEtaBins", 5, "# of eta bins"}; + Configurable cEtaBinsCharged{"cEtaBinsCharged", 5, "# of eta bins"}; + Configurable cEtaBinsHadrons{"cEtaBinsHadrons", 5, "# of eta bins"}; + Configurable cEtaBinsStrange{"cEtaBinsStrange", 5, "# of eta bins"}; Configurable cEtaCut{"cEtaCut", 0.8, "Rapidity cut"}; // Pi,Ka,Pr @@ -960,6 +1022,8 @@ struct FlowEventPlane { Configurable cLambdaMinPt{"cLambdaMinPt", 0.6, "Lambda Min pT"}; Configurable cLambdaMaxPt{"cLambdaMaxPt", 6.0, "Lambda Max pT"}; + ConfigurableAxis axisVarCent{"axisVarCent", {VARIABLE_WIDTH, 0, 5, 10, 15, 20, 25, 30, 35, 40, 50, 60, 70, 80, 100}, "Variable width centrality bins"}; + // Histogram registry: an object to hold your histograms HistogramRegistry histos{"histos", {}, OutputObjHandlingPolicy::AnalysisObject}; @@ -970,13 +1034,17 @@ struct FlowEventPlane { void init(InitContext const&) { // Define axes - const AxisSpec axisCent{100, 0., 100, "FT0C%"}; + // const AxisSpec axisCent{100, 0., 100, "FT0C%"}; const AxisSpec axisXYac{600, -6, 6, "Q^{t}Q^{p}"}; const AxisSpec axisV1{400, -4, 4, "v_{1}"}; const AxisSpec axisTrackPt{100, 0., 10., "p_{T} (GeV/#it{c})"}; - const AxisSpec axisTrackEta{cEtaBins, -0.8, 0.8, "#eta"}; + const AxisSpec axisTrackpTOF(100, 0, 5, "p_{TOF} (GeV/#it{c})"); + const AxisSpec axisTrackpTPC(80, 0, 4, "p_{TPC} (GeV/#it{c})"); + const AxisSpec axisTrackEtaCharged{cEtaBinsCharged, -0.8, 0.8, "#etaCharged"}; + const AxisSpec axisTrackEtaHadrons{cEtaBinsHadrons, -0.8, 0.8, "#etaHadrons"}; + const AxisSpec axisTrackEtaStrange{cEtaBinsStrange, -0.8, 0.8, "#etaStrange"}; const AxisSpec axisTrackDcaXY{60, -0.15, 0.15, "DCA_{XY}"}; const AxisSpec axisTrackDcaZ{230, -1.15, 1.15, "DCA_{XY}"}; const AxisSpec axisTrackdEdx{360, 20, 200, "#frac{dE}{dx}"}; @@ -1003,37 +1071,37 @@ struct FlowEventPlane { if (doprocessChargedFlow) { histos.add("TrackQA/hPtDcaXY", "DCA_{XY} vs p_{T}", kTH2F, {axisTrackPt, axisTrackDcaXY}); histos.add("TrackQA/hPtDcaZ", "DCA_{Z} vs p_{T}", kTH2F, {axisTrackPt, axisTrackDcaZ}); - histos.add("TrackQA/hTrackTPCdEdX", "hTrackTPCdEdX", kTH2F, {axisMomPID, axisdEdx}); - histos.add("DF/hAQu", "u_{x}X^{A}_{1} + u_{y}Y^{A}_{1}", kTProfile2D, {axisCent, axisTrackEta}); - histos.add("DF/hCQu", "u_{x}X^{C}_{1} + u_{y}Y^{C}_{1}", kTProfile2D, {axisCent, axisTrackEta}); - histos.add("DF/hAQuPos", "u_{x}X^{A}_{1} + u_{y}Y^{A}_{1}", kTProfile2D, {axisCent, axisTrackEta}); - histos.add("DF/hCQuPos", "u_{x}X^{C}_{1} + u_{y}Y^{C}_{1}", kTProfile2D, {axisCent, axisTrackEta}); - histos.add("DF/hAQuNeg", "u_{x}X^{A}_{1} + u_{y}Y^{A}_{1}", kTProfile2D, {axisCent, axisTrackEta}); - histos.add("DF/hCQuNeg", "u_{x}X^{C}_{1} + u_{y}Y^{C}_{1}", kTProfile2D, {axisCent, axisTrackEta}); + histos.add("TrackQA/hTrackTPCdEdX", "hTrackTPCdEdX", kTH2F, {axisTrackpTPC, axisdEdx}); + histos.add("DF/hAQu", "u_{x}X^{A}_{1} + u_{y}Y^{A}_{1}", kTProfile2D, {axisVarCent, axisTrackEtaCharged}); + histos.add("DF/hCQu", "u_{x}X^{C}_{1} + u_{y}Y^{C}_{1}", kTProfile2D, {axisVarCent, axisTrackEtaCharged}); + histos.add("DF/hAQuPos", "u_{x}X^{A}_{1} + u_{y}Y^{A}_{1}", kTProfile2D, {axisVarCent, axisTrackEtaCharged}); + histos.add("DF/hCQuPos", "u_{x}X^{C}_{1} + u_{y}Y^{C}_{1}", kTProfile2D, {axisVarCent, axisTrackEtaCharged}); + histos.add("DF/hAQuNeg", "u_{x}X^{A}_{1} + u_{y}Y^{A}_{1}", kTProfile2D, {axisVarCent, axisTrackEtaCharged}); + histos.add("DF/hCQuNeg", "u_{x}X^{C}_{1} + u_{y}Y^{C}_{1}", kTProfile2D, {axisVarCent, axisTrackEtaCharged}); } // Identified hadrons if (doprocessIdFlow) { - histos.add("PartId/Pion/hdEdX", "dE/dx vs pT", kTH2F, {axisMomPID, axisTrackdEdx}); - histos.add("PartId/Pion/hTOFSignal", "#beta_{TOF} vs p_{T}", kTH2F, {axisMomPID, axisTrackTofSignal}); - histos.add("PartId/Pion/hTPCNSigma", "n#sigma_{TPC} vs p_{T}", kTH2F, {axisMomPID, axisTrackNSigma}); - histos.add("PartId/Pion/hTOFNSigma", "n#sigma_{TOF} vs p_{T}", kTH2F, {axisMomPID, axisTrackNSigma}); - histos.add("PartId/Pion/hAQuPos", "PartId/Pion/hAQuPos", kTProfile2D, {axisCent, axisTrackEta}); - histos.add("PartId/Pion/hAQuNeg", "PartId/Pion/hAQuNeg", kTProfile2D, {axisCent, axisTrackEta}); - histos.add("PartId/Pion/hCQuPos", "PartId/Pion/hCQuPos", kTProfile2D, {axisCent, axisTrackEta}); - histos.add("PartId/Pion/hCQuNeg", "PartId/Pion/hCQuNeg", kTProfile2D, {axisCent, axisTrackEta}); + histos.add("PartId/Pion/hdEdX", "dE/dx vs pT", kTH2F, {axisTrackpTPC, axisTrackdEdx}); + histos.add("PartId/Pion/hTOFSignal", "#beta_{TOF} vs p_{T}", kTH2F, {axisTrackpTOF, axisTrackTofSignal}); + histos.add("PartId/Pion/hTPCNSigma", "n#sigma_{TPC} vs p_{T}", kTH2F, {axisTrackpTPC, axisTrackNSigma}); + histos.add("PartId/Pion/hTOFNSigma", "n#sigma_{TOF} vs p_{T}", kTH2F, {axisTrackpTOF, axisTrackNSigma}); + histos.add("PartId/Pion/hAQuPos", "PartId/Pion/hAQuPos", kTProfile2D, {axisVarCent, axisTrackEtaHadrons}); + histos.add("PartId/Pion/hAQuNeg", "PartId/Pion/hAQuNeg", kTProfile2D, {axisVarCent, axisTrackEtaHadrons}); + histos.add("PartId/Pion/hCQuPos", "PartId/Pion/hCQuPos", kTProfile2D, {axisVarCent, axisTrackEtaHadrons}); + histos.add("PartId/Pion/hCQuNeg", "PartId/Pion/hCQuNeg", kTProfile2D, {axisVarCent, axisTrackEtaHadrons}); histos.addClone("PartId/Pion/", "PartId/Kaon/"); histos.addClone("PartId/Pion/", "PartId/Proton/"); } // Resonance if (doprocessResoFlow) { - histos.add("Reso/Phi/hSigCentEtaInvMass", "hUSCentEtaInvMass", kTH3F, {axisCent, axisTrackEta, axisPhiInvMass}); - histos.add("Reso/Phi/hBkgCentEtaInvMass", "hLSCentEtaInvMass", kTH3F, {axisCent, axisTrackEta, axisPhiInvMass}); - histos.add("Reso/Phi/Sig/hQuA", "hPhiQuA", kTProfile3D, {axisCent, axisTrackEta, axisPhiInvMass}); - histos.add("Reso/Phi/Sig/hQuC", "hPhiQuC", kTProfile3D, {axisCent, axisTrackEta, axisPhiInvMass}); - histos.add("Reso/Phi/Bkg/hQuA", "hPhiQuA", kTProfile3D, {axisCent, axisTrackEta, axisPhiInvMass}); - histos.add("Reso/Phi/Bkg/hQuC", "hPhiQuC", kTProfile3D, {axisCent, axisTrackEta, axisPhiInvMass}); + histos.add("Reso/Phi/hBkgCentEtaInvMass", "hLSCentEtaInvMass", kTH3F, {axisVarCent, axisTrackEtaStrange, axisPhiInvMass}); + histos.add("Reso/Phi/hSigCentEtaInvMass", "hUSCentEtaInvMass", kTH3F, {axisVarCent, axisTrackEtaStrange, axisPhiInvMass}); + histos.add("Reso/Phi/Sig/hQuA", "hPhiQuA", kTProfile3D, {axisVarCent, axisTrackEtaStrange, axisPhiInvMass}); + histos.add("Reso/Phi/Sig/hQuC", "hPhiQuC", kTProfile3D, {axisVarCent, axisTrackEtaStrange, axisPhiInvMass}); + histos.add("Reso/Phi/Bkg/hQuA", "hPhiQuA", kTProfile3D, {axisVarCent, axisTrackEtaStrange, axisPhiInvMass}); + histos.add("Reso/Phi/Bkg/hQuC", "hPhiQuC", kTProfile3D, {axisVarCent, axisTrackEtaStrange, axisPhiInvMass}); } // Lambda @@ -1053,14 +1121,14 @@ struct FlowEventPlane { histos.add("V0/Lambda/QA/hPosNsigPiVsP", "TPC n#sigma Pos Prong", kTH2F, {axisMomPID, axisNsigma}); histos.add("V0/Lambda/QA/hNegNsigPiVsP", "TPC n#sigma Neg Prong", kTH2F, {axisMomPID, axisNsigma}); histos.addClone("V0/Lambda/", "V0/K0Short/"); - histos.add("V0/Lambda/hMassVsRap", "hMassVsRap", kTH3F, {axisCent, axisTrackEta, axisLambdaInvMass}); - histos.add("V0/Lambda/Flow/hQuA", "hQuA", kTProfile3D, {axisCent, axisTrackEta, axisLambdaInvMass}); - histos.add("V0/Lambda/Flow/hQuC", "hQuC", kTProfile3D, {axisCent, axisTrackEta, axisLambdaInvMass}); + histos.add("V0/Lambda/hMassVsRap", "hMassVsRap", kTH3F, {axisVarCent, axisTrackEtaStrange, axisLambdaInvMass}); + histos.add("V0/Lambda/Flow/hQuA", "hQuA", kTProfile3D, {axisVarCent, axisTrackEtaStrange, axisLambdaInvMass}); + histos.add("V0/Lambda/Flow/hQuC", "hQuC", kTProfile3D, {axisVarCent, axisTrackEtaStrange, axisLambdaInvMass}); histos.addClone("V0/Lambda/", "V0/AntiLambda/"); histos.addClone("V0/Lambda/", "V0/LambdaAntiLambda/"); - histos.add("V0/K0Short/hMassVsRap", "hMassVsRap", kTH3F, {axisCent, axisTrackEta, axisK0ShortInvMass}); - histos.add("V0/K0Short/Flow/hQuA", "hQuA", kTProfile3D, {axisCent, axisTrackEta, axisK0ShortInvMass}); - histos.add("V0/K0Short/Flow/hQuC", "hQuC", kTProfile3D, {axisCent, axisTrackEta, axisK0ShortInvMass}); + histos.add("V0/K0Short/hMassVsRap", "hMassVsRap", kTH3F, {axisVarCent, axisTrackEtaStrange, axisK0ShortInvMass}); + histos.add("V0/K0Short/Flow/hQuA", "hQuA", kTProfile3D, {axisVarCent, axisTrackEtaStrange, axisK0ShortInvMass}); + histos.add("V0/K0Short/Flow/hQuC", "hQuC", kTProfile3D, {axisVarCent, axisTrackEtaStrange, axisK0ShortInvMass}); } } @@ -1091,23 +1159,23 @@ struct FlowEventPlane { float tpcNsigma = 0., tofNsigma = 0.; for (auto const& track : tracks) { static constexpr auto SubDir = std::array{"Pion/", "Kaon/", "Proton/"}; - if (part == kPi && track.pt() > cMinPtPi) { + if (part == kPi) { tpcNsigma = track.tpcNSigmaPi(); tofNsigma = track.tofNSigmaPi(); - } else if (part == kKa && track.pt() > cMinPtKa) { + } else if (part == kKa) { tpcNsigma = track.tpcNSigmaKa(); tofNsigma = track.tofNSigmaKa(); - } else if (part == kPr && track.pt() > cMinPtPr) { + } else if (part == kPr) { tpcNsigma = track.tpcNSigmaPr(); tofNsigma = track.tofNSigmaPr(); } else { return; } - histos.fill(HIST("PartId/") + HIST(SubDir[part]) + HIST("hdEdX"), track.pt(), track.tpcSignal()); - histos.fill(HIST("PartId/") + HIST(SubDir[part]) + HIST("hTPCNSigma"), track.pt(), tpcNsigma); + histos.fill(HIST("PartId/") + HIST(SubDir[part]) + HIST("hdEdX"), track.tpcInnerParam(), track.tpcSignal()); + histos.fill(HIST("PartId/") + HIST(SubDir[part]) + HIST("hTPCNSigma"), track.tpcInnerParam(), tpcNsigma); if (track.hasTOF()) { - histos.fill(HIST("PartId/") + HIST(SubDir[part]) + HIST("hTOFSignal"), track.pt(), track.beta()); - histos.fill(HIST("PartId/") + HIST(SubDir[part]) + HIST("hTOFNSigma"), track.pt(), tofNsigma); + histos.fill(HIST("PartId/") + HIST(SubDir[part]) + HIST("hTOFSignal"), track.tofExpMom(), track.beta()); + histos.fill(HIST("PartId/") + HIST(SubDir[part]) + HIST("hTOFNSigma"), track.tofExpMom(), tofNsigma); } // Directed flow @@ -1276,7 +1344,7 @@ struct FlowEventPlane { // Fill track QA histos.fill(HIST("TrackQA/hPtDcaZ"), track.pt(), track.dcaZ()); histos.fill(HIST("TrackQA/hPtDcaXY"), track.pt(), track.dcaXY()); - histos.fill(HIST("TrackQA/hTrackTPCdEdX"), track.pt(), track.tpcSignal()); + histos.fill(HIST("TrackQA/hTrackTPCdEdX"), track.tpcInnerParam(), track.tpcSignal()); // Get directed flow ux = std::cos(track.phi()); From 1231d32cee09cf99dcf536e45e6534613235628b Mon Sep 17 00:00:00 2001 From: samtaarora1154-art Date: Wed, 25 Nov 2026 21:02:10 +0530 Subject: [PATCH 2/3] Update flowEventPlane.cxx Added Particle Identification selection cuts on TPC inner wall momentum and TOF Expected Momentum From 3caf1726dbae198ba9341791482c0acf8b54cd62 Mon Sep 17 00:00:00 2001 From: samtaarora1154-art Date: Wed, 25 Nov 2026 21:30:55 +0530 Subject: [PATCH 3/3] Update flowEventPlane.cxx --- PWGCF/Flow/Tasks/flowEventPlane.cxx | 149 +++++++++++++++++++--------- 1 file changed, 104 insertions(+), 45 deletions(-) diff --git a/PWGCF/Flow/Tasks/flowEventPlane.cxx b/PWGCF/Flow/Tasks/flowEventPlane.cxx index 788cbdc7a01..6630c8d3b59 100644 --- a/PWGCF/Flow/Tasks/flowEventPlane.cxx +++ b/PWGCF/Flow/Tasks/flowEventPlane.cxx @@ -76,7 +76,7 @@ DECLARE_SOA_COLUMN(ZncEnergyCommon, zncEnergyCommon, float); DECLARE_SOA_COLUMN(ZnaEnergy, znaEnergy, std::vector); DECLARE_SOA_COLUMN(ZncEnergy, zncEnergy, std::vector); } // namespace colspcalib -DECLARE_SOA_TABLE(ColSpCalib, "AOD", "COLSPCALIB", o2::soa::Index<>, +DECLARE_SOA_TABLE(ColSpCalibs, "AOD", "COLSPCALIB", o2::soa::Index<>, colspcalib::RunNumber, colspcalib::Timestamp, colspcalib::Cent, @@ -88,6 +88,18 @@ DECLARE_SOA_TABLE(ColSpCalib, "AOD", "COLSPCALIB", o2::soa::Index<>, colspcalib::ZnaEnergy, colspcalib::ZncEnergy); +using ColSpCalib = ColSpCalibs::iterator; + +namespace trackspcalib +{ +DECLARE_SOA_INDEX_COLUMN(ColSpCalib, colSpCalib); +} // namespace trackspcalib +DECLARE_SOA_TABLE(TrackSpCalib, "AOD", "TRACKSPCALIB", o2::soa::Index<>, + trackspcalib::ColSpCalibId, + aod::track::Pt, + aod::track::Eta, + aod::track::Phi); + namespace colspext { DECLARE_SOA_COLUMN(SelColFlag, selColFlag, bool); @@ -159,7 +171,8 @@ enum V0Type { struct SpCalibTableProducer { // Table producer - Produces colSpCalibTable; + Produces colSpCalibTable; + Produces trackSPCalibTable; // Configurables // Collisions @@ -171,13 +184,23 @@ struct SpCalibTableProducer { Configurable cSel8Trig{"cSel8Trig", true, "Sel8 (T0A + T0C) Selection Run3"}; Configurable cPileupReject{"cPileupReject", true, "Pileup rejection"}; Configurable cZVtxTimeDiff{"cZVtxTimeDiff", true, "z-vtx time diff selection"}; + Configurable cNoCollInTimeRangeStd{"cNoCollInTimeRangeStd", true, "No of collision in time range standard"}; + Configurable cIsITSTPCVtx{"cIsITSTPCVtx", true, "ITS-TPC Vertex"}; Configurable cIsGoodITSLayers{"cIsGoodITSLayers", true, "Good ITS Layers All"}; Configurable cMinOccupancy{"cMinOccupancy", 0, "Minimum FT0C Occupancy"}; - Configurable cMaxOccupancy{"cMaxOccupancy", 1e6, "Maximum FT0C Occupancy"}; + Configurable cMaxOccupancy{"cMaxOccupancy", 1e4, "Maximum FT0C Occupancy"}; Configurable capplyTdcCut{"capplyTdcCut", false, "Flag for TDC cut"}; Configurable ctdcZnMin{"ctdcZnMin", -2.5, "Min ZN TDC cut"}; Configurable ctdcZnMax{"ctdcZnMax", 2.5, "Max ZN TDC cut"}; + // Tracks + Configurable cTrackMinPt{"cTrackMinPt", 0.1, "p_{T} minimum"}; + Configurable cTrackMaxPt{"cTrackMaxPt", 10.0, "p_{T} maximum"}; + Configurable cTrackEtaCut{"cTrackEtaCut", 0.8, "Pseudorapidity cut"}; + Configurable cTrackGlobal{"cTrackGlobal", true, "Global Track"}; + Configurable cTrackDcaXYCut{"cTrackDcaXYCut", 0.1, "DcaXY Cut"}; + Configurable cTrackDcaZCut{"cTrackDcaZCut", 1., "DcaXY Cut"}; + // Histogram Registry. HistogramRegistry histos{"histos", {}, OutputObjHandlingPolicy::AnalysisObject}; @@ -187,9 +210,10 @@ struct SpCalibTableProducer { void init(InitContext const&) { - // Histogram collision + // Histogram collisions and tracks histos.add("hCent", "Centrality", kTH1F, {{cCentBins, 0., 100., "FT0C%"}}); histos.add("hVz", "V_{z}", kTH1F, {{100, -10., 10., "V_{z}(cm)"}}); + histos.add("hPt", "pT", kTH1F, {{200, 0, 20, "p_{T}(GeV/#it{c})"}}); } template @@ -208,7 +232,7 @@ struct SpCalibTableProducer { return false; } - if (col.ft0cOccupancyInTimeRange() < cMinOccupancy || col.ft0cOccupancyInTimeRange() > cMaxOccupancy) { // Occupancy cut + if (col.trackOccupancyInTimeRange() < cMinOccupancy || col.trackOccupancyInTimeRange() > cMaxOccupancy) { // Occupancy cut return false; } @@ -220,6 +244,14 @@ struct SpCalibTableProducer { return false; } + if (cNoCollInTimeRangeStd && !col.selection_bit(aod::evsel::kNoCollInTimeRangeStandard)) { // No collision in standard time range + return false; + } + + if (cIsITSTPCVtx && !col.selection_bit(aod::evsel::kIsVertexITSTPC)) { // ITS+TPC vertex + return false; + } + if (cIsGoodITSLayers && !col.selection_bit(aod::evsel::kIsGoodITSLayersAll)) { // All ITS layer active return false; } @@ -244,8 +276,27 @@ struct SpCalibTableProducer { return true; } - template - void analyzeCollision(B const& bc, C const& collision) + // Track Selection + template + bool selectTrack(T const& track) + { + if (track.pt() <= cTrackMinPt || track.pt() >= cTrackMaxPt || std::abs(track.eta()) >= cTrackEtaCut) { + return false; + } + + if (cTrackGlobal && !track.isGlobalTrackWoDCA()) { + return false; + } + + if (std::abs(track.dcaXY()) >= cTrackDcaXYCut || std::abs(track.dcaZ()) >= cTrackDcaZCut) { + return false; + } + + return true; + } + + template + void analyzeCollision(B const& bc, C const& collision, T const& tracks) { // Check zdc if (!bc.has_zdc()) { @@ -282,22 +333,31 @@ struct SpCalibTableProducer { histos.fill(HIST("hCent"), cent); histos.fill(HIST("hVz"), posZ); colSpCalibTable(runNum, timestamp, cent, posX, posY, posZ, znaEnergyCommon, zncEnergyCommon, znaEnergy, zncEnergy); + + for (auto const& track : tracks) { + if (!selectTrack(track)) { + continue; + } + histos.fill(HIST("hPt"), track.pt()); + trackSPCalibTable(colSpCalibTable.lastIndex(), track.pt(), track.eta(), track.phi()); + } } using BCsRun3 = soa::Join; using CollisionsRun3 = soa::Join; + using Tracks = soa::Join; void processDummy(CollisionsRun3::iterator const&) {} PROCESS_SWITCH(SpCalibTableProducer, processDummy, "Dummy process", true); - void processFEP(CollisionsRun3::iterator const& collision, BCsRun3 const&, aod::Zdcs const&) + void processFEP(CollisionsRun3::iterator const& collision, BCsRun3 const&, aod::Zdcs const&, Tracks const& tracks) { // Get bunch crossing auto bc = collision.template foundBC_as(); runNum = collision.template foundBC_as().runNumber(); timestamp = collision.template foundBC_as().timestamp(); - analyzeCollision(bc, collision); + analyzeCollision(bc, collision, tracks); } PROCESS_SWITCH(SpCalibTableProducer, processFEP, "Flow Event Plane Table Producer", false); @@ -318,9 +378,11 @@ struct SpectatorPlaneTableProducer { Configurable cSel8Trig{"cSel8Trig", true, "Sel8 (T0A + T0C) Selection Run3"}; Configurable cPileupReject{"cPileupReject", true, "Pileup rejection"}; Configurable cZVtxTimeDiff{"cZVtxTimeDiff", true, "z-vtx time diff selection"}; + Configurable cNoCollInTimeRangeStd{"cNoCollInTimeRangeStd", true, "No of collision in time range standard"}; + Configurable cIsITSTPCVtx{"cIsITSTPCVtx", true, "ITS-TPC Vertex"}; Configurable cIsGoodITSLayers{"cIsGoodITSLayers", true, "Good ITS Layers All"}; Configurable cMinOccupancy{"cMinOccupancy", 0, "Minimum FT0C Occupancy"}; - Configurable cMaxOccupancy{"cMaxOccupancy", 1e6, "Maximum FT0C Occupancy"}; + Configurable cMaxOccupancy{"cMaxOccupancy", 1e4, "Maximum FT0C Occupancy"}; Configurable capplyTdcCut{"capplyTdcCut", false, "Flag for TDC cut"}; Configurable ctdcZnMin{"ctdcZnMin", -2.5, "Min ZN TDC cut"}; Configurable ctdcZnMax{"ctdcZnMax", 2.5, "Max ZN TDC cut"}; @@ -368,15 +430,9 @@ struct SpectatorPlaneTableProducer { Configurable cTpcRejCut{"cTpcRejCut", 3, "TPC Rej Cut"}; Configurable cTofNSigmaCut{"cTofNSigmaCut", 2, "TOF NSigma Cut"}; Configurable cTofRejCut{"cTofRejCut", 3, "TOF Rej Cut"}; - Configurable cPionPtpcMin{"cPionPtpcMin", 0.1, "Pion Minimum momentum"}; - Configurable cPionPtpcMax{"cPionPtpcMax", 0.6, "Pion pTPC cutoff"}; - Configurable cPionPtofMax{"cPionPtofMax", 2.5, "Pion Maximum momentum"}; - Configurable cKaonPtpcMin{"cKaonPtpcMin", 0.25, "Kaon Minimum momentum"}; - Configurable cKaonPtpcMax{"cKaonPtpcMax", 0.6, "Kaon pTPC cutoff"}; - Configurable cKaonPtofMax{"cKaonPtofMax", 2.5, "Kaon Maximum momentum"}; - Configurable cProtonPtpcMin{"cProtonPtpcMin", 0.6, "Proton Minimum momentum"}; - Configurable cProtonPtpcMax{"cProtonPtpcMax", 1.0, "Proton pTPC cutoff"}; - Configurable cProtonPtofMax{"cProtonPtofMax", 5.0, "Proton Maximum momentum"}; + Configurable cPionPtCut{"cPionPtCut", 0.6, "Pion TPC pT cutoff"}; + Configurable cKaonPtCut{"cKaonPtCut", 0.6, "Kaon TPC pT cutoff"}; + Configurable cProtonPtCut{"cProtonPtCut", 1.1, "Proton TPC pT cutoff"}; // Initialize CCDB Service Service ccdbService{}; @@ -522,7 +578,7 @@ struct SpectatorPlaneTableProducer { return false; } - if (col.ft0cOccupancyInTimeRange() < cMinOccupancy || col.ft0cOccupancyInTimeRange() > cMaxOccupancy) { // Occupancy cut + if (col.trackOccupancyInTimeRange() < cMinOccupancy || col.trackOccupancyInTimeRange() > cMaxOccupancy) { // Occupancy cut return false; } @@ -534,6 +590,14 @@ struct SpectatorPlaneTableProducer { return false; } + if (cNoCollInTimeRangeStd && !col.selection_bit(aod::evsel::kNoCollInTimeRangeStandard)) { // No collision in standard time range + return false; + } + + if (cIsITSTPCVtx && !col.selection_bit(aod::evsel::kIsVertexITSTPC)) { // ITS+TPC vertex + return false; + } + if (cIsGoodITSLayers && !col.selection_bit(aod::evsel::kIsGoodITSLayersAll)) { // All ITS layer active return false; } @@ -872,16 +936,15 @@ struct SpectatorPlaneTableProducer { } template - bool checkTrackPid(float const& PtpcMinCut, float const& PtpcMaxCut, float const& PtofMaxCut, float const& Ptpc, float const& Ptof, std::vector const& vTpcNsig, std::vector const& vTofNsig, bool const& tofFlag) + bool checkTrackPid(float const& ptCut, float const& trackPt, std::vector const& vTpcNsig, std::vector const& vTofNsig, bool const& tofFlag) { - bool retFlag = false; - if (tofFlag && Ptpc > PtpcMinCut && Ptof < PtofMaxCut) { + if (tofFlag) { if (vTofNsig[part1] < cTofNSigmaCut && vTofNsig[part2] > cTofRejCut && vTofNsig[part3] > cTofRejCut && vTpcNsig[part1] < cTpcNSigmaCut) { retFlag = true; } } else { - if (Ptpc > PtpcMinCut && Ptpc < PtpcMaxCut && vTpcNsig[part1] < cTpcNSigmaCut && vTpcNsig[part2] > cTpcRejCut && vTpcNsig[part3] > cTpcRejCut) { + if (trackPt < ptCut && vTpcNsig[part1] < cTpcNSigmaCut && vTpcNsig[part2] > cTpcRejCut && vTpcNsig[part3] > cTpcRejCut) { retFlag = true; } } @@ -897,22 +960,20 @@ struct SpectatorPlaneTableProducer { } // Pion, Kaon, Proton Identification - std::vector vPtpcMinCut = {cPionPtpcMin, cKaonPtpcMin, cProtonPtpcMin}; - std::vector vPtpcMaxCut = {cPionPtpcMax, cKaonPtpcMax, cProtonPtpcMax}; - std::vector vPtofMaxCut = {cPionPtofMax, cKaonPtofMax, cProtonPtofMax}; + std::vector vPtCut = {cPionPtCut, cKaonPtCut, cProtonPtCut}; std::vector vTpcNsig = {std::abs(track.tpcNSigmaPi()), std::abs(track.tpcNSigmaKa()), std::abs(track.tpcNSigmaPr())}; std::vector vTofNsig = {std::abs(track.tofNSigmaPi()), std::abs(track.tofNSigmaKa()), std::abs(track.tofNSigmaPr())}; if (partType == kPi) { - return checkTrackPid(vPtpcMinCut[kPi], vPtpcMaxCut[kPi], vPtofMaxCut[kPi], track.tpcInnerParam(), track.tofExpMom(), vTpcNsig, vTofNsig, track.hasTOF()); + return checkTrackPid(vPtCut[kPi], track.pt(), vTpcNsig, vTofNsig, track.hasTOF()); } if (partType == kKa) { - return checkTrackPid(vPtpcMinCut[kKa], vPtpcMaxCut[kKa], vPtofMaxCut[kKa], track.tpcInnerParam(), track.tofExpMom(), vTpcNsig, vTofNsig, track.hasTOF()); + return checkTrackPid(vPtCut[kKa], track.pt(), vTpcNsig, vTofNsig, track.hasTOF()); } if (partType == kPr) { - return checkTrackPid(vPtpcMinCut[kPr], vPtpcMaxCut[kPr], vPtofMaxCut[kPr], track.tpcInnerParam(), track.tofExpMom(), vTpcNsig, vTofNsig, track.hasTOF()); + return checkTrackPid(vPtCut[kPr], track.pt(), vTpcNsig, vTofNsig, track.hasTOF()); } return false; @@ -1040,8 +1101,6 @@ struct FlowEventPlane { const AxisSpec axisV1{400, -4, 4, "v_{1}"}; const AxisSpec axisTrackPt{100, 0., 10., "p_{T} (GeV/#it{c})"}; - const AxisSpec axisTrackpTOF(100, 0, 5, "p_{TOF} (GeV/#it{c})"); - const AxisSpec axisTrackpTPC(80, 0, 4, "p_{TPC} (GeV/#it{c})"); const AxisSpec axisTrackEtaCharged{cEtaBinsCharged, -0.8, 0.8, "#etaCharged"}; const AxisSpec axisTrackEtaHadrons{cEtaBinsHadrons, -0.8, 0.8, "#etaHadrons"}; const AxisSpec axisTrackEtaStrange{cEtaBinsStrange, -0.8, 0.8, "#etaStrange"}; @@ -1071,7 +1130,7 @@ struct FlowEventPlane { if (doprocessChargedFlow) { histos.add("TrackQA/hPtDcaXY", "DCA_{XY} vs p_{T}", kTH2F, {axisTrackPt, axisTrackDcaXY}); histos.add("TrackQA/hPtDcaZ", "DCA_{Z} vs p_{T}", kTH2F, {axisTrackPt, axisTrackDcaZ}); - histos.add("TrackQA/hTrackTPCdEdX", "hTrackTPCdEdX", kTH2F, {axisTrackpTPC, axisdEdx}); + histos.add("TrackQA/hTrackTPCdEdX", "hTrackTPCdEdX", kTH2F, {axisMomPID, axisdEdx}); histos.add("DF/hAQu", "u_{x}X^{A}_{1} + u_{y}Y^{A}_{1}", kTProfile2D, {axisVarCent, axisTrackEtaCharged}); histos.add("DF/hCQu", "u_{x}X^{C}_{1} + u_{y}Y^{C}_{1}", kTProfile2D, {axisVarCent, axisTrackEtaCharged}); histos.add("DF/hAQuPos", "u_{x}X^{A}_{1} + u_{y}Y^{A}_{1}", kTProfile2D, {axisVarCent, axisTrackEtaCharged}); @@ -1082,10 +1141,10 @@ struct FlowEventPlane { // Identified hadrons if (doprocessIdFlow) { - histos.add("PartId/Pion/hdEdX", "dE/dx vs pT", kTH2F, {axisTrackpTPC, axisTrackdEdx}); - histos.add("PartId/Pion/hTOFSignal", "#beta_{TOF} vs p_{T}", kTH2F, {axisTrackpTOF, axisTrackTofSignal}); - histos.add("PartId/Pion/hTPCNSigma", "n#sigma_{TPC} vs p_{T}", kTH2F, {axisTrackpTPC, axisTrackNSigma}); - histos.add("PartId/Pion/hTOFNSigma", "n#sigma_{TOF} vs p_{T}", kTH2F, {axisTrackpTOF, axisTrackNSigma}); + histos.add("PartId/Pion/hdEdX", "dE/dx vs pT", kTH2F, {axisMomPID, axisTrackdEdx}); + histos.add("PartId/Pion/hTOFSignal", "#beta_{TOF} vs p_{T}", kTH2F, {axisMomPID, axisTrackTofSignal}); + histos.add("PartId/Pion/hTPCNSigma", "n#sigma_{TPC} vs p_{T}", kTH2F, {axisMomPID, axisTrackNSigma}); + histos.add("PartId/Pion/hTOFNSigma", "n#sigma_{TOF} vs p_{T}", kTH2F, {axisMomPID, axisTrackNSigma}); histos.add("PartId/Pion/hAQuPos", "PartId/Pion/hAQuPos", kTProfile2D, {axisVarCent, axisTrackEtaHadrons}); histos.add("PartId/Pion/hAQuNeg", "PartId/Pion/hAQuNeg", kTProfile2D, {axisVarCent, axisTrackEtaHadrons}); histos.add("PartId/Pion/hCQuPos", "PartId/Pion/hCQuPos", kTProfile2D, {axisVarCent, axisTrackEtaHadrons}); @@ -1159,23 +1218,23 @@ struct FlowEventPlane { float tpcNsigma = 0., tofNsigma = 0.; for (auto const& track : tracks) { static constexpr auto SubDir = std::array{"Pion/", "Kaon/", "Proton/"}; - if (part == kPi) { + if (part == kPi && track.pt() > cMinPtPi) { tpcNsigma = track.tpcNSigmaPi(); tofNsigma = track.tofNSigmaPi(); - } else if (part == kKa) { + } else if (part == kKa && track.pt() > cMinPtKa) { tpcNsigma = track.tpcNSigmaKa(); tofNsigma = track.tofNSigmaKa(); - } else if (part == kPr) { + } else if (part == kPr && track.pt() > cMinPtPr) { tpcNsigma = track.tpcNSigmaPr(); tofNsigma = track.tofNSigmaPr(); } else { return; } - histos.fill(HIST("PartId/") + HIST(SubDir[part]) + HIST("hdEdX"), track.tpcInnerParam(), track.tpcSignal()); - histos.fill(HIST("PartId/") + HIST(SubDir[part]) + HIST("hTPCNSigma"), track.tpcInnerParam(), tpcNsigma); + histos.fill(HIST("PartId/") + HIST(SubDir[part]) + HIST("hdEdX"), track.pt(), track.tpcSignal()); + histos.fill(HIST("PartId/") + HIST(SubDir[part]) + HIST("hTPCNSigma"), track.pt(), tpcNsigma); if (track.hasTOF()) { - histos.fill(HIST("PartId/") + HIST(SubDir[part]) + HIST("hTOFSignal"), track.tofExpMom(), track.beta()); - histos.fill(HIST("PartId/") + HIST(SubDir[part]) + HIST("hTOFNSigma"), track.tofExpMom(), tofNsigma); + histos.fill(HIST("PartId/") + HIST(SubDir[part]) + HIST("hTOFSignal"), track.pt(), track.beta()); + histos.fill(HIST("PartId/") + HIST(SubDir[part]) + HIST("hTOFNSigma"), track.pt(), tofNsigma); } // Directed flow @@ -1344,7 +1403,7 @@ struct FlowEventPlane { // Fill track QA histos.fill(HIST("TrackQA/hPtDcaZ"), track.pt(), track.dcaZ()); histos.fill(HIST("TrackQA/hPtDcaXY"), track.pt(), track.dcaXY()); - histos.fill(HIST("TrackQA/hTrackTPCdEdX"), track.tpcInnerParam(), track.tpcSignal()); + histos.fill(HIST("TrackQA/hTrackTPCdEdX"), track.pt(), track.tpcSignal()); // Get directed flow ux = std::cos(track.phi());