- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/cross_sections/src/G4NeutronElasticXS.cc
r1228 r1315 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4NeutronElasticXS.cc,v 1. 3 2009/11/19 12:01:54vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-0 3$26 // $Id: G4NeutronElasticXS.cc,v 1.4 2010/06/03 11:50:21 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 140 140 // check environment variable 141 141 // Build the complete string identifying the file with the data set 142 char* path = getenv("G4NEUTRONXS ");142 char* path = getenv("G4NEUTRONXSDATA"); 143 143 if (!path){ 144 G4cout << "G4NEUTRONXS environment variable not set" << G4endl;144 G4cout << "G4NEUTRONXSDATA environment variable not set" << G4endl; 145 145 } 146 146 … … 178 178 // check environment variable 179 179 // Build the complete string identifying the file with the data set 180 path = getenv("G4NEUTRONXS ");180 path = getenv("G4NEUTRONXSDATA"); 181 181 if (!path) { 182 182 if(verboseLevel > 1) { 183 G4cout << "G4NEUTRONXS environment variable not set" << G4endl;183 G4cout << "G4NEUTRONXSDATA environment variable not set" << G4endl; 184 184 } 185 185 return; … … 217 217 ggXsection->GetCrossSection(dynParticle, Elem); 218 218 G4double sig2 = ggXsection->GetElasticGlauberGribovXsc(); 219 if(sig2 > 0.) coeff[Z] = sig1/sig2;219 if(sig2 > 0.) { coeff[Z] = sig1/sig2; } 220 220 } 221 if(!dp) delete dynParticle;222 } 221 if(!dp) { delete dynParticle; } 222 }
Note: See TracChangeset
for help on using the changeset viewer.