Skip to content

Commit fc535d5

Browse files
committed
correct the test files for pp, ppref and PbPb
1 parent b866290 commit fc535d5

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

MC/config/PWGHF/ini/tests/GeneratorHF_D2H_ccbar_and_bbbar_PbPb.C

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ int External() {
128128
for (int j{track.getFirstDaughterTrackId()}; j <= track.getLastDaughterTrackId(); ++j) {
129129
auto pdgDau = tracks->at(j).GetPdgCode();
130130
pdgsDecay.push_back(pdgDau);
131-
if (pdgDau != 333) { // phi is antiparticle of itself
131+
if (pdgDau != 333 && pdgDau != 111 && pdgDau != 221 && pdgDau != 113 && pdgDau != 225) { // phi is antiparticle of itself
132132
pdgsDecayAntiPart.push_back(-pdgDau);
133133
} else {
134134
pdgsDecayAntiPart.push_back(pdgDau);
@@ -139,6 +139,7 @@ int External() {
139139
std::sort(pdgsDecayAntiPart.begin(), pdgsDecayAntiPart.end());
140140

141141
for (auto &decay : checkHadronDecays[std::abs(pdg)]) {
142+
std::sort(decay.begin(), decay.end());
142143
if (pdgsDecay == decay || pdgsDecayAntiPart == decay) {
143144
nSignalGoodDecay++;
144145
break;

MC/config/PWGHF/ini/tests/GeneratorHF_D2H_ccbar_and_bbbar_gap5_Mode2.C

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ int External() {
2424
{-10311, 211}, // D+ -> Kbar0^*(1430)0, pi+
2525
{-313, 211}, // D+ -> Kbar^*(892)0, pi+
2626
{-321, 211, 211, 111}, // D+ -> K-, pi+, pi+, pi0
27-
{333, 211}, // D+ -> phi(1020)0, pi+
27+
{333, 211}, // D+ -> phi(1020)0, pi+
2828
{-313, 321}, // D+ -> Kbar^*(892)0, K+
2929
{-10311, 321}, // D+ -> Kbar0^*(1430)0, K+
3030
{-321, 321, 211}, // D+ -> K-, K+, pi+
@@ -127,7 +127,7 @@ int External() {
127127
for (int j{track.getFirstDaughterTrackId()}; j <= track.getLastDaughterTrackId(); ++j) {
128128
auto pdgDau = tracks->at(j).GetPdgCode();
129129
pdgsDecay.push_back(pdgDau);
130-
if (pdgDau != 333) { // phi is antiparticle of itself
130+
if (pdgDau != 333 && pdgDau != 111 && pdgDau != 221 && pdgDau != 113 && pdgDau != 225) { // phi is antiparticle of itself
131131
pdgsDecayAntiPart.push_back(-pdgDau);
132132
} else {
133133
pdgsDecayAntiPart.push_back(pdgDau);
@@ -138,6 +138,7 @@ int External() {
138138
std::sort(pdgsDecayAntiPart.begin(), pdgsDecayAntiPart.end());
139139

140140
for (auto &decay : checkHadronDecays[std::abs(pdg)]) {
141+
std::sort(decay.begin(), decay.end());
141142
if (pdgsDecay == decay || pdgsDecayAntiPart == decay) {
142143
nSignalGoodDecay++;
143144
break;

MC/config/PWGHF/ini/tests/GeneratorHF_D2H_ccbar_and_bbbar_gap5_Mode2_pp_ref.C

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ int External() {
3434
}},
3535

3636
{431, {
37-
{333, 211}, // Ds+ -> phi(1020)0, pi+
37+
{211, 333}, // Ds+ -> phi(1020)0, pi+
3838
{-313, 321}, // Ds+ -> Kbar^*(892)0, K+
3939
{333, 213}, // Ds+ -> phi(1020)0, rho(770)+
4040
{113, 211}, // Ds+ -> rho(770)0, pi+
@@ -127,7 +127,7 @@ int External() {
127127
for (int j{track.getFirstDaughterTrackId()}; j <= track.getLastDaughterTrackId(); ++j) {
128128
auto pdgDau = tracks->at(j).GetPdgCode();
129129
pdgsDecay.push_back(pdgDau);
130-
if (pdgDau != 333) { // phi is antiparticle of itself
130+
if (pdgDau != 333 && pdgDau != 111 && pdgDau != 221 && pdgDau != 113 && pdgDau != 225) { // phi is antiparticle of itself
131131
pdgsDecayAntiPart.push_back(-pdgDau);
132132
} else {
133133
pdgsDecayAntiPart.push_back(pdgDau);
@@ -138,6 +138,7 @@ int External() {
138138
std::sort(pdgsDecayAntiPart.begin(), pdgsDecayAntiPart.end());
139139

140140
for (auto &decay : checkHadronDecays[std::abs(pdg)]) {
141+
std::sort(decay.begin(), decay.end());
141142
if (pdgsDecay == decay || pdgsDecayAntiPart == decay) {
142143
nSignalGoodDecay++;
143144
break;

0 commit comments

Comments
 (0)