30 defaultCutValue = 0.7 * CLHEP::mm;
33 G4PhysListFactory physListFactory;
34 G4VModularPhysicsList* physList = NULL;
36 if (physListFactory.IsReferencePhysList(physicsListName)) physList = physListFactory.GetReferencePhysList(physicsListName);
37 if (physList == NULL) B2FATAL(
"Could not load the physics list " << physicsListName);
40 G4VPhysicsConstructor* regPhys =
const_cast<G4VPhysicsConstructor*
>(physList->GetPhysics(0));
41 while (regPhys != NULL) {
42 B2DEBUG(10,
"RegisterPhysics: " << regPhys->GetPhysicsName());
43 RegisterPhysics(regPhys);
44 regPhys =
const_cast<G4VPhysicsConstructor*
>(physList->GetPhysics(iPhysList++));