Skip to content

Commit 3ffdc5b

Browse files
author
jimun_lee
committed
[PWGLF] Added the option of cfgJetdR
1 parent 0ee2403 commit 3ffdc5b

1 file changed

Lines changed: 36 additions & 37 deletions

File tree

PWGLF/Tasks/Resonances/kstarInOO.cxx

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ struct kstarInOO {
285285
histos.add("normalJetpT_6_8_kstarSpectra", "6 GeV/c < kstar pT in Jet < 8 GeV/c", kTH1F, {{2000, 0., 100.}});
286286
histos.add("normalJetpT_8_10_kstarSpectra", "8 GeV/c < kstar pT in Jet < 10 GeV/c", kTH1F, {{2000, 0., 100.}});
287287
histos.add("normalJetpT_10_12_kstarSpectra", "10 GeV/c < kstar pT in Jet < 12 GeV/c", kTH1F, {{2000, 0., 100.}});
288-
288+
289289
histos.add("JetMigration", "bin to bin migration", {HistType::kTH2F, {{150, 0.0, 15.0, "True jet pT (GeV/c)"}, {150, 0., 15., "Recovered jet pT (GeV/c)"}}});
290290
}
291291

@@ -1173,7 +1173,7 @@ struct kstarInOO {
11731173
constexpr int kaonPdg = 321;
11741174
constexpr int pionPdg = 211;
11751175
constexpr int kstar0Pdg = 313;
1176-
1176+
11771177
if (cDebugLevel > 0) {
11781178
nJetMCEvents++;
11791179
if ((nJetMCEvents + 1) % 10000 == 0) {
@@ -1692,24 +1692,24 @@ struct kstarInOO {
16921692
continue;
16931693

16941694
/* // Not Yet
1695-
if (cfg_Force_BR) {
1696-
bool baddecay = false;
1697-
for (auto& phidaughter : particle.daughters_as<aod::McParticles>()) {
1698-
if (std::abs(phidaughter.pdgCode()) != 321) {
1699-
baddecay = true;
1700-
break;
1701-
}
1702-
if (cfg_Force_Kaon_Acceptence) {
1703-
if (std::abs(phidaughter.eta()) > cfg_Track_MaxEta) {
1704-
baddecay = true;
1705-
break;
1706-
}
1707-
}
1708-
} // loop over daughters
1709-
1710-
if (baddecay)
1711-
continue;
1712-
} // enforce BR restriction
1695+
if (cfg_Force_BR) {
1696+
bool baddecay = false;
1697+
for (auto& phidaughter : particle.daughters_as<aod::McParticles>()) {
1698+
if (std::abs(phidaughter.pdgCode()) != 321) {
1699+
baddecay = true;
1700+
break;
1701+
}
1702+
if (cfg_Force_Kaon_Acceptence) {
1703+
if (std::abs(phidaughter.eta()) > cfg_Track_MaxEta) {
1704+
baddecay = true;
1705+
break;
1706+
}
1707+
}
1708+
} // loop over daughters
1709+
1710+
if (baddecay)
1711+
continue;
1712+
} // enforce BR restriction
17131713
*/
17141714

17151715
if (cfgJetMCHistos) {
@@ -1773,7 +1773,7 @@ struct kstarInOO {
17731773
int daughter_pion = 0;
17741774
constexpr int kaonPdg = 321;
17751775
constexpr int pionPdg = 211;
1776-
1776+
17771777
if (!cfgIsKstar) {
17781778
for (auto& daughter : mcParticle.daughters_as<aod::JetParticles>()) {
17791779
if (std::abs(daughter.pdgCode()) != kaonPdg)
@@ -1900,34 +1900,33 @@ struct kstarInOO {
19001900
double recoveredJetpT = bestJetpT + missing_pt;
19011901
if (cfgJetdRHistos) {
19021902
if (bestJetpT > 6.0 && bestJetpT < 8.0) {
1903-
histos.fill(HIST("normalJetpT_6_8_kstarSpectra"), lResonance.Pt());
1903+
histos.fill(HIST("normalJetpT_6_8_kstarSpectra"), lResonance.Pt());
19041904
histos.fill(HIST("missed_kpi_INJets_6_8"), (bestJetpT - missing_pt) / bestJetpT, lResonance.Pt());
1905-
if (recoveredJetpT > 8.0){
1905+
if (recoveredJetpT > 8.0) {
19061906
histos.fill(HIST("recoveredJetpT_6_8to8_10"), recoveredJetpT);
1907-
histos.fill(HIST("recoveredJetpT_6_8to8_10_kstarSpectra"), lResonance.Pt());
1908-
}
1909-
}
1910-
1911-
1912-
if (bestJetpT > 8.0 && bestJetpT < 10.0){
1907+
histos.fill(HIST("recoveredJetpT_6_8to8_10_kstarSpectra"), lResonance.Pt());
1908+
}
1909+
}
1910+
1911+
if (bestJetpT > 8.0 && bestJetpT < 10.0) {
19131912
histos.fill(HIST("missed_kpi_INJets_8_10"), (bestJetpT - missing_pt) / bestJetpT, lResonance.Pt());
1914-
histos.fill(HIST("normalJetpT_8_10_kstarSpectra"), lResonance.Pt());
1915-
}
1916-
if (bestJetpT > 10.0 && bestJetpT < 12.0){
1913+
histos.fill(HIST("normalJetpT_8_10_kstarSpectra"), lResonance.Pt());
1914+
}
1915+
if (bestJetpT > 10.0 && bestJetpT < 12.0) {
19171916
histos.fill(HIST("missed_kpi_INJets_10_12"), (bestJetpT - missing_pt) / bestJetpT, lResonance.Pt());
1918-
histos.fill(HIST("normalJetpT_10_12_kstarSpectra"), lResonance.Pt());
1919-
}
1917+
histos.fill(HIST("normalJetpT_10_12_kstarSpectra"), lResonance.Pt());
1918+
}
19201919
if (bestJetpT > 12.0 && bestJetpT < 15.0)
19211920
histos.fill(HIST("missed_kpi_INJets_12_15"), (bestJetpT - missing_pt) / bestJetpT, lResonance.Pt());
19221921
if (bestJetpT > 15.0 && bestJetpT < 25.0)
19231922
histos.fill(HIST("missed_kpi_INJets_15_25"), (bestJetpT - missing_pt) / bestJetpT, lResonance.Pt());
19241923
if (bestJetpT > 25.0)
19251924
histos.fill(HIST("missed_kpi_INJets_25_infinite"), (bestJetpT - missing_pt) / bestJetpT, lResonance.Pt());
19261925

1927-
if (bestJetpT > 8.0){
1926+
if (bestJetpT > 8.0) {
19281927
histos.fill(HIST("missed_kpi_INJets_8_infinite"), (bestJetpT - missing_pt) / bestJetpT, lResonance.Pt());
1929-
histos.fill(HIST("normalJetpT_8_kstarSpectra"), lResonance.Pt());
1930-
}
1928+
histos.fill(HIST("normalJetpT_8_kstarSpectra"), lResonance.Pt());
1929+
}
19311930
histos.fill(HIST("JetMigration"), bestJetpT, recoveredJetpT);
19321931
} // cfgJetdRHistos
19331932
} // kaon_out || pion_out

0 commit comments

Comments
 (0)