Changeset 1007 for trunk/source/processes/electromagnetic/lowenergy/src/G4PenelopeBremsstrahlungContinuous.cc
- Timestamp:
- Apr 20, 2009, 5:54:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/lowenergy/src/G4PenelopeBremsstrahlungContinuous.cc
r1005 r1007 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4PenelopeBremsstrahlungContinuous.cc,v 1.1 1 2008/12/15 09:23:06pandola Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4PenelopeBremsstrahlungContinuous.cc,v 1.10 2008/12/09 15:08:13 pandola Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // -------------------------------------------------------------- … … 97 97 G4String dirFile = pathString + "/penelope/" + name; 98 98 std::ifstream file(dirFile); 99 if (!file.is_open()) 99 std::filebuf* lsdp = file.rdbuf(); 100 if (!(lsdp->is_open())) 100 101 { 101 102 G4String excep = "G4PenelopeBremsstrahlungContinuous - data file " + name + " not found!"; … … 111 112 for (size_t j=0;j<NumberofKPoints;j++){ 112 113 file >> a1; 113 ReducedCS[i][j]=a1*cm2; 114 ReducedCS[i][j]=a1*cm2; //coversion present in Penelope source 114 115 } 115 116 //3) read the total cross section, in cm2 116 117 file >> a1; 117 TotalCS[i]=a1*cm2; 118 TotalCS[i]=a1*cm2; //conversion present in Penelope source 118 119 // Check closing item 119 120 file >> a1; 120 121 if (a1 != ((G4double) -1)) 121 122 { 122 G4String excep = "G4PenelopeBremsstrahlungContinuous - Check the bremms data file " 123 + name; 123 G4String excep = "G4PenelopeBremsstrahlungContinuous - Check the bremms data file " + name; 124 124 G4Exception(excep); 125 125 } … … 229 229 230 230 //Global x-section factor 231 G4double Fact=Zmat*Zmat*(energy+electron_mass_c2)*(energy+electron_mass_c2)/ 232 (energy*(energy+2.0*electron_mass_c2)); 231 G4double Fact=Zmat*Zmat*(energy+electron_mass_c2)*(energy+electron_mass_c2)/(energy*(energy+2.0*electron_mass_c2)); 233 232 Fact *= PositronCorrection(energy); 234 233
Note: See TracChangeset
for help on using the changeset viewer.