From feb7e7f793f2a1a28032eb8272337fda08f5f725 Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Wed, 22 May 2024 13:21:22 +0200 Subject: [PATCH 1/2] TRestGeant4PhysicsLists. Fixing problem when default is the name of the class --- src/TRestGeant4PhysicsLists.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TRestGeant4PhysicsLists.cxx b/src/TRestGeant4PhysicsLists.cxx index 257bb95..976a19d 100644 --- a/src/TRestGeant4PhysicsLists.cxx +++ b/src/TRestGeant4PhysicsLists.cxx @@ -42,6 +42,8 @@ void TRestGeant4PhysicsLists::Initialize() { void TRestGeant4PhysicsLists::InitFromConfigFile() { this->Initialize(); + if( GetName() == "default" ) this->SetName("phList"); + fIonLimitStepList = Split(GetParameter("ionLimitStepList", ""), ","); fCutForGamma = GetDblParameterWithUnits("cutForGamma", 0.01); From 08d3c0e78af260a33d5a7e57772fd59e9a9a6de7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 22 May 2024 11:22:54 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/TRestGeant4PhysicsLists.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TRestGeant4PhysicsLists.cxx b/src/TRestGeant4PhysicsLists.cxx index 976a19d..757276f 100644 --- a/src/TRestGeant4PhysicsLists.cxx +++ b/src/TRestGeant4PhysicsLists.cxx @@ -42,7 +42,7 @@ void TRestGeant4PhysicsLists::Initialize() { void TRestGeant4PhysicsLists::InitFromConfigFile() { this->Initialize(); - if( GetName() == "default" ) this->SetName("phList"); + if (GetName() == "default") this->SetName("phList"); fIonLimitStepList = Split(GetParameter("ionLimitStepList", ""), ",");