Skip to content

Commit 2fb0bc3

Browse files
authored
Updated
1 parent ff4bac3 commit 2fb0bc3

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

PWGLF/Tasks/Resonances/lambda1520analysisinpp.cxx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -513,15 +513,15 @@ struct Lambda1520analysisinpp {
513513
// candidate.tpcNSigmaPr(), candidate.tofNSigmaPr(), tpcPIDPassed, tofPIDPassed, tpcPIDPassed || tofPIDPassed);
514514

515515
template <typename T>
516-
bool pTdependentPIDProton(const T& candidate)
516+
bool ptDependentPidProton(const T& candidate)
517517
{
518-
auto vProtonTPCPIDpTintv = static_cast<std::vector<float>>(configPID.protonTPCPIDpTintv);
518+
auto vProtonTPCPIDpTintv = std::vector<float>(configPID.protonTPCPIDpTintv);
519519
vProtonTPCPIDpTintv.insert(vProtonTPCPIDpTintv.begin(), configTracks.cMinPtcut);
520-
auto vProtonTPCPIDcuts = static_cast<std::vector<float>>(configPID.protonTPCPIDcuts);
521-
auto vProtonTOFPIDpTintv = static_cast<std::vector<float>>(configPID.protonTOFPIDpTintv);
522-
auto vProtonTPCTOFCombinedpTintv = static_cast<std::vector<float>>(configPID.protonTPCTOFCombinedpTintv);
523-
auto vProtonTPCTOFCombinedPIDcuts = static_cast<std::vector<float>>(configPID.protonTPCTOFCombinedPIDcuts);
524-
auto vProtonTOFPIDcuts = static_cast<std::vector<float>>(configPID.protonTOFPIDcuts);
520+
auto vProtonTPCPIDcuts = std::vector<float>(configPID.protonTPCPIDcuts);
521+
auto vProtonTOFPIDpTintv = std::vector<float>(configPID.protonTOFPIDpTintv);
522+
auto vProtonTPCTOFCombinedpTintv = std::vector<float>(configPID.protonTPCTOFCombinedpTintv);
523+
auto vProtonTPCTOFCombinedPIDcuts = std::vector<float>(configPID.protonTPCTOFCombinedPIDcuts);
524+
auto vProtonTOFPIDcuts = std::vector<float>(configPID.protonTOFPIDcuts);
525525

526526
float pt = candidate.pt();
527527
float ptSwitchToTOF = vProtonTPCPIDpTintv.back();
@@ -582,15 +582,15 @@ struct Lambda1520analysisinpp {
582582
}
583583

584584
template <typename T>
585-
bool pTdependentPIDKaon(const T& candidate)
585+
bool ptDependentPidKaon(const T& candidate)
586586
{
587-
auto vKaonTPCPIDpTintv = static_cast<std::vector<float>>(configPID.kaonTPCPIDpTintv);
587+
auto vKaonTPCPIDpTintv = std::vector<float>(configPID.kaonTPCPIDpTintv);
588588
vKaonTPCPIDpTintv.insert(vKaonTPCPIDpTintv.begin(), configTracks.cMinPtcut);
589-
auto vKaonTPCPIDcuts = static_cast<std::vector<float>>(configPID.kaonTPCPIDcuts);
590-
auto vKaonTOFPIDpTintv = static_cast<std::vector<float>>(configPID.kaonTOFPIDpTintv);
591-
auto vKaonTPCTOFCombinedpTintv = static_cast<std::vector<float>>(configPID.kaonTPCTOFCombinedpTintv);
592-
auto vKaonTPCTOFCombinedPIDcuts = static_cast<std::vector<float>>(configPID.kaonTPCTOFCombinedPIDcuts);
593-
auto vKaonTOFPIDcuts = static_cast<std::vector<float>>(configPID.kaonTOFPIDcuts);
589+
auto vKaonTPCPIDcuts = std::vector<float>(configPID.kaonTPCPIDcuts);
590+
auto vKaonTOFPIDpTintv = std::vector<float>(configPID.kaonTOFPIDpTintv);
591+
auto vKaonTPCTOFCombinedpTintv = std::vector<float>(configPID.kaonTPCTOFCombinedpTintv);
592+
auto vKaonTPCTOFCombinedPIDcuts = std::vector<float>(configPID.kaonTPCTOFCombinedPIDcuts);
593+
auto vKaonTOFPIDcuts = std::vector<float>(configPID.kaonTOFPIDcuts);
594594

595595
float pt = candidate.pt();
596596
float ptSwitchToTOF = vKaonTPCPIDpTintv.back();
@@ -768,7 +768,7 @@ struct Lambda1520analysisinpp {
768768
if (crejectPion && rejectPion(trk2)) // to remove pion contamination from the kaon track
769769
continue;
770770

771-
if (!pTdependentPIDProton(trk1) || !pTdependentPIDKaon(trk2))
771+
if (!ptDependentPidProton(trk1) || !ptDependentPidKaon(trk2))
772772
continue;
773773

774774
//// QA plots after the selection

0 commit comments

Comments
 (0)