From 88bd225fe99f228297498a5746e15b39531c5cdb Mon Sep 17 00:00:00 2001 From: Yuanjun Mei Date: Fri, 4 Dec 2026 17:16:29 +0100 Subject: [PATCH] Add several new histograms and cuts --- .../Tasks/multiparticleCorrelationsMei.cxx | 168 +++++++++++------- 1 file changed, 100 insertions(+), 68 deletions(-) diff --git a/PWGCF/MultiparticleCorrelations/Tasks/multiparticleCorrelationsMei.cxx b/PWGCF/MultiparticleCorrelations/Tasks/multiparticleCorrelationsMei.cxx index ffcb6e24833..a42269e8632 100644 --- a/PWGCF/MultiparticleCorrelations/Tasks/multiparticleCorrelationsMei.cxx +++ b/PWGCF/MultiparticleCorrelations/Tasks/multiparticleCorrelationsMei.cxx @@ -128,6 +128,8 @@ enum EEventCuts { eOccupancyCut, eCorrCentCut, eMultNContribCut, + eCorrRefMultCut, + eCentRefMultCut, eEventCuts_N }; @@ -198,9 +200,9 @@ enum EMiscHistograms { }; enum EObservables { - eV22 = 0, - eV22Gap, - eV24, + eV22Cent = 0, + eV22GapCent, + eV24Cent, eV22Mult, eV24Mult, eV32Mult, @@ -233,7 +235,7 @@ static constexpr std::array WeightsNames = {" static constexpr std::array CutsNames = {"eBefore", "eAfter"}; static constexpr std::array CutsTitles = {"before", "after"}; -static constexpr std::array ObservablesNames = {"eV22", "eV22Gap", "eV24", "eV22Mult", "eV24Mult", "eV32Mult", "eV42Mult", "eV34Mult", "eV44Mult"}; +static constexpr std::array ObservablesNames = {"eV22Cent", "eV22GapCent", "eV24Cent", "eV22Mult", "eV24Mult", "eV32Mult", "eV42Mult", "eV34Mult", "eV44Mult"}; static constexpr std::array ObservablesTitles = {"v_{2}^{2}", "v_{2}^{2} with eta gap", "v_{2}^{4}", "v_{2}^{2}", "v_{2}^{4}", "v_{3}^{2}", "v_{4}^{2}", "v_{3}^{4}", "v_{4}^{4}"}; static constexpr std::array IntValNames = {"eIntVal2", "eIntVal3", "eIntVal4"}; @@ -253,7 +255,7 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to // *) Define configurables: Configurable cfDryRun{"cfDryRun", false, "book all histos and run without filling and calculating anything"}; Configurable cfCentralityEstimator{"cfCentralityEstimator", 0, "centrality estimator: 0=FT0C, 1=FT0M, 2=FV0A, 3=NTPV"}; - Configurable cfMultiplicityTables{"cfMultiplicityTables", 2, "multiplicity tables: 0=multTPC, 1=multFV0M, 2=multFT0C, 3=multFT0M, 4=multNTracksPV"}; + Configurable cfMultiplicityTables{"cfMultiplicityTables", 2, "multiplicity tables: 0=multTPC (broken for pass5), 1=multFV0A, 2=multFT0C, 3=multFT0M, 4=multNTracksPV"}; Configurable cfOccupancyEstimator{"cfOccupancyEstimator", 0, "occupancy estimator: 0=trackOccupancyInTimeRange, 1=ft0cOccupancyInTimeRange"}; // *) External root files @@ -263,7 +265,7 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to // *) Binnings Configurable> cfCentBins{"cfCentBins", {100, 0., 100.}, "Centrality bins: nCentBins, centMin, centMax"}; Configurable> cfMultBins{"cfMultBins", {300, 0., 20000.}, "Multiplicity bins: nMultBins, multMin, multMax"}; - Configurable> cfRefMultBins{"cfRefMultBins", {400, 0., 25000.}, "Reference mult bins: nMultBins, multMin, multMax"}; + Configurable> cfRefMultBins{"cfRefMultBins", {300, 0., 60000., 400, 0., 250000., 400, 0., 60000., 400, 0., 30000., 400, 0., 30000.}, "Reference mult bins: nMultBins, multMin, multMax for [multTPC, multFV0A, multFT0C, multFT0M, multNTracksPV]"}; Configurable> cfNumContribBins{"cfNumContribBins", {400, 0., 8000.}, "Number of contributors bins: nBinsContrib, contribMin, contribMax"}; Configurable> cfVxBins{"cfVxBins", {500, -0.04, 0.04}, "Vertex X hist: nVxBins, vxMin, vxMax"}; Configurable> cfVyBins{"cfVyBins", {500, -0.015, 0.015}, "Vertex Y hist: nVyBins, vyMin, vyMax"}; @@ -276,37 +278,40 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to Configurable> cfEtaBins{"cfEtaBins", {800, -3., 3.}, "nEtaBins, etaMin, etaMax"}; Configurable> cfTpcNClsFoundBins{"cfTpcNClsFoundBins", {160, 0., 160.}, "nNumClusterBins, numClusterMin, numClusterMax"}; Configurable> cfItsNClsBins{"cfItsNClsBins", {10, 0., 10.}, "nItsNClsBins, ItsNClsMin, ItsNClsMax"}; - Configurable> cfDcaXyBins{"cfDcaXyBins", {500, -7., 7.}, "nDcaXyBins, DcaXyMin, DcaXyMax"}; - Configurable> cfDcaZBins{"cfDcaZBins", {500, -7., 7.}, "nDcaZBins, DcaZMin, DcaZMax"}; + Configurable> cfDcaXyBins{"cfDcaXyBins", {500, -5., 5.}, "nDcaXyBins, DcaXyMin, DcaXyMax"}; + Configurable> cfDcaZBins{"cfDcaZBins", {500, -5., 5.}, "nDcaZBins, DcaZMin, DcaZMax"}; Configurable> cfItsChi2NClBins{"cfItsChi2NClBins", {300, 0., 80.}, "nItsChi2NClBins, ItsChi2NClMin, ItsChi2NClMax"}; Configurable> cfTpcChi2NClBins{"cfTpcChi2NClBins", {300, 0., 80.}, "nTpcChi2NClBins, TpcChi2NClMin, TpcChi2NClMax"}; - Configurable> cfTpcNClsCrossedRowsBins{"cfTpcNClsCrossedRowsBins", {100, 0., 200.}, "nTpcNClsCrossedRowsBins, TpcNClsCrossedRowsMin, TpcNClsCrossedRowsMax"}; + Configurable> cfTpcNClsCrossedRowsBins{"cfTpcNClsCrossedRowsBins", {160, 0., 160.}, "nTpcNClsCrossedRowsBins, TpcNClsCrossedRowsMin, TpcNClsCrossedRowsMax"}; - Configurable> cfQaSelTrackBins{"cfQaSelTrackBins", {500, 0., 15000., 150, 0., 500.}, "bins for hist of selected tracks of QA: {nQASelTrackBinsBefore, minBefore, MaxBefore, nQASelTrackBinsAfter, minAfter, MaxAfter}"}; + Configurable> cfQaSelTrackBins{"cfQaSelTrackBins", {500, 0., 15000., 500, 0., 1000.}, "bins for hist of selected tracks of QA: {nQASelTrackBinsBefore, minBefore, MaxBefore, nQASelTrackBinsAfter, minAfter, MaxAfter}"}; Configurable> cfObsSelTrackBins{"cfObsSelTrackBins", {300, 0., 15000., 20, 0., 3000.}, "Seleted track bins for obs prof: nObsSelTrackBinsBefore, ObsSelTrackMinBefore, ObsSelTrackMaxBefore, nObsSelTrackBinsAfter, ObsSelTrackMinAfter, ObsSelTrackMaxAfter, before is only used for QA, and after is used for obs and QA"}; // *) Cuts Configurable cfMasterCutSwitch{"cfMasterCutSwitch", true, "switch on or off all cuts"}; // event level cuts - Configurable> cfEventCutSwitch{"cfEventCutSwitch", {"1Sel8", "1IsGoodITSLayersAll", "1NoCollInTimeRangeStandard", "1NoCollInRofStandard", "1IsGoodZvtxFT0vsPV", "1NoHighMultCollInPrevRof", "1Centrality", "1VertexZ", "1Occupancy", "1CorrCent", "1MultNContribCut", "1NoSameBunchPileUp", "1IsVertexITSTPC", "1NContrib"}, "event cuts switch, on and off by the first number before name. The ordering of the config also controls the ordering of the cuts"}; + Configurable> cfEventCutSwitch{"cfEventCutSwitch", {"1Sel8", "1IsGoodITSLayersAll", "1NoCollInTimeRangeStandard", "1NoCollInRofStandard", "1IsGoodZvtxFT0vsPV", "1NoHighMultCollInPrevRof", "1Centrality", "1VertexZ", "1Occupancy", "1CorrCent", "1MultNContrib", "1NoSameBunchPileUp", "1IsVertexITSTPC", "1NContrib", "1CorrRefMult", "1CentRefMult"}, "event cuts switch, on and off by the first number before name. The ordering of the config also controls the ordering of the cuts"}; Configurable> cfVertexZCutRange{"cfVertexZCutRange", {-10., 10.}, "vertex z position range: {min, max}[cm], with convention: min <= Vz <= max"}; Configurable> cfCentCutRange{"cfCentCutRange", {0., 80.}, "centrality range: {min, max}, with convention: min <= cent <= max"}; Configurable cfNContribCutInf{"cfNContribCutInf", 2, "cuts on number of tracks used for the vertex, only numContrib > cfNContribCutInf survives"}; Configurable cfOccupancyCutSup{"cfOccupancyCutSup", 6000, "cuts on occupancy, only occupancy < cfOccupancyCutSup survives"}; Configurable> cfCorrCent{"cfCorrCent", {0, 2}, "choose the pair of centrality estimators for cut: 0=FT0C, 1=FT0M, 2=FV0A, 3=NTPV"}; + Configurable> cfCorrRefMult{"cfCorrRefMult", {1, 2}, "choose the pair of multiplicity tables for cut: 0=multTPC (broken for pass5), 1=multFV0A, 2=multFT0C, 3=multFT0M, 4=multNTracksPV"}; Configurable cfCorrCentCutPercentage{"cfCorrCentCutPercentage", 15., "correlation cut on centrality, only |cent1 - cent2| <= cfCorrCentCutPercentage survives"}; Configurable> cfMultNContribBound{"cfMultNContribBound", {"0.19*x + 320", "0.056*x - 324"}, "geometric cuts on correlation of mult vs. nContrib switch, convention {upper bound, lower bound}"}; + Configurable> cfCorrRefMultBound{"cfCorrRefMultBound", {"0.19*x + 320", "0.056*x - 324"}, "geometric cuts on correlation of ref mult vs. ref mult switch, convention {upper bound, lower bound}"}; + Configurable> cfCentRefMultBound{"cfCentRefMultBound", {"0.19*x + 320", "0.056*x - 324"}, "geometric cuts on correlation of ref mult vs. centrality switch, convention {upper bound, lower bound}"}; // particle level cuts - Configurable> cfParticleCutSwitch{"cfParticleCutSwitch", {"1Pt", "1Eta", "1TpcNClsFound", "1DcaXy", "1DcaZ", "1ItsNCls", "1Charge", "1TpcNClsCrossedRows", "1TpcChi2NClCut", "1ItsChi2NClCut"}, "particle cuts switch, on and off by the first number before name. The ordering of the config also controls the ordering of the cuts"}; + Configurable> cfParticleCutSwitch{"cfParticleCutSwitch", {"1Pt", "1Eta", "1TpcNClsFound", "1DcaXy", "1DcaZ", "1ItsNCls", "1Charge", "1TpcNClsCrossedRows", "1TpcChi2NCl", "1ItsChi2NCl"}, "particle cuts switch, on and off by the first number before name. The ordering of the config also controls the ordering of the cuts"}; Configurable> cfPtCutRange{"cfPtCutRange", {0.2, 5.}, "pt cut range: {min, max}[GeV/c], with convention: min <= pt <= max"}; Configurable> cfEtaCutRange{"cfEtaCutRange", {-0.8, 0.8}, "eta cut range: {min, max}, with convention: min <= eta <= max"}; - Configurable cfTpcNumClusterCutInf{"cfTpcNumClusterCutInf", 80, "inf of cut on the number of found TPC clusters associated with a reconstructed track, with convention: cfTpcNumClusterCutInf <= TpcNClsFound"}; - Configurable cfItsNClsInf{"cfItsNClsInf", 5, "inf of cut on the number of found ITS clusters associated with a reconstructed track: {min, max}, with convention: cfItsNClsInf <= itsNCls"}; - Configurable cfTpcNClsCrossedRowsInf{"cfTpcNClsCrossedRowsInf", 70, "inf of cut on the number of crossed TPC Rows associated with a reconstructed track: {min, max}, with convention: cfTpcNClsCrossedRowsInf <= tpcNClsCrossedRows"}; - Configurable> cfDcaXyCutRange{"cfDcaXyCutRange", {-3.2, 3.2}, "range of cut on signed transverse distance of closest approach between the reconstructed track and the primary interaction vertex in x-y plane: {min, max}, with convention: min <= dcaXY <= max"}; - Configurable> cfDcaZCutRange{"cfDcaZCutRange", {-2.4, 2.4}, "range of cut on signed transverse distance of closest approach between the reconstructed track and the primary interaction vertex in z direction: {min, max}, with convention: min <= dcaZ <= max"}; + Configurable cfTpcNClsFoundInf{"cfTpcNClsFoundInf", 80, "inf of cut on the number of found TPC clusters associated with a reconstructed track, with convention: cfTpcNClsFoundInf <= TpcNClsFound"}; + Configurable cfItsNClsInf{"cfItsNClsInf", 5, "inf of cut on the number of found ITS clusters associated with a reconstructed track, with convention: cfItsNClsInf <= itsNCls"}; + Configurable cfTpcNClsCrossedRowsInf{"cfTpcNClsCrossedRowsInf", 70, "inf of cut on the number of crossed TPC Rows associated with a reconstructed track, with convention: cfTpcNClsCrossedRowsInf <= tpcNClsCrossedRows"}; + Configurable> cfDcaXyCutRange{"cfDcaXyCutRange", {-2.4, 2.4}, "range of cut on signed transverse distance of closest approach between the reconstructed track and the primary interaction vertex in x-y plane: {min, max}, with convention: min <= dcaXY <= max"}; + Configurable> cfDcaZCutRange{"cfDcaZCutRange", {-3.2, 3.2}, "range of cut on signed transverse distance of closest approach between the reconstructed track and the primary interaction vertex in z direction: {min, max}, with convention: min <= dcaZ <= max"}; Configurable cfTpcChi2NClSup{"cfTpcChi2NClSup", 4., "sup of cut on the Chi2 / cluster for the TPC track segment associated with a reconstructed track, with convention: cfTpcChi2NClSup < TpcChi2NCl"}; Configurable cfItsChi2NClSup{"cfItsChi2NClSup", 36., "sup of cut on the Chi2 / cluster for the ITS track segment associated with a reconstructed track, with convention: cfItsChi2NClSup < ItsChi2NCl"}; @@ -334,7 +339,10 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to std::vector fVertexZCutRange = {-10., 10.}; std::vector fCentCutRange = {0., 80.}; std::vector fCorrCent = {0, 2}; - std::vector fMultNContribBound; + std::vector fCorrRefMult = {1, 2}; + std::vector fMultNContribBounds; + std::vector fCorrRefMultBounds; + std::vector fCentRefMultBounds; std::vector fParticleCutSwitch; std::vector fParticleCutOrdering; @@ -353,7 +361,7 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to int fOccupancyEstimator = 0; int fNContribCutInf = 2; int fOccupancyCutSup = 6000; - int fTpcNumClusterCutInf = 70; + int fTpcNClsFoundInf = 70; int fTpcNClsCrossedRowsInf = 70; int fItsNClsInf = 5; int fRngSeed = 0; @@ -394,8 +402,10 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to std::array fHistCentralityRecSim{}; std::array fHistMultNContrib{}; std::array fHistCorrCent{}; + std::array fHistCorrRefMult{}; std::array fHistSelTrackHighCent{}; std::array fHistSelTrackLowCent{}; + std::array fHistCentRefMult{}; static constexpr float SelTrackCentInf = 50.f; static constexpr float SelTrackCentSup = 80.f; } qa; @@ -409,6 +419,8 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to struct GeometricCuts { // eUpperLowerBounds_N std::array fMultNContribBounds{}; + std::array fCorrRefMultBounds{}; + std::array fCentRefMultBounds{}; } geoCuts; struct InternalValidation { @@ -794,6 +806,22 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to doNotPassCut = (thisNContrib < lower || thisNContrib > upper); break; } + case eCorrRefMultCut: { + auto refMult1 = chooseMult(collision, tc.fCorrRefMult[0]); + auto refMult2 = chooseMult(collision, tc.fCorrRefMult[1]); + auto upper = geoCuts.fCorrRefMultBounds[eUpper]->Eval(refMult1); + auto lower = geoCuts.fCorrRefMultBounds[eLower]->Eval(refMult1); + doNotPassCut = (refMult2 < lower || refMult2 > upper); + break; + } + case eCentRefMultCut: { + auto thisRefMult = chooseMult(collision, tc.fMultiplicityTables); + auto thisCent = chooseCent(collision, tc.fCentralityEstimator); + auto upper = geoCuts.fCentRefMultBounds[eUpper]->Eval(thisRefMult); + auto lower = geoCuts.fCentRefMultBounds[eLower]->Eval(thisRefMult); + doNotPassCut = (thisCent < lower || thisCent > upper); + break; + } } // end of switch (i) { if (doNotPassCut) { @@ -931,7 +959,7 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to } break; case eTpcNClsFoundCut: - doNotPassCut = (track.tpcNClsFound() < tc.fTpcNumClusterCutInf); + doNotPassCut = (track.tpcNClsFound() < tc.fTpcNClsFoundInf); break; case eDcaXyCut: doNotPassCut = (track.dcaXY() < tc.fDcaXyCutRange[0] || track.dcaXY() > tc.fDcaXyCutRange[1]); @@ -1048,10 +1076,14 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to if (thisCent >= 0. && thisCent <= qa.SelTrackCentInf) { qa.fHistSelTrackLowCent[eBefore]->Fill(tracks.size(), thisCent); } + qa.fHistCentRefMult[eBefore]->Fill(thisRefMult, thisCent); + qa.fHistCorrRefMult[eBefore]->Fill(chooseMult(collision, tc.fCorrRefMult[0]), chooseMult(collision, tc.fCorrRefMult[1])); } if constexpr (cuts == eAfter) { qa.fHistMultNContrib[eAfter]->Fill(thisRefMult, collision.numContrib()); qa.fHistCorrCent[eAfter]->Fill(cent1, cent2); + qa.fHistCentRefMult[eAfter]->Fill(thisRefMult, thisCent); + qa.fHistCorrRefMult[eAfter]->Fill(chooseMult(collision, tc.fCorrRefMult[0]), chooseMult(collision, tc.fCorrRefMult[1])); } } @@ -1212,34 +1244,16 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to result = two(qVecTableReal, harmonic22); if (noneZeroDenom(result)) { - obs.fProfCorr[eV22][eRec]->Fill(thisCollCentReal, (result[0] / result[1].Re()).Re()); - obs.fProfCorr[eV22Mult][eRec]->Fill(nPassedTrackReal, (result[0] / result[1].Re()).Re()); + obs.fProfCorr[eV22Cent][eRec]->Fill(thisCollCentReal, (result[0] / result[1].Re()).Re()); } result = recursion(4, qVecTableReal, harmonic24); if (noneZeroDenom(result)) { - obs.fProfCorr[eV24][eRec]->Fill(thisCollCentReal, (result[0] / result[1].Re()).Re()); - obs.fProfCorr[eV24Mult][eRec]->Fill(nPassedTrackReal, (result[0] / result[1].Re()).Re()); - } - result = two(qVecTableReal, harmonic32); - if (noneZeroDenom(result)) { - obs.fProfCorr[eV32Mult][eRec]->Fill(nPassedTrackReal, (result[0] / result[1].Re()).Re()); - } - result = two(qVecTableReal, harmonic42); - if (noneZeroDenom(result)) { - obs.fProfCorr[eV42Mult][eRec]->Fill(nPassedTrackReal, (result[0] / result[1].Re()).Re()); - } - result = recursion(4, qVecTableReal, harmonic34); - if (noneZeroDenom(result)) { - obs.fProfCorr[eV34Mult][eRec]->Fill(nPassedTrackReal, (result[0] / result[1].Re()).Re()); - } - result = recursion(4, qVecTableReal, harmonic44); - if (noneZeroDenom(result)) { - obs.fProfCorr[eV44Mult][eRec]->Fill(nPassedTrackReal, (result[0] / result[1].Re()).Re()); + obs.fProfCorr[eV24Cent][eRec]->Fill(thisCollCentReal, (result[0] / result[1].Re()).Re()); } resultGap = {static_cast((qVecABReal[0] * qVecABReal[1]).Re()), weightABReal[0] * weightABReal[1]}; if (resultGap[1] != 0) { - obs.fProfCorr[eV22Gap][eRec]->Fill(thisCollCentReal, resultGap[0] / resultGap[1]); + obs.fProfCorr[eV22GapCent][eRec]->Fill(thisCollCentReal, resultGap[0] / resultGap[1]); } if constexpr (rs == eSim || rs == eRecAndSim) { @@ -1248,12 +1262,12 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to result = two(qVecTableMC, harmonic22); if (noneZeroDenom(result)) { - obs.fProfCorr[eV22][eSim]->Fill(thisCollCentMC, (result[0] / result[1].Re()).Re()); + obs.fProfCorr[eV22Cent][eSim]->Fill(thisCollCentMC, (result[0] / result[1].Re()).Re()); obs.fProfCorr[eV22Mult][eSim]->Fill(nPassedTrackMC, (result[0] / result[1].Re()).Re()); } result = recursion(4, qVecTableMC, harmonic24); if (noneZeroDenom(result)) { - obs.fProfCorr[eV24][eSim]->Fill(thisCollCentMC, (result[0] / result[1].Re()).Re()); + obs.fProfCorr[eV24Cent][eSim]->Fill(thisCollCentMC, (result[0] / result[1].Re()).Re()); obs.fProfCorr[eV24Mult][eSim]->Fill(nPassedTrackMC, (result[0] / result[1].Re()).Re()); } result = two(qVecTableMC, harmonic32); @@ -1275,7 +1289,7 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to resultGap = {static_cast((qVecABMC[0] * qVecABMC[1]).Re()), weightABMC[0] * weightABMC[1]}; if (resultGap[1] != 0) { - obs.fProfCorr[eV22Gap][eSim]->Fill(thisCollCentMC, resultGap[0] / resultGap[1]); + obs.fProfCorr[eV22GapCent][eSim]->Fill(thisCollCentMC, resultGap[0] / resultGap[1]); } } // end of if constexpr (rs == eRecAndSim) { @@ -1332,13 +1346,16 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to tc.fNContribCutInf = cfNContribCutInf; tc.fOccupancyCutSup = cfOccupancyCutSup; tc.fCorrCent = cfCorrCent.value; + tc.fCorrRefMult = cfCorrRefMult.value; tc.fCorrCentCutPercentage = cfCorrCentCutPercentage; - tc.fMultNContribBound = cfMultNContribBound.value; + tc.fMultNContribBounds = cfMultNContribBound.value; + tc.fCorrRefMultBounds = cfCorrRefMultBound.value; + tc.fCentRefMultBounds = cfCentRefMultBound.value; tc.fParticleCutSwitch = cfParticleCutSwitch.value; tc.fPtCutRange = cfPtCutRange.value; tc.fEtaCutRange = cfEtaCutRange.value; - tc.fTpcNumClusterCutInf = cfTpcNumClusterCutInf; + tc.fTpcNClsFoundInf = cfTpcNClsFoundInf; tc.fItsNClsInf = cfItsNClsInf; tc.fTpcNClsCrossedRowsInf = cfTpcNClsCrossedRowsInf; tc.fDcaXyCutRange = cfDcaXyCutRange.value; @@ -1382,8 +1399,12 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to tc.fEventCutOrdering.push_back(static_cast(eOccupancyCut)); } else if (cutSwitch.ends_with("CorrCent")) { tc.fEventCutOrdering.push_back(static_cast(eCorrCentCut)); - } else if (cutSwitch.ends_with("MultNContribCut")) { + } else if (cutSwitch.ends_with("MultNContrib")) { tc.fEventCutOrdering.push_back(static_cast(eMultNContribCut)); + } else if (cutSwitch.ends_with("CorrRefMult")) { + tc.fEventCutOrdering.push_back(static_cast(eCorrRefMultCut)); + } else if (cutSwitch.ends_with("CentRefMult")) { + tc.fEventCutOrdering.push_back(static_cast(eCentRefMultCut)); } } @@ -1404,9 +1425,9 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to tc.fParticleCutOrdering.push_back(static_cast(eItsNClsCut)); } else if (cutSwitch.ends_with("TpcNClsCrossedRows")) { tc.fParticleCutOrdering.push_back(static_cast(eTpcNClsCrossedRowsCut)); - } else if (cutSwitch.ends_with("TpcChi2NClCut")) { + } else if (cutSwitch.ends_with("TpcChi2NCl")) { tc.fParticleCutOrdering.push_back(static_cast(eTpcChi2NClCut)); - } else if (cutSwitch.ends_with("ItsChi2NClCut")) { + } else if (cutSwitch.ends_with("ItsChi2NCl")) { tc.fParticleCutOrdering.push_back(static_cast(eItsChi2NClCut)); } } @@ -1529,7 +1550,7 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to std::vector> lEventHistBins(eEventHistograms_N); lEventHistBins[eHistCentrality] = cfCentBins.value; lEventHistBins[eHistMult] = cfMultBins.value; - lEventHistBins[eHistRefMult] = cfRefMultBins.value; + lEventHistBins[eHistRefMult] = {cfRefMultBins.value[tc.fMultiplicityTables * 3], cfRefMultBins.value[tc.fMultiplicityTables * 3 + 1], cfRefMultBins.value[tc.fMultiplicityTables * 3 + 2]}; lEventHistBins[eHistVertexX] = cfVxBins.value; lEventHistBins[eHistVertexY] = cfVyBins.value; lEventHistBins[eHistVertexZ] = cfVzBins.value; @@ -1594,15 +1615,13 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to if (doprocessRec || doprocessRecSim) { for (int i = 0; i < eObservables_N; ++i) { if (i == eV22Mult || i == eV24Mult || i == eV32Mult || i == eV42Mult || i == eV34Mult || i == eV44Mult) { - obs.fProfCorr[i][eRec] = new TProfile(Form("[%s][eRec]", ObservablesNames[i]), Form("%s for Reconstructed Data after Cuts", ObservablesTitles[i]), static_cast(fObsSelTrackBins[3]), fObsSelTrackBins[4], fObsSelTrackBins[5]); - obs.fProfCorr[i][eRec]->GetXaxis()->SetTitle("Number of selected tracks"); + continue; } else { obs.fProfCorr[i][eRec] = new TProfile(Form("[%s][eRec]", ObservablesNames[i]), Form("%s for Reconstructed Data after Cuts", ObservablesTitles[i]), nDefaultCentBins, defaultCentBoundaries.data()); obs.fProfCorr[i][eRec]->GetXaxis()->SetTitle(Form("Centrality (%s)", CentralityEstimatorNames[tc.fCentralityEstimator])); } obs.fProfCorr[i][eRec]->GetYaxis()->SetTitle(ObservablesTitles[i]); obs.fProfCorr[i][eRec]->SetStats(false); - obs.fProfCorr[i][eRec]->Sumw2(); obs.fObservablesList->Add(obs.fProfCorr[i][eRec]); } } @@ -1618,7 +1637,6 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to } obs.fProfCorr[i][eSim]->SetStats(false); obs.fProfCorr[i][eSim]->GetYaxis()->SetTitle(ObservablesTitles[i]); - obs.fProfCorr[i][eSim]->Sumw2(); obs.fObservablesList->Add(obs.fProfCorr[i][eSim]); } } @@ -1633,42 +1651,50 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to if (doprocessRec || doprocessRecSim) { const auto& nContribBins = lEventHistBins[eHistNumContrib]; const auto& refMultBins = lEventHistBins[eHistRefMult]; + const auto allRefMultBins = cfRefMultBins.value; + const auto& centBins = lEventHistBins[eHistCentrality]; + const std::vector qaSelTrackHighCentBoundaries = {50.f, 60.f, 70.f, 80.f}; + const std::vector qaSelTrackLowCentBoundaries = {0.f, 5.f, 10.f, 20.f, 30.f, 40.f, 50.f}; + const int nQaSelTrackHighCentBins = qaSelTrackHighCentBoundaries.size() - 1; + const int nQaSelTrackLowCentBins = qaSelTrackLowCentBoundaries.size() - 1; + std::vector lQASelTrackBins = cfQaSelTrackBins.value; + for (int i = 0; i < eBeforeAfterCuts_N; ++i) { qa.fHistMultNContrib[i] = new TH2F(Form("fHistMultNContrib[%s]", CutsNames[i]), Form("refMult vs. nContributors %s Cuts", CutsNames[i]), static_cast(refMultBins[0]), refMultBins[1], refMultBins[2], static_cast(nContribBins[0]), nContribBins[1], nContribBins[2]); qa.fHistMultNContrib[i]->GetXaxis()->SetTitle(Form("Reference Multiplicity (%s)", MultiplicityTablesNames[tc.fMultiplicityTables])); qa.fHistMultNContrib[i]->GetYaxis()->SetTitle("Number of contributors"); qa.fHistMultNContrib[i]->SetStats(false); qa.fQualityAssuranceList->Add(qa.fHistMultNContrib[i]); - } - const auto& centBins = lEventHistBins[eHistCentrality]; - for (int i = 0; i < eBeforeAfterCuts_N; ++i) { qa.fHistCorrCent[i] = new TH2F(Form("fHistCorrCent[%s]", CutsNames[i]), Form("Centrality (%s) vs. Centrality (%s) %s Cuts", CentralityEstimatorNames[tc.fCorrCent[0]], CentralityEstimatorNames[tc.fCorrCent[1]], CutsNames[i]), static_cast(centBins[0]), centBins[1], centBins[2], static_cast(centBins[0]), centBins[1], centBins[2]); qa.fHistCorrCent[i]->GetXaxis()->SetTitle(Form("Centrality (%s)", CentralityEstimatorNames[tc.fCorrCent[0]])); qa.fHistCorrCent[i]->GetYaxis()->SetTitle(Form("Centrality (%s)", CentralityEstimatorNames[tc.fCorrCent[1]])); qa.fHistCorrCent[i]->SetStats(false); qa.fQualityAssuranceList->Add(qa.fHistCorrCent[i]); - } - const std::vector qaSelTrackHighCentBoundaries = {50.f, 60.f, 70.f, 80.f}; - const std::vector qaSelTrackLowCentBoundaries = {0.f, 5.f, 10.f, 20.f, 30.f, 40.f, 50.f}; - const int nQaSelTrackHighCentBins = qaSelTrackHighCentBoundaries.size() - 1; - const int nQaSelTrackLowCentBins = qaSelTrackLowCentBoundaries.size() - 1; - std::vector lQASelTrackBins = cfQaSelTrackBins.value; - for (int i = 0; i < eBeforeAfterCuts_N; ++i) { qa.fHistSelTrackHighCent[i] = new TH2F(Form("fHistSelTrackHighCent[%s]", CutsNames[i]), Form("Selected Tracks in 50-80%% %s cuts", CutsNames[i]), static_cast(lQASelTrackBins[0 + i * 3]), lQASelTrackBins[1 + i * 3], lQASelTrackBins[2 + i * 3], nQaSelTrackHighCentBins, qaSelTrackHighCentBoundaries.data()); qa.fHistSelTrackHighCent[i]->GetXaxis()->SetTitle("Number of selected tracks"); qa.fHistSelTrackHighCent[i]->GetYaxis()->SetTitle(Form("Centrality (%s)", CentralityEstimatorNames[tc.fCentralityEstimator])); qa.fHistSelTrackHighCent[i]->SetStats(false); qa.fQualityAssuranceList->Add(qa.fHistSelTrackHighCent[i]); - } - for (int i = 0; i < eBeforeAfterCuts_N; ++i) { qa.fHistSelTrackLowCent[i] = new TH2F(Form("fHistSelTrackLowCent[%s]", CutsNames[i]), Form("Selected Tracks in 0-50%% %s cuts", CutsNames[i]), static_cast(fObsSelTrackBins[0]), fObsSelTrackBins[1 + i * 3], fObsSelTrackBins[2 + i * 3], nQaSelTrackLowCentBins, qaSelTrackLowCentBoundaries.data()); qa.fHistSelTrackLowCent[i]->GetXaxis()->SetTitle("Number of selected tracks"); qa.fHistSelTrackLowCent[i]->GetYaxis()->SetTitle(Form("Centrality (%s)", CentralityEstimatorNames[tc.fCentralityEstimator])); qa.fHistSelTrackLowCent[i]->SetStats(false); qa.fQualityAssuranceList->Add(qa.fHistSelTrackLowCent[i]); + + qa.fHistCentRefMult[i] = new TH2F(Form("fHistCentRefMult[%s]", CutsNames[i]), Form("Reference Multiplicity vs. Centrality %s cuts", CutsNames[i]), static_cast(refMultBins[0]), refMultBins[1], refMultBins[2], static_cast(centBins[0]), centBins[1], centBins[2]); + qa.fHistCentRefMult[i]->GetXaxis()->SetTitle(Form("Reference Multiplicity (%s)", MultiplicityTablesNames[tc.fMultiplicityTables])); + qa.fHistCentRefMult[i]->GetYaxis()->SetTitle(Form("Centrality (%s)", CentralityEstimatorNames[tc.fCentralityEstimator])); + qa.fHistCentRefMult[i]->SetStats(false); + qa.fQualityAssuranceList->Add(qa.fHistCentRefMult[i]); + + qa.fHistCorrRefMult[i] = new TH2F(Form("fHistCorrRefMult[%s]", CutsNames[i]), Form("Reference Multiplicity (%s) vs. Reference Multiplicity (%s) %s cuts", MultiplicityTablesNames[tc.fCorrRefMult[0]], MultiplicityTablesNames[tc.fCorrRefMult[1]], CutsNames[i]), static_cast(allRefMultBins[tc.fCorrRefMult[0] * 3]), allRefMultBins[tc.fCorrRefMult[0] * 3 + 1], allRefMultBins[tc.fCorrRefMult[0] * 3 + 2], static_cast(allRefMultBins[tc.fCorrRefMult[1] * 3]), allRefMultBins[tc.fCorrRefMult[1] * 3 + 1], allRefMultBins[tc.fCorrRefMult[1] * 3 + 2]); + qa.fHistCorrRefMult[i]->GetXaxis()->SetTitle(Form("Reference Multiplicity (%s)", MultiplicityTablesNames[tc.fCorrRefMult[0]])); + qa.fHistCorrRefMult[i]->GetYaxis()->SetTitle(Form("Reference Multiplicity (%s)", MultiplicityTablesNames[tc.fCorrRefMult[1]])); + qa.fHistCorrRefMult[i]->SetStats(false); + qa.fQualityAssuranceList->Add(qa.fHistCorrRefMult[i]); } } // end of if (doprocessRec || doprocessRecSim) { @@ -1707,8 +1733,14 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to } } - geoCuts.fMultNContribBounds[eUpper] = new TF1("fMultNContribBounds[eUpper]", tc.fMultNContribBound[eUpper].c_str(), lEventHistBins[eHistRefMult][1], lEventHistBins[eHistRefMult][2]); - geoCuts.fMultNContribBounds[eLower] = new TF1("fMultNContribBounds[eLower]", tc.fMultNContribBound[eLower].c_str(), lEventHistBins[eHistRefMult][1], lEventHistBins[eHistRefMult][2]); + geoCuts.fMultNContribBounds[eUpper] = new TF1("fMultNContribBounds[eUpper]", tc.fMultNContribBounds[eUpper].c_str(), lEventHistBins[eHistRefMult][1], lEventHistBins[eHistRefMult][2]); + geoCuts.fMultNContribBounds[eLower] = new TF1("fMultNContribBounds[eLower]", tc.fMultNContribBounds[eLower].c_str(), lEventHistBins[eHistRefMult][1], lEventHistBins[eHistRefMult][2]); + + geoCuts.fCorrRefMultBounds[eUpper] = new TF1("fCorrRefMultBounds[eUpper]", tc.fCorrRefMultBounds[eUpper].c_str(), lEventHistBins[eHistRefMult][1], lEventHistBins[eHistRefMult][2]); + geoCuts.fCorrRefMultBounds[eLower] = new TF1("fCorrRefMultBounds[eLower]", tc.fCorrRefMultBounds[eLower].c_str(), lEventHistBins[eHistRefMult][1], lEventHistBins[eHistRefMult][2]); + + geoCuts.fCentRefMultBounds[eUpper] = new TF1("fCentRefMultBounds[eUpper]", tc.fCentRefMultBounds[eUpper].c_str(), lEventHistBins[eHistRefMult][1], lEventHistBins[eHistRefMult][2]); + geoCuts.fCentRefMultBounds[eLower] = new TF1("fCentRefMultBounds[eLower]", tc.fCentRefMultBounds[eLower].c_str(), lEventHistBins[eHistRefMult][1], lEventHistBins[eHistRefMult][2]); } // end of void init(InitContext&) { // A) Process only reconstructed data: