56 G4XrayReflection* reflection =
new G4XrayReflection();
57 reflection->SetSurfaceRoughness(surfaceRoughness);
58 G4AutoDelete::Register(reflection);
60#if G4VERSION_NUMBER > 1129
61 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
64 auto aParticleIterator = GetParticleIterator();
65 aParticleIterator->reset();
67 while( (*aParticleIterator)() )
69 G4ParticleDefinition* particle = aParticleIterator->value();
70 G4String particleName = particle->GetParticleName();
71 if (particleName ==
"gamma")
73#if G4VERSION_NUMBER < 1129
74 particle->GetProcessManager()->AddDiscreteProcess(reflection);
76 ph->RegisterProcess(reflection, particle);