@@ -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
@@ -1121,9 +1121,6 @@ struct kstarInOO {
11211121 bool HasJets = false ;
11221122 int nJets = 0 ;
11231123 for (auto chargedjet : chargedjets) {
1124- // if(std::abs(chargedjet.eta()) > cfgJetEta)
1125- // return;
1126-
11271124 jetpT.push_back (chargedjet.pt ());
11281125 jetEta.push_back (chargedjet.eta ());
11291126 jetPhi.push_back (chargedjet.phi ());
@@ -1176,7 +1173,7 @@ struct kstarInOO {
11761173 constexpr int kaonPdg = 321 ;
11771174 constexpr int pionPdg = 211 ;
11781175 constexpr int kstar0Pdg = 313 ;
1179-
1176+
11801177 if (cDebugLevel > 0 ) {
11811178 nJetMCEvents++;
11821179 if ((nJetMCEvents + 1 ) % 10000 == 0 ) {
@@ -1695,24 +1692,24 @@ struct kstarInOO {
16951692 continue ;
16961693
16971694 /* // Not Yet
1698- if (cfg_Force_BR) {
1699- bool baddecay = false;
1700- for (auto& phidaughter : particle.daughters_as<aod::McParticles>()) {
1701- if (std::abs(phidaughter.pdgCode()) != 321) {
1702- baddecay = true;
1703- break;
1704- }
1705- if (cfg_Force_Kaon_Acceptence) {
1706- if (std::abs(phidaughter.eta()) > cfg_Track_MaxEta) {
1707- baddecay = true;
1708- break;
1709- }
1710- }
1711- } // loop over daughters
1712-
1713- if (baddecay)
1714- continue;
1715- } // 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
17161713 */
17171714
17181715 if (cfgJetMCHistos) {
@@ -1776,7 +1773,7 @@ struct kstarInOO {
17761773 int daughter_pion = 0 ;
17771774 constexpr int kaonPdg = 321 ;
17781775 constexpr int pionPdg = 211 ;
1779-
1776+
17801777 if (!cfgIsKstar) {
17811778 for (auto & daughter : mcParticle.daughters_as <aod::JetParticles>()) {
17821779 if (std::abs (daughter.pdgCode ()) != kaonPdg)
@@ -1903,33 +1900,34 @@ struct kstarInOO {
19031900 double recoveredJetpT = bestJetpT + missing_pt;
19041901 if (cfgJetdRHistos) {
19051902 if (bestJetpT > 6.0 && bestJetpT < 8.0 ) {
1906- histos.fill (HIST (" normalJetpT_6_8_kstarSpectra" ), lResonance.Pt ());
1903+ histos.fill (HIST (" normalJetpT_6_8_kstarSpectra" ), lResonance.Pt ());
19071904 histos.fill (HIST (" missed_kpi_INJets_6_8" ), (bestJetpT - missing_pt) / bestJetpT, lResonance.Pt ());
1908- if (recoveredJetpT > 8.0 ) {
1905+ if (recoveredJetpT > 8.0 ){
19091906 histos.fill (HIST (" recoveredJetpT_6_8to8_10" ), recoveredJetpT);
1910- histos.fill (HIST (" recoveredJetpT_6_8to8_10_kstarSpectra" ), lResonance.Pt ());
1911- }
1912- }
1913-
1914- if (bestJetpT > 8.0 && bestJetpT < 10.0 ) {
1907+ histos.fill (HIST (" recoveredJetpT_6_8to8_10_kstarSpectra" ), lResonance.Pt ());
1908+ }
1909+ }
1910+
1911+
1912+ if (bestJetpT > 8.0 && bestJetpT < 10.0 ){
19151913 histos.fill (HIST (" missed_kpi_INJets_8_10" ), (bestJetpT - missing_pt) / bestJetpT, lResonance.Pt ());
1916- histos.fill (HIST (" normalJetpT_8_10_kstarSpectra" ), lResonance.Pt ());
1917- }
1918- if (bestJetpT > 10.0 && bestJetpT < 12.0 ) {
1914+ histos.fill (HIST (" normalJetpT_8_10_kstarSpectra" ), lResonance.Pt ());
1915+ }
1916+ if (bestJetpT > 10.0 && bestJetpT < 12.0 ){
19191917 histos.fill (HIST (" missed_kpi_INJets_10_12" ), (bestJetpT - missing_pt) / bestJetpT, lResonance.Pt ());
1920- histos.fill (HIST (" normalJetpT_10_12_kstarSpectra" ), lResonance.Pt ());
1921- }
1918+ histos.fill (HIST (" normalJetpT_10_12_kstarSpectra" ), lResonance.Pt ());
1919+ }
19221920 if (bestJetpT > 12.0 && bestJetpT < 15.0 )
19231921 histos.fill (HIST (" missed_kpi_INJets_12_15" ), (bestJetpT - missing_pt) / bestJetpT, lResonance.Pt ());
19241922 if (bestJetpT > 15.0 && bestJetpT < 25.0 )
19251923 histos.fill (HIST (" missed_kpi_INJets_15_25" ), (bestJetpT - missing_pt) / bestJetpT, lResonance.Pt ());
19261924 if (bestJetpT > 25.0 )
19271925 histos.fill (HIST (" missed_kpi_INJets_25_infinite" ), (bestJetpT - missing_pt) / bestJetpT, lResonance.Pt ());
19281926
1929- if (bestJetpT > 8.0 ) {
1927+ if (bestJetpT > 8.0 ){
19301928 histos.fill (HIST (" missed_kpi_INJets_8_infinite" ), (bestJetpT - missing_pt) / bestJetpT, lResonance.Pt ());
1931- histos.fill (HIST (" normalJetpT_8_kstarSpectra" ), lResonance.Pt ());
1932- }
1929+ histos.fill (HIST (" normalJetpT_8_kstarSpectra" ), lResonance.Pt ());
1930+ }
19331931 histos.fill (HIST (" JetMigration" ), bestJetpT, recoveredJetpT);
19341932 } // cfgJetdRHistos
19351933 } // kaon_out || pion_out
0 commit comments