Skip to content

Commit 9b5bc8c

Browse files
author
Prottay Das
committed
removed few hardcoded values
1 parent 4b44dc7 commit 9b5bc8c

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

PWGLF/Tasks/Strangeness/lambdapolsp.cxx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,9 @@ struct lambdapolsp {
416416
{
417417
// const auto eta = track.eta();
418418
// const auto pt = track.pt();
419+
const auto rcrfc = 0.8;
419420
const auto tpcNClsF = track.tpcNClsFound();
420-
if (track.tpcNClsCrossedRows() < 70) {
421+
if (track.tpcNClsCrossedRows() < cfgTPCcluster) {
421422
return false;
422423
}
423424
/*if (TMath::Abs(eta) > ConfDaughEta) {
@@ -426,7 +427,7 @@ struct lambdapolsp {
426427
if (tpcNClsF < ConfDaughTPCnclsMin) {
427428
return false;
428429
}
429-
if (track.tpcCrossedRowsOverFindableCls() < 0.8) {
430+
if (track.tpcCrossedRowsOverFindableCls() < rcrfc) {
430431
return false;
431432
}
432433

@@ -461,6 +462,7 @@ struct lambdapolsp {
461462
{
462463
// checks if this V0 is compatible with the requested hypothesis
463464

465+
const auto rcrfc = 0.8;
464466
// de-ref track extras
465467
auto posTrackExtra = v0.template posTrackExtra_as<dauTracks>();
466468
auto negTrackExtra = v0.template negTrackExtra_as<dauTracks>();
@@ -477,13 +479,13 @@ struct lambdapolsp {
477479
}
478480

479481
// check TPC tracking properties
480-
if (posTrackExtra.tpcNClsCrossedRows() < 70 || negTrackExtra.tpcNClsCrossedRows() < 70) {
482+
if (posTrackExtra.tpcNClsCrossedRows() < cfgTPCcluster || negTrackExtra.tpcNClsCrossedRows() < cfgTPCcluster) {
481483
return false;
482484
}
483485
if (posTrackExtra.tpcNClsFound() < ConfDaughTPCnclsMin || negTrackExtra.tpcNClsFound() < ConfDaughTPCnclsMin) {
484486
return false;
485487
}
486-
if (posTrackExtra.tpcCrossedRowsOverFindableCls() < 0.8 || negTrackExtra.tpcCrossedRowsOverFindableCls() < 0.8) {
488+
if (posTrackExtra.tpcCrossedRowsOverFindableCls() < rcrfc || negTrackExtra.tpcCrossedRowsOverFindableCls() < rcrfc) {
487489
return false;
488490
}
489491

@@ -511,6 +513,7 @@ struct lambdapolsp {
511513
{
512514
// checks if this V0 is compatible with the requested hypothesis
513515

516+
const auto rcrfc = 0.8;
514517
// de-ref track extras
515518
auto posTrackExtra = v0.template posTrackExtra_as<dauTracks>();
516519
auto negTrackExtra = v0.template negTrackExtra_as<dauTracks>();
@@ -523,13 +526,13 @@ struct lambdapolsp {
523526
return false;
524527
}
525528
// check TPC tracking properties
526-
if (posTrackExtra.tpcNClsCrossedRows() < 70 || negTrackExtra.tpcNClsCrossedRows() < 70) {
529+
if (posTrackExtra.tpcNClsCrossedRows() < cfgTPCcluster || negTrackExtra.tpcNClsCrossedRows() < cfgTPCcluster) {
527530
return false;
528531
}
529532
if (posTrackExtra.tpcNClsFound() < ConfDaughTPCnclsMin || negTrackExtra.tpcNClsFound() < ConfDaughTPCnclsMin) {
530533
return false;
531534
}
532-
if (posTrackExtra.tpcCrossedRowsOverFindableCls() < 0.8 || negTrackExtra.tpcCrossedRowsOverFindableCls() < 0.8) {
535+
if (posTrackExtra.tpcCrossedRowsOverFindableCls() < rcrfc || negTrackExtra.tpcCrossedRowsOverFindableCls() < rcrfc) {
533536
return false;
534537
}
535538
// check TPC PID

0 commit comments

Comments
 (0)