Skip to content

Commit 6103d1a

Browse files
Update PDG code checks for K0Short particle
1 parent 4004c84 commit 6103d1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGLF/Tasks/QC/v0cascadesqa.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ struct v0cascadesQA {
508508
}
509509
auto v0mcparticle = v0.mcParticle();
510510
Int_t lPDG = 0;
511-
if (TMath::Abs(v0mcparticle.pdgCode()) == 310 || TMath::Abs(v0mcparticle.pdgCode()) == PDG_t::kLambda0) {
511+
if (TMath::Abs(v0mcparticle.pdgCode()) == PDG_t::kK0Short || TMath::Abs(v0mcparticle.pdgCode()) == PDG_t::kLambda0) {
512512
lPDG = v0mcparticle.pdgCode();
513513
}
514514

@@ -522,7 +522,7 @@ struct v0cascadesQA {
522522
TMath::Abs(v0.dcanegtopv()) > V0_dcanegtopv) {
523523

524524
// K0Short
525-
if (lPDG == 310) {
525+
if (lPDG == PDG_t::kK0Short) {
526526
if (TMath::Abs(v0.yK0Short()) < V0_rapidity && CtauK0s < lifetimecut->get("lifetimecutK0S")) {
527527
histos_V0.fill(HIST("InvMassK0STrue"), v0.pt(), v0.v0radius(), v0.mK0Short());
528528
}

0 commit comments

Comments
 (0)