- Timestamp:
- Apr 6, 2009, 12:21:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/highenergy/src/G4GammaConversionToMuons.cc
r819 r961 25 25 // 26 26 // 27 // $Id: G4GammaConversionToMuons.cc,v 1. 4 2006/06/29 19:32:40 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 1-patch-02 $27 // $Id: G4GammaConversionToMuons.cc,v 1.7 2008/10/16 14:29:48 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // ------------ G4GammaConversionToMuons physics process ------ … … 51 51 HighestEnergyLimit(1e21*eV), // ok to 1e21eV=1e12GeV, then LPM suppression 52 52 CrossSecFactor(1.) 53 { } 53 { 54 SetProcessSubType(15); 55 } 54 56 55 57 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... … … 261 263 G4double xxp=1.-4./3.*xPM; // the main xPlus dependence 262 264 result=xxp*log(W)*LogWmaxInv; 263 if(result>1.) 264 { G4cout << "error in dSigxPlusGen, result=" << result << " is >1" << '\n';265 exit(10);265 if(result>1.) { 266 G4cout << "G4GammaConversionToMuons::PostStepDoIt WARNING:" 267 << " in dSigxPlusGen, result=" << result << " > 1" << G4endl; 266 268 } 267 269 } … … 285 287 f1=(1.-2.*xPM+4.*xPM*t*(1.-t)) / (1.+C1/(t*t)); 286 288 if(f1<0 || f1> f1_max) // should never happend 287 { G4cout << "outside allowed range f1=" << f1 << G4endl; 288 exit(1); 289 } 289 { 290 G4cout << "G4GammaConversionToMuons::PostStepDoIt WARNING:" 291 << "outside allowed range f1=" << f1 << " is set to zero" 292 << G4endl; 293 f1 = 0.0; 294 } 290 295 } 291 296 while ( G4UniformRand()*f1_max > f1); … … 299 304 f2=1.-2.*xPM+4.*xPM*t*(1.-t)*(1.+cos(2.*psi)); 300 305 if(f2<0 || f2> f2_max) // should never happend 301 { G4cout << "outside allowed range f2=" << f2 << G4endl; 302 exit(1); 303 } 306 { 307 G4cout << "G4GammaConversionToMuons::PostStepDoIt WARNING:" 308 << "outside allowed range f2=" << f2 << " is set to zero" 309 << G4endl; 310 f2 = 0.0; 311 } 304 312 } 305 313 while ( G4UniformRand()*f2_max > f2); … … 387 395 void G4GammaConversionToMuons::PrintInfoDefinition() 388 396 { 389 G4String comments ="gamma->mu+mu- Bethe Heitler process .\n";397 G4String comments ="gamma->mu+mu- Bethe Heitler process, SubType= "; 390 398 G4cout << G4endl << GetProcessName() << ": " << comments 391 << " good cross section parametrization from " 399 << GetProcessSubType() << G4endl; 400 G4cout << " good cross section parametrization from " 392 401 << G4BestUnit(LowestEnergyLimit,"Energy") 393 402 << " to " << HighestEnergyLimit/GeV << " GeV for all Z." << G4endl;
Note: See TracChangeset
for help on using the changeset viewer.