Skip to content

Commit f891ce4

Browse files
committed
update the test scripts
1 parent 2abb0ef commit f891ce4

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ int External() {
7474
std::sort(pdgsDecayAntiPart.begin(), pdgsDecayAntiPart.end());
7575

7676
for (auto &decay : checkHadronDecays[std::abs(pdg)]) {
77+
std::sort(decay.begin(), decay.end());
7778
if (pdgsDecay == decay || pdgsDecayAntiPart == decay) {
7879
nSignalGoodDecay++;
7980
break;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
int External() {
22
std::string path{"o2sim_Kine.root"};
33

4-
int checkPdgQuarkOne = 4;
4+
int checkPdgQuark{4};
55

66
int checkPdgHadron{4332};
77
int checkHadronDecays{3334};
@@ -46,7 +46,7 @@ int External() {
4646
for (int j{track.getFirstDaughterTrackId()}; j <= track.getLastDaughterTrackId(); ++j) {
4747
auto pdgDau = tracks->at(j).GetPdgCode();
4848
if (std::abs(pdgDau) == checkHadronDecays) {
49-
nSignalGoodDecay;
49+
nSignalGoodDecay++;
5050
break;
5151
}
5252
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ int External() {
7474
std::sort(pdgsDecayAntiPart.begin(), pdgsDecayAntiPart.end());
7575

7676
for (auto &decay : checkHadronDecays[std::abs(pdg)]) {
77+
std::sort(decay.begin(), decay.end());
7778
if (pdgsDecay == decay || pdgsDecayAntiPart == decay) {
7879
nSignalGoodDecay++;
7980
break;

0 commit comments

Comments
 (0)