- Timestamp:
- Apr 6, 2009, 12:30:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/cross_sections/src/G4UInelasticCrossSection.cc
r819 r962 50 50 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 51 51 52 G4UInelasticCrossSection::G4UInelasticCrossSection(const G4ParticleDefinition* p) 53 { 52 G4UInelasticCrossSection::G4UInelasticCrossSection(const G4ParticleDefinition*) 53 { 54 verboseLevel = 0; 54 55 hasGlauber = false; 55 thEnergy = 100.*GeV;56 thEnergy = 90.*GeV; 56 57 fGlauber = new G4GlauberGribovCrossSection(); 57 58 fGheisha = G4HadronCrossSections::Instance(); 58 59 fNucleon = 0; 59 60 fUPi = 0; 60 if(p == G4Proton::Proton() || p == G4Neutron::Neutron())61 fNucleon = new G4NucleonNuclearCrossSection();62 else if(p == G4PionPlus::PionPlus() || p == G4PionMinus::PionMinus())63 fUPi = new G4UPiNuclearCrossSection();64 verboseLevel = 0;65 Initialise(p);66 61 } 67 62 … … 117 112 G4double cross = 0.0; 118 113 G4double ekin = dp->GetKineticEnergy(); 119 G4int iz = G4int(Z + 0.5);114 G4int iz = G4int(Z); 120 115 if(iz > 92) iz = 92; 121 116 … … 160 155 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 161 156 162 void G4UInelasticCrossSection::BuildPhysicsTable(const G4ParticleDefinition&) 163 { 157 void G4UInelasticCrossSection::BuildPhysicsTable(const G4ParticleDefinition& p) 158 { 159 if(&p == G4Proton::Proton() || &p == G4Neutron::Neutron()) { 160 fNucleon = new G4NucleonNuclearCrossSection(); 161 } else if(&p == G4PionPlus::PionPlus() || &p == G4PionMinus::PionMinus()) { 162 fUPi = new G4UPiNuclearCrossSection(); 163 } 164 Initialise(&p); 164 165 } 165 166
Note: See TracChangeset
for help on using the changeset viewer.