Skip to content

Commit d90a8f3

Browse files
committed
add efficiency on trigger particles
1 parent bc617cd commit d90a8f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGLF/Tasks/Nuspex/hadronnucleicorrelation.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ struct hadronnucleicorrelation {
954954
if (isAntiDe) {
955955
selectedtracks_antid[track.singleCollSelId()].push_back(std::make_shared<decltype(track)>(track));
956956
if (mode == 0 || mode == 2) {
957-
registry.fill(HIST("hNtrig_total"), track.pt());
957+
registry.fill(HIST("hNtrig_total"), track.pt(), hEffpTEta_antideuteron->Interpolate(track.pt(), track.eta()));
958958
}
959959

960960
if (doQA) {
@@ -968,7 +968,7 @@ struct hadronnucleicorrelation {
968968
selectedtracks_d[track.singleCollSelId()].push_back(std::make_shared<decltype(track)>(track));
969969

970970
if (mode == 1 || mode == 3) {
971-
registry.fill(HIST("hNtrig_total"), track.pt());
971+
registry.fill(HIST("hNtrig_total"), track.pt(), hEffpTEta_deuteron->Interpolate(track.pt(), track.eta()));
972972
}
973973

974974
if (doQA) {
@@ -984,7 +984,7 @@ struct hadronnucleicorrelation {
984984
selectedtracks_p[track.singleCollSelId()].push_back(std::make_shared<decltype(track)>(track));
985985

986986
if (mode == 6 || mode == 7) {
987-
registry.fill(HIST("hNtrig_total"), track.pt());
987+
registry.fill(HIST("hNtrig_total"), track.pt(), hEffpTEta_proton->Interpolate(track.pt(), track.eta()));
988988
}
989989

990990
if (doQA) {
@@ -997,7 +997,7 @@ struct hadronnucleicorrelation {
997997
selectedtracks_antip[track.singleCollSelId()].push_back(std::make_shared<decltype(track)>(track));
998998

999999
if (mode == 4 || mode == 5) {
1000-
registry.fill(HIST("hNtrig_total"), track.pt());
1000+
registry.fill(HIST("hNtrig_total"), track.pt(), hEffpTEta_antiproton->Interpolate(track.pt(), track.eta()));
10011001
}
10021002

10031003
if (doQA) {

0 commit comments

Comments
 (0)