Skip to content

Commit 0e593e3

Browse files
authored
PWGLF: Fixed bug on Phi mass axis (#6680)
1 parent 06ece6f commit 0e593e3

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

PWGLF/Tasks/Strangeness/phik0sanalysis.cxx

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,14 @@ namespace
5353
{
5454
static constexpr int nMultBin = 10;
5555

56-
constexpr float mPhi[nMultBin] = {};
56+
constexpr float flowmPhiInc[nMultBin] = {1.01074, 1.01073, 1.01072, 1.01074, 1.01075, 1.01074, 1.01075, 1.01074, 1.01073, 1.01074};
57+
constexpr float fupmPhiInc[nMultBin] = {1.02778, 1.02777, 1.02776, 1.02778, 1.02779, 1.02778, 1.02779, 1.02778, 1.02777, 1.02778};
58+
59+
constexpr float flowmPhiFCut[nMultBin] = {1.01072, 1.01073, 1.01072, 1.01074, 1.01075, 1.01076, 1.01076, 1.01076, 1.01075, 1.01073};
60+
constexpr float fupmPhiFCut[nMultBin] = {1.02776, 1.02777, 1.02776, 1.02778, 1.02779, 1.02778, 1.02778, 1.02778, 1.02779, 1.02777};
61+
62+
constexpr float flowmPhiSCut[nMultBin] = {1.01072, 1.01074, 1.01070, 1.01076, 1.01075, 1.01077, 1.01075, 1.01075, 1.01076, 1.01077};
63+
constexpr float fupmPhiSCut[nMultBin] = {1.02776, 1.02778, 1.02774, 1.02780, 1.02779, 1.02781, 1.02779, 1.02779, 1.02780, 1.02774};
5764

5865
static constexpr float multBin[nMultBin + 1] = {0.0, 1.0, 5.0, 10.0, 15.0, 20.0, 30.0, 40.0, 50.0, 70.0, 100.0};
5966

@@ -96,12 +103,12 @@ struct phik0shortanalysis {
96103

97104
// Configurables on Phi mass
98105
Configurable<int> nBins{"nBins", 50, "N bins in cfgPhimassaxis"};
99-
Configurable<std::vector<float>> lowmPhiInc{"lowmPhiInc", std::vector<float>{mPhi, mPhi + nMultBin}, "Lower limits on Phi mass Inclusive"};
100-
Configurable<std::vector<float>> upmPhiInc{"upmPhiInc", std::vector<float>{mPhi, mPhi + nMultBin}, "Upper limits on Phi mass Inclusive"};
101-
Configurable<std::vector<float>> lowmPhiFCut{"lowmPhiFCut", std::vector<float>{mPhi, mPhi + nMultBin}, "Lower limits on Phi mass First Cut"};
102-
Configurable<std::vector<float>> upmPhiFCut{"upmPhiFCut", std::vector<float>{mPhi, mPhi + nMultBin}, "Upper limits on Phi mass First Cut"};
103-
Configurable<std::vector<float>> lowmPhiSCut{"lowmPhiSCut", std::vector<float>{mPhi, mPhi + nMultBin}, "Lower limits on Phi mass Second Cut"};
104-
Configurable<std::vector<float>> upmPhiSCut{"upmPhiSCut", std::vector<float>{mPhi, mPhi + nMultBin}, "Upper limits on Phi mass Second Cut"};
106+
Configurable<std::vector<float>> lowmPhiInc{"lowmPhiInc", std::vector<float>{flowmPhiInc, flowmPhiInc + nMultBin}, "Lower limits on Phi mass Inclusive"};
107+
Configurable<std::vector<float>> upmPhiInc{"upmPhiInc", std::vector<float>{fupmPhiInc, fupmPhiInc + nMultBin}, "Upper limits on Phi mass Inclusive"};
108+
Configurable<std::vector<float>> lowmPhiFCut{"lowmPhiFCut", std::vector<float>{flowmPhiFCut, flowmPhiFCut + nMultBin}, "Lower limits on Phi mass First Cut"};
109+
Configurable<std::vector<float>> upmPhiFCut{"upmPhiFCut", std::vector<float>{fupmPhiFCut, fupmPhiFCut + nMultBin}, "Upper limits on Phi mass First Cut"};
110+
Configurable<std::vector<float>> lowmPhiSCut{"lowmPhiSCut", std::vector<float>{flowmPhiSCut, flowmPhiSCut + nMultBin}, "Lower limits on Phi mass Second Cut"};
111+
Configurable<std::vector<float>> upmPhiSCut{"upmPhiSCut", std::vector<float>{fupmPhiSCut, fupmPhiSCut + nMultBin}, "Upper limits on Phi mass Second Cut"};
105112

106113
// Configurables for phi selection
107114
Configurable<double> cMinPtcut{"cMinPtcut", 0.15, "Track minimum pt cut"};
@@ -149,7 +156,7 @@ struct phik0shortanalysis {
149156
for (int i = 0; i < nMultBin; i++) {
150157
cfgPhimassAxisInc.push_back({nBins, lowmPhiInc->at(i), upmPhiInc->at(i), "#it{M}_{inv} [GeV/#it{c}^{2}]"});
151158
cfgPhimassAxisFCut.push_back({nBins, lowmPhiFCut->at(i), upmPhiFCut->at(i), "#it{M}_{inv} [GeV/#it{c}^{2}]"});
152-
cfgPhimassAxisSCut.push_back({nBins, lowmPhiSCut->at(i), upmPhiFCut->at(i), "#it{M}_{inv} [GeV/#it{c}^{2}]"});
159+
cfgPhimassAxisSCut.push_back({nBins, lowmPhiSCut->at(i), upmPhiSCut->at(i), "#it{M}_{inv} [GeV/#it{c}^{2}]"});
153160
}
154161

155162
// Histograms

0 commit comments

Comments
 (0)