@@ -152,6 +152,7 @@ struct StrangenessInJetsIons {
152152 Configurable<bool > calculateFeeddownMatrix{" calculateFeeddownMatrix" , true , " Fill feeddown matrix for Lambda if MC" };
153153 Configurable<bool > useV0inJetRec{" useV0inJetRec" , true , " Include V0s in jet reconstruction" };
154154 Configurable<bool > doThermalToyModel{" doThermalToyModel" , false , " Use the thermal toy model to embed background particles to the jet finder input list" };
155+ Configurable<bool > doPlotRho{" doPlotRho" , false , " Plot rho distributions computed with perpendicular cone and area median method." };
155156 Configurable<bool > saveChargedParticleMB{" saveChargedParticleMB" , false , " Store charged particle information to build inclusive spectra." };
156157
157158 // Event selection
@@ -331,11 +332,9 @@ struct StrangenessInJetsIons {
331332 registryData.add (" n_jets_vs_mult" , " n_jets_vs_mult" , HistType::kTH2F , {multAxis, numJets});
332333
333334 // Delta pT distribution
334- // registryData.add("delta_pT_data", "delta_pT_data", HistType::kTH2F, {multAxis, deltaPtAxis});
335- // registryData.add("delta_pT_RC_data", "delta_pT_RC_data", HistType::kTH2F, {multAxis, deltaPtAxis});
336335 registryData.add (" h2_centrality_deltaPt_RandomCone" , " h2_centrality_deltaPt_RandomCone" , HistType::kTH2F , {multAxis, deltaPtAxis});
337336 registryData.add (" h2_centrality_rhoPerp" , " h2_centrality_rhoPerp" , HistType::kTH2F , {multAxis, rhoAxis});
338-
337+
339338 registryData.add (" rho_perp" , " rho_perp" , HistType::kTH2F , {multAxis, rhoAxis});
340339 registryData.add (" rho_median" , " rho_median" , HistType::kTH2F , {multAxis, rhoAxis});
341340
@@ -401,10 +400,6 @@ struct StrangenessInJetsIons {
401400 registryMC.add (" n_jets_vs_mult_pT_mc_gen" , " n_jets_vs_mult_pT_mc_gen" , HistType::kTH2F , {multAxis, ptJetAxis});
402401 registryMC.add (" n_jets_vs_mult_mc_gen" , " n_jets_vs_mult_mc_gen" , HistType::kTH2F , {multAxis, numJets});
403402
404- // Delta pT distribution
405- registryMC.add (" delta_pT_gen" , " delta_pT_gen" , HistType::kTH2F , {multAxis, deltaPtAxis});
406- // registryMC.add("delta_pT_RC_gen", "delta_pT_RC_gen", HistType::kTH2F, {multAxis, deltaPtAxis});
407-
408403 if (doThermalToyModel) {
409404 registryMC.add (" thermalToy_pT_gen" , " thermalToy_pT_gen" , HistType::kTH2F , {multAxis, ptAxis});
410405 registryMC.add (" thermalToy_nBkg_gen" , " thermalToy_nBkg_gen" , HistType::kTH2F , {multAxis, numBkgParticles});
@@ -506,9 +501,6 @@ struct StrangenessInJetsIons {
506501 registryMC.add (" n_jets_vs_mult_pT_mc_rec" , " n_jets_vs_mult_pT_mc_rec" , HistType::kTH2F , {multAxis, ptJetAxis});
507502 registryMC.add (" n_jets_vs_mult_mc_rec" , " n_jets_vs_mult_mc_rec" , HistType::kTH2F , {multAxis, numJets});
508503
509- // Delta pT distribution
510- registryMC.add (" delta_pT_rec" , " delta_pT_rec" , HistType::kTH2F , {multAxis, deltaPtAxis});
511-
512504 if (doThermalToyModel) {
513505 registryMC.add (" thermalToy_pT_rec" , " thermalToy_pT_rec" , HistType::kTH2F , {multAxis, ptAxis});
514506 registryMC.add (" thermalToy_nBkg_rec" , " thermalToy_nBkg_rec" , HistType::kTH2F , {multAxis, numBkgParticles});
@@ -2003,7 +1995,7 @@ struct StrangenessInJetsIons {
20031995 continue ;
20041996 auto mother = mcParticles.iteratorAt (mcPart.mothersIds ()[0 ]);
20051997 int motherPdg = std::abs (mother.pdgCode ());
2006- LOG (info) << " [AddV0sForJetReconstructionMCP] Mother pdg code:" << motherPdg;
1998+ // LOG(info) << "[AddV0sForJetReconstructionMCP] Mother pdg code:" << motherPdg;
20071999 if (motherPdg == kK0Short || motherPdg == kLambda0 ) {
20082000 isTrackReplaced[i] = true ;
20092001 // LOG(info) << "[AddV0sForJetReconstructionMCP] V0 daughter particle found in fjParticleObj.";
@@ -2206,7 +2198,6 @@ struct StrangenessInJetsIons {
22062198 fastjet::ClusterSequenceArea cs (fjParticles, jetDef, areaDef);
22072199 std::vector<fastjet::PseudoJet> jets = fastjet::sorted_by_pt (cs.inclusive_jets ());
22082200 auto [rhoPerp, rhoMPerp] = jetutilities::estimateRhoPerpCone (fjParticles, jets[0 ], rJet);
2209- auto [rhoMedian, rhoMMedian] = backgroundSub.estimateRhoAreaMedian (fjParticles, true );
22102201
22112202 // Event multiplicity
22122203 float multiplicity;
@@ -2216,8 +2207,11 @@ struct StrangenessInJetsIons {
22162207 multiplicity = collision.centFT0M ();
22172208 }
22182209
2219- registryData.fill (HIST (" rho_perp" ), multiplicity, rhoPerp);
2220- registryData.fill (HIST (" rho_median" ), multiplicity, rhoMedian);
2210+ if (doPlotRho) {
2211+ auto [rhoMedian, rhoMMedian] = backgroundSub.estimateRhoAreaMedian (fjParticles, true );
2212+ registryData.fill (HIST (" rho_perp" ), multiplicity, rhoPerp);
2213+ registryData.fill (HIST (" rho_median" ), multiplicity, rhoMedian);
2214+ }
22212215
22222216 // Delta pT distributions with random cone technique
22232217 computeRandomConeDeltaPt (fjParticles, jets, multiplicity, rhoPerp);
@@ -2243,10 +2237,6 @@ struct StrangenessInJetsIons {
22432237 continue ;
22442238 isAtLeastOneJetSelected = true ;
22452239
2246- // delta pT distribution after jet selection by pT
2247- // double deltaPt = jet.pt() - jetMinusBkg.pt();
2248- // registryData.fill(HIST("delta_pT_data"), multiplicity, deltaPt);
2249-
22502240 // Calculation of perpendicular cones
22512241 TVector3 jetAxis (jet.px (), jet.py (), jet.pz ());
22522242 TVector3 ueAxis1 (0 , 0 , 0 ), ueAxis2 (0 , 0 , 0 );
@@ -2600,10 +2590,6 @@ struct StrangenessInJetsIons {
26002590 // Fill jet counter
26012591 registryMC.fill (HIST (" n_jets_vs_mult_pT_mc_gen" ), genMultiplicity, jetMinusBkg.pt ());
26022592
2603- // delta pT distribution after jet selection by pT
2604- double deltaPt = jet.pt () - jetMinusBkg.pt ();
2605- registryMC.fill (HIST (" delta_pT_gen" ), genMultiplicity, deltaPt);
2606-
26072593 // Set up two perpendicular cone axes for underlying event estimation
26082594 TVector3 jetAxis (jet.px (), jet.py (), jet.pz ());
26092595 double coneRadius = std::sqrt (jet.area () / PI); // TODO: replace with rJet (similar results)
@@ -2912,10 +2898,6 @@ struct StrangenessInJetsIons {
29122898 continue ;
29132899 isAtLeastOneJetSelected = true ;
29142900
2915- // delta pT distribution after jet selection by pT
2916- double deltaPt = jet.pt () - jetMinusBkg.pt ();
2917- registryMC.fill (HIST (" delta_pT_rec" ), multiplicity, deltaPt);
2918-
29192901 // Perpendicular cones
29202902 TVector3 jetAxis (jet.px (), jet.py (), jet.pz ());
29212903 TVector3 ueAxis1 (0 , 0 , 0 ), ueAxis2 (0 , 0 , 0 );
0 commit comments