Ignore:
Timestamp:
Nov 5, 2010, 4:08:39 PM (14 years ago)
Author:
garnier
Message:

update ti head

Location:
trunk/examples/extended/field/field04/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/extended/field/field04/src/F04OpticalPhysics.cc

    r807 r1342  
    3434#include "G4OpAbsorption.hh"
    3535#include "G4OpRayleigh.hh"
     36#include "G4OpMieHG.hh"
    3637#include "G4OpBoundaryProcess.hh"
    3738#include "G4OpWLS.hh"
     
    6667  G4OpAbsorption* theAbsorptionProcess= new G4OpAbsorption();
    6768  G4OpRayleigh* theRayleighScattering = new G4OpRayleigh();
     69  G4OpMieHG* theMieHGScatteringProcess = new G4OpMieHG();
    6870  G4OpBoundaryProcess* theBoundaryProcess = new G4OpBoundaryProcess();
    6971  G4OpWLS* theWLSProcess=new G4OpWLS();
     
    8284  pManager->AddDiscreteProcess(theAbsorptionProcess);
    8385  pManager->AddDiscreteProcess(theRayleighScattering);
     86  pManager->AddDiscreteProcess(theMieHGScatteringProcess);
    8487
    8588  theBoundaryProcess->SetModel(unified);
  • trunk/examples/extended/field/field04/src/F04PhysicsList.cc

    r1230 r1342  
    5656#include "G4MuonRadiativeDecayChannelWithSpin.hh"
    5757
    58 F04PhysicsList::F04PhysicsList(G4String physicsList) : G4VModularPhysicsList()
     58F04PhysicsList::F04PhysicsList(G4String physName) : G4VModularPhysicsList()
    5959{
    6060    G4LossTableManager::Instance();
     
    7070
    7171    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);
    7676
    7777    // 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");
    7982
    8083    for (G4int i = 0; ; ++i) {
Note: See TracChangeset for help on using the changeset viewer.