- Timestamp:
- Apr 20, 2009, 4:53:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/lowenergy/src/G4LivermoreRayleighModel.cc
r991 r1005 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4LivermoreRayleighModel.cc,v 1. 1 2008/10/30 14:16:35sincerti Exp $27 // GEANT4 tag $Name: geant4-09-02 $26 // $Id: G4LivermoreRayleighModel.cc,v 1.2 2009/01/21 10:58:13 sincerti Exp $ 27 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 28 28 // 29 29 … … 38 38 G4LivermoreRayleighModel::G4LivermoreRayleighModel(const G4ParticleDefinition*, 39 39 const G4String& nam) 40 :G4VEmModel(nam),isInitialised(false) 40 :G4VEmModel(nam),isInitialised(false),meanFreePathTable(0),formFactorData(0),crossSectionHandler(0) 41 41 { 42 42 lowEnergyLimit = 250 * eV; // SI - Could be 10 eV ? … … 65 65 G4LivermoreRayleighModel::~G4LivermoreRayleighModel() 66 66 { 67 delete meanFreePathTable;68 delete crossSectionHandler;69 delete formFactorData;67 if (meanFreePathTable) delete meanFreePathTable; 68 if (crossSectionHandler) delete crossSectionHandler; 69 if (formFactorData) delete formFactorData; 70 70 } 71 71 … … 78 78 G4cout << "Calling G4LivermoreRayleighModel::Initialise()" << G4endl; 79 79 80 InitialiseElementSelectors(particle,cuts); 81 80 if (crossSectionHandler) 81 { 82 crossSectionHandler->Clear(); 83 delete crossSectionHandler; 84 } 85 82 86 // Energy limits 83 87 … … 115 119 if (verboseLevel > 2) 116 120 G4cout << "Loaded cross section files for Livermore Rayleigh model" << G4endl; 121 122 InitialiseElementSelectors(particle,cuts); 117 123 118 124 G4cout << "Livermore Rayleigh model is initialized " << G4endl … … 166 172 fParticleChange->SetProposedKineticEnergy(0.); 167 173 fParticleChange->ProposeLocalEnergyDeposit(photonEnergy0); 168 // SI - IS THE FOLLOWING RETURN NECESSARY ?169 174 return ; 170 175 }
Note: See TracChangeset
for help on using the changeset viewer.