Changeset 1192 for trunk/source/processes/electromagnetic/lowenergy/src/G4DNAEmfietzoglouExcitationModel.cc
- Timestamp:
- Nov 19, 2009, 2:53:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/lowenergy/src/G4DNAEmfietzoglouExcitationModel.cc
r1058 r1192 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4DNAEmfietzoglouExcitationModel.cc,v 1. 5 2009/02/16 12:46:58sincerti Exp $27 // GEANT4 tag $Name: geant4-09-03-beta-cand-01$26 // $Id: G4DNAEmfietzoglouExcitationModel.cc,v 1.8 2009/08/13 11:32:47 sincerti Exp $ 27 // GEANT4 tag $Name: emlowen-V09-02-64 $ 28 28 // 29 29 … … 56 56 if (verboseLevel > 3) 57 57 58 G4cout << "Emfietzoglou Excitation model is constructed " << G4endl 59 << "Energy range: " 60 << lowEnergyLimit / eV << " eV - " 61 << highEnergyLimit / MeV << " MeV" 62 << G4endl; 63 58 if( verboseLevel>0 ) 59 { 60 G4cout << "Emfietzoglou Excitation model is constructed " << G4endl 61 << "Energy range: " 62 << lowEnergyLimit / eV << " eV - " 63 << highEnergyLimit / MeV << " MeV" 64 << G4endl; 65 } 64 66 } 65 67 … … 99 101 100 102 // 101 102 G4cout << "Emfietzoglou Excitation model is initialized " << G4endl 103 << "Energy range: " 104 << LowEnergyLimit() / eV << " eV - " 105 << HighEnergyLimit() / MeV << " MeV" 106 << G4endl; 103 if( verboseLevel>0 ) 104 { 105 G4cout << "Emfietzoglou Excitation model is initialized " << G4endl 106 << "Energy range: " 107 << LowEnergyLimit() / eV << " eV - " 108 << HighEnergyLimit() / MeV << " MeV" 109 << G4endl; 110 } 107 111 108 112 if(!isInitialised) … … 136 140 const G4Material* material = couple->GetMaterial(); 137 141 138 size_t j = material->GetNumberOfElements(); 139 while (j>0) 142 if (material->GetName() == "G4_WATER") 140 143 { 141 j--; 142 const G4Element* element(material->GetElement(j)); 143 if (element->GetZ() == 8.) 144 { 145 G4double density = material->GetAtomicNumDensityVector()[j]; 146 if (density > 0.) 147 { 148 flagMaterialIsWater = true; 149 densityWater = density; 150 151 if (verboseLevel > 3) 152 G4cout << "Water material is found with density(cm^-3)=" << density/(cm*cm*cm) << G4endl; 153 } 154 } 144 G4double density = material->GetAtomicNumDensityVector()[1]; 145 flagMaterialIsWater = true; 146 densityWater = density; 147 148 if (verboseLevel > 3) 149 G4cout << "****** Water material is found with density(cm^-3)=" << density/(cm*cm*cm) << G4endl; 155 150 } 156 151 157 152 } 158 } // if(numOfCouples>0) 153 154 } // if(numOfCouples>0) 159 155 160 156 } // if (theCoupleTable)
Note: See TracChangeset
for help on using the changeset viewer.