Ignore:
Timestamp:
Apr 20, 2009, 5:54:05 PM (15 years ago)
Author:
garnier
Message:

update to geant4.9.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/electromagnetic/lowenergy/src/G4PenelopeBremsstrahlungContinuous.cc

    r1005 r1007  
    2424// ********************************************************************
    2525//
    26 // $Id: G4PenelopeBremsstrahlungContinuous.cc,v 1.11 2008/12/15 09:23:06 pandola 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 $
    2828//
    2929// --------------------------------------------------------------
     
    9797 G4String dirFile = pathString + "/penelope/" + name;
    9898 std::ifstream file(dirFile);
    99  if (!file.is_open())
     99 std::filebuf* lsdp = file.rdbuf();
     100 if (!(lsdp->is_open()))
    100101     {
    101102      G4String excep = "G4PenelopeBremsstrahlungContinuous - data file " + name + " not found!";
     
    111112     for (size_t j=0;j<NumberofKPoints;j++){
    112113       file >> a1;
    113        ReducedCS[i][j]=a1*cm2;
     114       ReducedCS[i][j]=a1*cm2; //coversion present in Penelope source
    114115     }
    115116     //3) read the total cross section, in cm2
    116117     file >> a1;
    117      TotalCS[i]=a1*cm2;
     118     TotalCS[i]=a1*cm2; //conversion present in Penelope source
    118119     // Check closing item
    119120     file >> a1;
    120121     if (a1 != ((G4double) -1))
    121122       {
    122          G4String excep = "G4PenelopeBremsstrahlungContinuous - Check the bremms data file "
    123            + name;
     123         G4String excep = "G4PenelopeBremsstrahlungContinuous - Check the bremms data file " + name;
    124124         G4Exception(excep);
    125125       }
     
    229229 
    230230  //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));
    233232  Fact *= PositronCorrection(energy);
    234233
Note: See TracChangeset for help on using the changeset viewer.