Skip to content

Commit 9e7df81

Browse files
authored
[PWGLF] Add charge information in derived data and QA histogram in analysis task (#12756)
1 parent 16e01d8 commit 9e7df81

File tree

2 files changed

+169
-48
lines changed

2 files changed

+169
-48
lines changed

PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,10 +751,17 @@ struct f1protonreducedtable {
751751
continue;
752752

753753
// check if the pair is unlike or wrongsign
754-
auto pairsign = 1;
754+
auto pairsign = 100;
755755
if (PionCharge.at(i1) * KaonCharge.at(i2) > 0) {
756756
qaRegistry.fill(HIST("hInvMassf1Like"), F1Vector.M(), F1Vector.Pt());
757757
pairsign = -1;
758+
} else if (PionCharge.at(i1) * KaonCharge.at(i2) < 0) {
759+
if (KaonCharge.at(i2) > 0) {
760+
pairsign = 1;
761+
}
762+
if (KaonCharge.at(i2) < 0) {
763+
pairsign = 2;
764+
}
758765
}
759766
ROOT::Math::PtEtaPhiMVector temp(F1Vector.Pt(), F1Vector.Eta(), F1Vector.Phi(), F1Vector.M());
760767
f1resonance.push_back(temp);

0 commit comments

Comments
 (0)