Changeset 1315 for trunk/source/processes/electromagnetic/lowenergy/src/G4DNAEmfietzoglouExcitationModel.cc
- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/lowenergy/src/G4DNAEmfietzoglouExcitationModel.cc
r1228 r1315 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4DNAEmfietzoglouExcitationModel.cc,v 1. 8 2009/08/13 11:32:47sincerti Exp $27 // GEANT4 tag $Name: geant4-09-0 3$26 // $Id: G4DNAEmfietzoglouExcitationModel.cc,v 1.10 2010/06/08 21:50:00 sincerti Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 28 28 // 29 29 … … 45 45 SetLowEnergyLimit(lowEnergyLimit); 46 46 SetHighEnergyLimit(highEnergyLimit); 47 48 nLevels = waterExcitation.NumberOfLevels(); 47 49 48 50 verboseLevel= 0; … … 97 99 98 100 // 99 100 nLevels = waterExcitation.NumberOfLevels();101 102 //103 101 if( verboseLevel>0 ) 104 102 { … … 122 120 // InitialiseElementSelectors(particle,cuts); 123 121 124 // Test if water material 125 126 flagMaterialIsWater= false; 127 densityWater = 0; 128 129 const G4ProductionCutsTable* theCoupleTable = G4ProductionCutsTable::GetProductionCutsTable(); 130 131 if(theCoupleTable) 132 { 133 G4int numOfCouples = theCoupleTable->GetTableSize(); 134 135 if(numOfCouples>0) 136 { 137 for (G4int i=0; i<numOfCouples; i++) 138 { 139 const G4MaterialCutsCouple* couple = theCoupleTable->GetMaterialCutsCouple(i); 140 const G4Material* material = couple->GetMaterial(); 141 142 if (material->GetName() == "G4_WATER") 143 { 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; 150 } 151 152 } 153 154 } // if(numOfCouples>0) 155 156 } // if (theCoupleTable) 157 158 } 159 160 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 161 162 G4double G4DNAEmfietzoglouExcitationModel::CrossSectionPerVolume(const G4Material*, 122 } 123 124 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 125 126 G4double G4DNAEmfietzoglouExcitationModel::CrossSectionPerVolume(const G4Material* material, 163 127 const G4ParticleDefinition* particleDefinition, 164 128 G4double ekin, … … 173 137 G4double sigma=0; 174 138 175 if ( flagMaterialIsWater)139 if (material->GetName() == "G4_WATER") 176 140 { 177 141 … … 188 152 G4cout << "---> Kinetic energy(eV)=" << ekin/eV << G4endl; 189 153 G4cout << " - Cross section per water molecule (cm^2)=" << sigma/cm/cm << G4endl; 190 G4cout << " - Cross section per water molecule (cm^-1)=" << sigma* densityWater/(1./cm) << G4endl;154 G4cout << " - Cross section per water molecule (cm^-1)=" << sigma*material->GetAtomicNumDensityVector()[1]/(1./cm) << G4endl; 191 155 } 192 156 193 } // if (flagMaterialIsWater)194 195 return sigma* densityWater;157 } 158 159 return sigma*material->GetAtomicNumDensityVector()[1]; 196 160 } 197 161 … … 271 235 sigma = excitationSigma / density; 272 236 } 237 273 238 return sigma; 274 239 }
Note: See TracChangeset
for help on using the changeset viewer.