Changeset 1342 for trunk/examples/extended/field/field04/src
- Timestamp:
- Nov 5, 2010, 4:08:39 PM (14 years ago)
- Location:
- trunk/examples/extended/field/field04/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/field/field04/src/F04OpticalPhysics.cc
r807 r1342 34 34 #include "G4OpAbsorption.hh" 35 35 #include "G4OpRayleigh.hh" 36 #include "G4OpMieHG.hh" 36 37 #include "G4OpBoundaryProcess.hh" 37 38 #include "G4OpWLS.hh" … … 66 67 G4OpAbsorption* theAbsorptionProcess= new G4OpAbsorption(); 67 68 G4OpRayleigh* theRayleighScattering = new G4OpRayleigh(); 69 G4OpMieHG* theMieHGScatteringProcess = new G4OpMieHG(); 68 70 G4OpBoundaryProcess* theBoundaryProcess = new G4OpBoundaryProcess(); 69 71 G4OpWLS* theWLSProcess=new G4OpWLS(); … … 82 84 pManager->AddDiscreteProcess(theAbsorptionProcess); 83 85 pManager->AddDiscreteProcess(theRayleighScattering); 86 pManager->AddDiscreteProcess(theMieHGScatteringProcess); 84 87 85 88 theBoundaryProcess->SetModel(unified); -
trunk/examples/extended/field/field04/src/F04PhysicsList.cc
r1230 r1342 56 56 #include "G4MuonRadiativeDecayChannelWithSpin.hh" 57 57 58 F04PhysicsList::F04PhysicsList(G4String phys icsList) : G4VModularPhysicsList()58 F04PhysicsList::F04PhysicsList(G4String physName) : G4VModularPhysicsList() 59 59 { 60 60 G4LossTableManager::Instance(); … … 70 70 71 71 G4PhysListFactory factory; 72 G4VModularPhysicsList* phys = 0;73 74 if (factory.IsReferencePhysList(physicsList))75 phys =factory.GetReferencePhysList(physicsList);72 G4VModularPhysicsList* phys = NULL; 73 74 if (factory.IsReferencePhysList(physName)) 75 phys =factory.GetReferencePhysList(physName); 76 76 77 77 // Physics List is defined via environment variable PHYSLIST 78 if(!phys) phys = factory.ReferencePhysList(); 78 if (!phys) phys = factory.ReferencePhysList(); 79 80 if (!phys) G4Exception("WLSPhysicsList::WLSPhysicsList","InvalidSetup", 81 FatalException,"PhysicsList does not exist"); 79 82 80 83 for (G4int i = 0; ; ++i) {
Note: See TracChangeset
for help on using the changeset viewer.