Skip to content

Commit 52961b1

Browse files
committed
fix secondary fraction for closure test
1 parent 7198563 commit 52961b1

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

PWGLF/Tasks/Nuspex/hadronnucleicorrelation.cxx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,18 +1288,16 @@ struct hadronnucleicorrelation {
12881288
bool isDe = (IsDeuteron(track, +1) && track.pdgCode() == pdgDeuteron);
12891289
bool isAntiDe = (IsDeuteron(track, -1) && track.pdgCode() == -pdgDeuteron);
12901290

1291-
if (track.origin() == 1 || track.origin() == 0) { // primaries and secondaries
1292-
if (isPr) {
1293-
registry.fill(HIST("hPrimSec_EtaPhiPt_Proton"), track.eta(), track.phi(), track.pt() * +1);
1294-
if (track.origin() == 1) { // secondaries
1295-
registry.fill(HIST("hSec_EtaPhiPt_Proton"), track.eta(), track.phi(), track.pt() * +1);
1296-
}
1291+
if (isPr) {
1292+
registry.fill(HIST("hPrimSec_EtaPhiPt_Proton"), track.eta(), track.phi(), track.pt() * +1);
1293+
if (track.origin() == 1 || track.origin() == 2) { // secondaries
1294+
registry.fill(HIST("hSec_EtaPhiPt_Proton"), track.eta(), track.phi(), track.pt() * +1);
12971295
}
1298-
if (isAntiPr) {
1299-
registry.fill(HIST("hPrimSec_EtaPhiPt_Proton"), track.eta(), track.phi(), track.pt() * -1);
1300-
if (track.origin() == 1) {
1301-
registry.fill(HIST("hSec_EtaPhiPt_Proton"), track.eta(), track.phi(), track.pt() * -1);
1302-
}
1296+
}
1297+
if (isAntiPr) {
1298+
registry.fill(HIST("hPrimSec_EtaPhiPt_Proton"), track.eta(), track.phi(), track.pt() * -1);
1299+
if (track.origin() == 1 || track.origin() == 2) {
1300+
registry.fill(HIST("hSec_EtaPhiPt_Proton"), track.eta(), track.phi(), track.pt() * -1);
13031301
}
13041302
}
13051303

0 commit comments

Comments
 (0)