- Timestamp:
- Apr 6, 2009, 12:21:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/standard/src/G4ComptonScattering.cc
r819 r961 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4ComptonScattering.cc,v 1. 27 2006/09/14 10:27:19 maireExp $27 // GEANT4 tag $Name: geant4-09-0 1-patch-02 $26 // $Id: G4ComptonScattering.cc,v 1.31 2009/02/20 12:06:37 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 28 28 // 29 29 // … … 74 74 isInitialised(false) 75 75 { 76 SetLambdaBinning(90); 77 SetMinKinEnergy(0.1*keV); 78 SetMaxKinEnergy(100.0*GeV); 76 SetProcessSubType(fComptonScattering); 79 77 } 80 78 … … 86 84 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 87 85 86 G4bool G4ComptonScattering::IsApplicable(const G4ParticleDefinition& p) 87 { 88 return (&p == G4Gamma::Gamma()); 89 } 90 91 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 92 88 93 void G4ComptonScattering::InitialiseProcess(const G4ParticleDefinition*) 89 94 { … … 92 97 SetBuildTableFlag(true); 93 98 SetSecondaryParticle(G4Electron::Electron()); 94 G4double emin = MinKinEnergy();95 G4double emax = MaxKinEnergy();96 99 if(!Model()) SetModel(new G4KleinNishinaCompton); 97 Model()->SetLowEnergyLimit( emin);98 Model()->SetHighEnergyLimit( emax);100 Model()->SetLowEnergyLimit(MinKinEnergy()); 101 Model()->SetHighEnergyLimit(MaxKinEnergy()); 99 102 AddEmModel(1, Model()); 100 103 } … … 104 107 105 108 void G4ComptonScattering::PrintInfo() 106 { 107 G4cout 108 << " Total cross sections has a good parametrisation" 109 << " from 10 KeV to (100/Z) GeV" 110 << "\n Sampling according " << Model()->GetName() << " model" 111 << G4endl; 112 } 109 {} 113 110 114 111 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracChangeset
for help on using the changeset viewer.