Skip to content

Commit fb519e4

Browse files
author
jimun_lee
committed
[PWGLF] Fixed the processJeteff part of KstarInOO.cxx
1 parent b8d430a commit fb519e4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

PWGLF/Tasks/Resonances/kstarInOO.cxx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ struct kstarInOO {
138138

139139
Configurable<bool> cfgMCHistos{"cfgMCHistos", false, "Enable MC Hists"};
140140
Configurable<bool> cfgMixedHistos{"cfgMixedHistos", false, "Enable Mixed Histos"};
141-
142141
Configurable<bool> cfgJetHistos{"cfgJetHistos", false, "Enable Jet Histos"};
143-
144142
Configurable<bool> cfgJetMCHistos{"cfgJetMCHistos", false, "Enable Jet MC Histos"};
145143
Configurable<bool> cfgCutonTrig{"cfgCutonTrig", false, "Enable Jet Cut on Trig"};
146144

@@ -273,6 +271,8 @@ struct kstarInOO {
273271
histos.add("hEffRecTest6_pT", "EffRecTest6_pT (GeV/c)", kTH1F, {{800, 0., 40.}});
274272
histos.add("hEffRecTest7_pT", "EffRecTest7_pT (GeV/c)", kTH1F, {{800, 0., 40.}});
275273
histos.add("hEffRecTest8_pT", "EffRecTest8_pT (GeV/c)", kTH1F, {{800, 0., 40.}});
274+
275+
histos.add("hEffGen_pT_Raw", "EffGen_pT_Raw (GeV/c)", kTH1F, {{800, 0., 40.}});
276276
histos.add("hEffGen_pT", "EffGen_pT (GeV/c)", kTH1F, {{800, 0., 40.}});
277277

278278
histos.add("hMotherPdg1", "hMotherPdg1", kTH1F, {{5000, 0., 5000.}});
@@ -1514,6 +1514,12 @@ struct kstarInOO {
15141514
return;
15151515
}
15161516

1517+
for (auto& particle : mcParticles) {
1518+
if (cfgJetMCHistos) {
1519+
histos.fill(HIST("hEffGen_pT_Raw"), particle.pt());
1520+
}
1521+
}
1522+
15171523
for (auto& recocoll : recocolls) { // poorly reconstructed
15181524
auto goodEv = jetderiveddatautilities::selectCollision(recocoll, eventSelectionBits);
15191525
if (goodEv) {

0 commit comments

Comments
 (0)