Skip to content

Commit 5557cb5

Browse files
committed
Added new PID method for kaon identification
1 parent 8063033 commit 5557cb5

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

PWGLF/Tasks/Resonances/doublephimeson.cxx

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,60 @@ struct doublephimeson {
510510
}
511511
}
512512
}
513+
if (PIDStrategy == 4) {
514+
// pT <= 0.5 GeV/c (TPC-only)
515+
if (ptcand <= 0.5f) {
516+
if (ptcand < 0.4f) {
517+
if (nsigmaTPC > -2.7f && nsigmaTPC < 2.3f)
518+
return true;
519+
} else {
520+
if (nsigmaTPC > -2.5f && nsigmaTPC < 2.5f)
521+
return true;
522+
}
523+
} else if (ptcand > 0.5f && ptcand < 1.0f) {
524+
// 0.5 < pT < 1.0 GeV/c
525+
if (TOFHit == 1) {
526+
if (TMath::Sqrt(nsigmaTPC * nsigmaTPC + nsigmaTOF * nsigmaTOF) < 2.5f)
527+
return true;
528+
} else {
529+
if (ptcand >= 0.5f && ptcand < 0.6f) {
530+
if (nsigmaTPC > -1.5f && nsigmaTPC < 2.5f)
531+
return true;
532+
} else if (ptcand >= 0.6f && ptcand < 0.7f) {
533+
if (nsigmaTPC > -0.75f && nsigmaTPC < 2.5f)
534+
return true;
535+
} else if (ptcand >= 0.7f && ptcand < 0.8f) {
536+
if (nsigmaTPC > -0.3f && nsigmaTPC < 2.5f)
537+
return true;
538+
} else { // 0.8 - 1.0
539+
if (nsigmaTPC > 0.0f && nsigmaTPC < 2.5f)
540+
return true;
541+
}
542+
}
543+
} else if (ptcand >= 1.0f && ptcand < 1.8f) {
544+
// 1.0 <= pT < 1.8 GeV/c
545+
if (TOFHit == 1) {
546+
if (TMath::Sqrt(nsigmaTPC * nsigmaTPC + nsigmaTOF * nsigmaTOF) < 2.5f)
547+
return true;
548+
} else {
549+
if (nsigmaTPC > -2.0f && nsigmaTPC < 0.0f)
550+
return true;
551+
}
552+
} else if (ptcand >= 1.8f && ptcand < 5.0f) {
553+
// 1.8 < pT < 5.0 GeV/c
554+
if (TOFHit == 1) {
555+
if (TMath::Sqrt(nsigmaTPC * nsigmaTPC + nsigmaTOF * nsigmaTOF) < 2.0f)
556+
return true;
557+
} else {
558+
if (nsigmaTPC > -2.5f && nsigmaTPC < 1.0f)
559+
return true;
560+
}
561+
} else {
562+
// pT >= 5.0 GeV/c (TPC-only, low stats)
563+
if (nsigmaTPC > -2.5f && nsigmaTPC < 1.5f)
564+
return true;
565+
}
566+
}
513567
return false;
514568
}
515569

0 commit comments

Comments
 (0)