From f1fa2b52c11df11c55c0b0b01d39b0f007d2b1fa Mon Sep 17 00:00:00 2001 From: Chiara Pinto <48326672+chiarapinto@users.noreply.github.com> Date: Thu, 4 Dec 2025 10:34:09 +0100 Subject: [PATCH 1/2] Refactor custom nsigma calculation for He3 --- PWGLF/Tasks/Nuspex/antinucleiInJets.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx b/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx index 0fe4432d80f..8e71f78f152 100644 --- a/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx +++ b/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx @@ -1127,8 +1127,7 @@ struct AntinucleiInJets { // custom nsigma He3 based on bethe bloch fit of TPC signal double tpcSignal = track.tpcSignal(); double expectedSignalHe3 = tpc::BetheBlochAleph(static_cast(track.tpcInnerParam() * 2. / o2::constants::physics::MassHelium3), cfgBetheBlochParams.value[0], cfgBetheBlochParams.value[1], cfgBetheBlochParams.value[2], cfgBetheBlochParams.value[3], cfgBetheBlochParams.value[4]); - double sigmaHe3 = expectedSignalHe3 * cfgBetheBlochParams.value[4]; - double nSigmaTPCHe3Custom = (tpcSignal - expectedSignalHe3) / sigmaHe3; + double nSigmaTPCHe3Custom = ((tpcSignal/expectedSignalHe3) - 1.) / 0.045; registryData.fill(HIST("antihelium3_jet_tpc_custom"), 2.0 * pt, nSigmaTPCHe3Custom); } } @@ -1223,8 +1222,7 @@ struct AntinucleiInJets { // custom nsigma He3 based on bethe bloch fit of TPC signal double tpcSignal = track.tpcSignal(); double expectedSignalHe3 = tpc::BetheBlochAleph(static_cast(track.tpcInnerParam() * 2. / o2::constants::physics::MassHelium3), cfgBetheBlochParams.value[0], cfgBetheBlochParams.value[1], cfgBetheBlochParams.value[2], cfgBetheBlochParams.value[3], cfgBetheBlochParams.value[4]); - double sigmaHe3 = expectedSignalHe3 * cfgBetheBlochParams.value[4]; - double nSigmaTPCHe3Custom = (tpcSignal - expectedSignalHe3) / sigmaHe3; + double nSigmaTPCHe3Custom = ((tpcSignal/expectedSignalHe3) - 1.) / 0.045; registryData.fill(HIST("antihelium3_ue_tpc_custom"), 2.0 * pt, nSigmaTPCHe3Custom); } } From d96c6a8c6f48a8ff8811893dec01fd383e260943 Mon Sep 17 00:00:00 2001 From: ALICE Builder Date: Thu, 4 Dec 2025 10:38:04 +0100 Subject: [PATCH 2/2] Please consider the following formatting changes to #14083 (#14084) --- PWGLF/Tasks/Nuspex/antinucleiInJets.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx b/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx index 8e71f78f152..bb4bee1333b 100644 --- a/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx +++ b/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx @@ -1127,7 +1127,7 @@ struct AntinucleiInJets { // custom nsigma He3 based on bethe bloch fit of TPC signal double tpcSignal = track.tpcSignal(); double expectedSignalHe3 = tpc::BetheBlochAleph(static_cast(track.tpcInnerParam() * 2. / o2::constants::physics::MassHelium3), cfgBetheBlochParams.value[0], cfgBetheBlochParams.value[1], cfgBetheBlochParams.value[2], cfgBetheBlochParams.value[3], cfgBetheBlochParams.value[4]); - double nSigmaTPCHe3Custom = ((tpcSignal/expectedSignalHe3) - 1.) / 0.045; + double nSigmaTPCHe3Custom = ((tpcSignal / expectedSignalHe3) - 1.) / 0.045; registryData.fill(HIST("antihelium3_jet_tpc_custom"), 2.0 * pt, nSigmaTPCHe3Custom); } } @@ -1222,7 +1222,7 @@ struct AntinucleiInJets { // custom nsigma He3 based on bethe bloch fit of TPC signal double tpcSignal = track.tpcSignal(); double expectedSignalHe3 = tpc::BetheBlochAleph(static_cast(track.tpcInnerParam() * 2. / o2::constants::physics::MassHelium3), cfgBetheBlochParams.value[0], cfgBetheBlochParams.value[1], cfgBetheBlochParams.value[2], cfgBetheBlochParams.value[3], cfgBetheBlochParams.value[4]); - double nSigmaTPCHe3Custom = ((tpcSignal/expectedSignalHe3) - 1.) / 0.045; + double nSigmaTPCHe3Custom = ((tpcSignal / expectedSignalHe3) - 1.) / 0.045; registryData.fill(HIST("antihelium3_ue_tpc_custom"), 2.0 * pt, nSigmaTPCHe3Custom); } }