From f55bdfd3ba96ef768ad21e93cfcfa6c6361c9dc5 Mon Sep 17 00:00:00 2001 From: Rafael Manhart <56776511+RafRaf11@users.noreply.github.com> Date: Wed, 22 Jan 2025 18:15:47 +0100 Subject: [PATCH] Update NucleiHistTask.cxx Added configurable to enable/disable isPhysicalPrimary in reconstructed MC --- PWGLF/Tasks/Nuspex/NucleiHistTask.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PWGLF/Tasks/Nuspex/NucleiHistTask.cxx b/PWGLF/Tasks/Nuspex/NucleiHistTask.cxx index 171b257eb61..45b05cc9489 100644 --- a/PWGLF/Tasks/Nuspex/NucleiHistTask.cxx +++ b/PWGLF/Tasks/Nuspex/NucleiHistTask.cxx @@ -497,6 +497,7 @@ struct NucleiHistTask { Configurable requireGoldenChi2{"requireGoldenChi2", false, "Enable the requirement of GoldenChi2"}; Configurable event_selection_sel8{"event_selection_sel8", true, "Enable sel8 event selection"}; Configurable event_selection_MC_sel8{"event_selection_MC_sel8", true, "Enable sel8 event selection in MC processing"}; + Configurable require_PhysicalPrimary_MC_reco{"require_PhysicalPrimary_MC_reco", true, "Enable PhysicalPrimary selection in reconstructed MC processing"}; Configurable require_PhysicalPrimary_MC_gen{"require_PhysicalPrimary_MC_gen", true, "Enable PhysicalPrimary selection in generated MC processing"}; Configurable removeITSROFrameBorder{"removeITSROFrameBorder", false, "Remove TF border"}; Configurable removeNoSameBunchPileup{"removeNoSameBunchPileup", false, "Remove TF border"}; @@ -1285,7 +1286,7 @@ struct NucleiHistTask { } } - if (!particle.isPhysicalPrimary()) + if (require_PhysicalPrimary_MC_reco && !particle.isPhysicalPrimary()) continue; histTrackcuts_MC->AddBinContent(2); TLorentzVector lorentzVector_particle_MC{};