From 3e875e567a36b3fc54032185a024e40cb2e34e77 Mon Sep 17 00:00:00 2001 From: mariajmz Date: Thu, 30 Nov 2023 10:07:23 +0100 Subject: [PATCH 1/2] TRestGeant4PhysicsList added optical physics list --- src/TRestGeant4PhysicsLists.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TRestGeant4PhysicsLists.cxx b/src/TRestGeant4PhysicsLists.cxx index 257bb95..10e6633 100644 --- a/src/TRestGeant4PhysicsLists.cxx +++ b/src/TRestGeant4PhysicsLists.cxx @@ -133,7 +133,8 @@ Bool_t TRestGeant4PhysicsLists::PhysicsListExists(const TString& physicsListName "G4IonBinaryCascadePhysics", "G4HadronPhysicsQGSP_BIC_HP", "G4NeutronTrackingCut", - "G4EmExtraPhysics"}; + "G4EmExtraPhysics", + "G4OpticalPhysics"}; return validPhysicsLists.count(physicsListName) > 0; } From 8d90772da8048c07bb4fb142c2198268e06386ad Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 30 Nov 2023 09:13:11 +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 10e6633..e9ac013 100644 --- a/src/TRestGeant4PhysicsLists.cxx +++ b/src/TRestGeant4PhysicsLists.cxx @@ -134,7 +134,7 @@ Bool_t TRestGeant4PhysicsLists::PhysicsListExists(const TString& physicsListName "G4HadronPhysicsQGSP_BIC_HP", "G4NeutronTrackingCut", "G4EmExtraPhysics", - "G4OpticalPhysics"}; + "G4OpticalPhysics"}; return validPhysicsLists.count(physicsListName) > 0; }