57 G4XrayReflection* reflection =
new G4XrayReflection();
58 reflection->SetSurfaceRoughness(surfaceRoughness);
59 G4AutoDelete::Register(reflection);
61#if G4VERSION_NUMBER > 1129
62 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
65 auto aParticleIterator = GetParticleIterator();
66 aParticleIterator->reset();
68 while( (*aParticleIterator)() )
70 G4ParticleDefinition* particle = aParticleIterator->value();
71 G4String particleName = particle->GetParticleName();
72 if (particleName ==
"gamma")
74#if G4VERSION_NUMBER < 1129
75 particle->GetProcessManager()->AddDiscreteProcess(reflection);
77 ph->RegisterProcess(reflection, particle);