You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PWGLF/Tasks/Resonances/xi1820Analysis.cxx
+7-9Lines changed: 7 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -103,8 +103,6 @@ struct Xi1820Analysis {
103
103
104
104
// Constants
105
105
staticconstexprfloat SmallMomentumDenominator = 1e-10f; // Small value to avoid division by zero
106
-
staticconstexprint PdgChargedXi1820 = 123314; // o2-linter: disable=pdg/explicit-code (Xi(1820) PDG code not available in PDG_t or o2::constants::physics::Pdg)
107
-
staticconstexprint PdgXi1820Zero = 123324; // o2-linter: disable=pdg/explicit-code (Xi(1820) PDG code not available in PDG_t or o2::constants::physics::Pdg)
108
106
staticconstexprint ExpectedDaughters = 2; // Expected number of daughters for two-body decay
109
107
110
108
// Axes
@@ -1116,7 +1114,7 @@ struct Xi1820Analysis {
1116
1114
}
1117
1115
1118
1116
ifconstexpr (IsMC) { // Calculate Acceptance x efficiency for "the particle" channel
1119
-
if (v0.motherPDG() != -PdgChargedXi1820 || kaon.motherPDG() != v0.motherPDG()) {
1117
+
if (v0.motherPDG() != -Pdg::kXi1820Minus || kaon.motherPDG() != v0.motherPDG()) {
1120
1118
continue;
1121
1119
}
1122
1120
if (kaon.pdgCode() != PDG_t::kKPlus || v0.pdgCode() != PDG_t::kLambda0Bar) {
@@ -1193,7 +1191,7 @@ struct Xi1820Analysis {
1193
1191
}
1194
1192
}
1195
1193
ifconstexpr (IsMC) { // Calculate Acceptance x efficiency for "the particle" channel
1196
-
if (v0.motherPDG() != PdgChargedXi1820 || kaon.motherPDG() != v0.motherPDG()) {
1194
+
if (v0.motherPDG() != Pdg::kXi1820Minus || kaon.motherPDG() != v0.motherPDG()) {
1197
1195
continue;
1198
1196
}
1199
1197
if (kaon.pdgCode() != PDG_t::kKMinus || v0.pdgCode() != PDG_t::kLambda0) {
@@ -1398,7 +1396,7 @@ struct Xi1820Analysis {
1398
1396
}
1399
1397
1400
1398
ifconstexpr (IsMC) { // Calculate Acceptance x efficiency
1401
-
if (lambda.motherPDG() != PdgXi1820Zero || k0s.motherPDG() != lambda.motherPDG()) {
1399
+
if (lambda.motherPDG() != Pdg::kXi1820Zero || k0s.motherPDG() != lambda.motherPDG()) {
1402
1400
continue;
1403
1401
}
1404
1402
if (std::abs(k0s.pdgCode()) != PDG_t::kK0Short || lambda.pdgCode() != PDG_t::kLambda0) {
@@ -1468,7 +1466,7 @@ struct Xi1820Analysis {
1468
1466
}
1469
1467
1470
1468
ifconstexpr (IsMC) { // Calculate Acceptance x efficiency
1471
-
if (lambda.motherPDG() != -PdgXi1820Zero || k0s.motherPDG() != lambda.motherPDG()) {
1469
+
if (lambda.motherPDG() != -Pdg::kXi1820Zero || k0s.motherPDG() != lambda.motherPDG()) {
1472
1470
continue;
1473
1471
}
1474
1472
if (std::abs(k0s.pdgCode()) != PDG_t::kK0Short || lambda.pdgCode() != PDG_t::kLambda0Bar) {
0 commit comments