#include "Physics.hh" MyPhysicsList::MyPhysicsList() { RegisterPhysics (new G4EmStandardPhysics_option4()); RegisterPhysics (new G4HadronPhysicsQGSP_BIC_HP()); } MyPhysicsList::~MyPhysicsList() { } void MyPhysicsList::ConstructProcess() { G4VModularPhysicsList::ConstructProcess(); AddTransportation(); MyReflectorProcess* myReflectorProcess = new MyReflectorProcess(); auto particleIterator = GetParticleIterator(); particleIterator->reset(); while ((*particleIterator)()) { G4ParticleDefinition* particle = particleIterator->value(); G4ProcessManager* pmanager = particle->GetProcessManager(); if (pmanager) { pmanager->AddDiscreteProcess(myReflectorProcess); } } }