Skip to content

Commit 293e8e0

Browse files
sarjeeta gamisarjeeta gami
authored andcommitted
[PWGLF] fix Megalinter
1 parent 484b485 commit 293e8e0

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

PWGLF/Tasks/Resonances/kstarpbpb.cxx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -500,15 +500,14 @@ struct Kstarpbpb {
500500
if (!selectionTrack(track1)) {
501501
continue;
502502
}
503-
bool track1kaon = false;
503+
504504
auto track1ID = track1.globalIndex();
505505
if (!isTOFOnly && !strategySelectionPID(track1, 0, strategyPID)) {
506506
continue;
507507
}
508508
if (isTOFOnly && !selectionPID2(track1, 0)) {
509509
continue;
510510
}
511-
track1kaon = true;
512511

513512
if (useWeight) {
514513
if (track1.pt() < cfgMaxTrackPt &&
@@ -522,21 +521,19 @@ struct Kstarpbpb {
522521
if (!selectionTrack(track2)) {
523522
continue;
524523
}
525-
bool track2pion = false;
524+
526525
auto track2ID = track2.globalIndex();
527526
if (!isTOFOnly && !strategySelectionPID(track2, 1, strategyPID)) {
528527
continue;
529528
}
530529
if (isTOFOnly && !selectionPID2(track2, 1)) {
531530
continue;
532531
}
533-
track2pion = true;
532+
534533
if (track2ID == track1ID) {
535534
continue;
536535
}
537-
if (!track1kaon || !track2pion) {
538-
continue;
539-
}
536+
540537
if (additionalQAplots) {
541538
histos.fill(HIST("QAafter/TPC_Nsigma_allka"), track1.pt(), track1.tpcNSigmaKa(), centrality);
542539
histos.fill(HIST("QAafter/TOF_Nsigma_allka"), track1.pt(), track1.tofNSigmaKa(), centrality);

0 commit comments

Comments
 (0)