Ignore:
Timestamp:
Apr 6, 2009, 12:30:29 PM (15 years ago)
Author:
garnier
Message:

update processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/cross_sections/src/G4UInelasticCrossSection.cc

    r819 r962  
    5050//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
    5151
    52 G4UInelasticCrossSection::G4UInelasticCrossSection(const G4ParticleDefinition* p)
    53 {
     52G4UInelasticCrossSection::G4UInelasticCrossSection(const G4ParticleDefinition*)
     53{
     54  verboseLevel = 0;
    5455  hasGlauber = false;
    55   thEnergy   = 100.*GeV;
     56  thEnergy   = 90.*GeV;
    5657  fGlauber   = new G4GlauberGribovCrossSection();
    5758  fGheisha   = G4HadronCrossSections::Instance();
    5859  fNucleon   = 0;
    5960  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);
    6661}
    6762
     
    117112  G4double cross = 0.0;
    118113  G4double ekin = dp->GetKineticEnergy();
    119   G4int iz = G4int(Z + 0.5);
     114  G4int iz = G4int(Z);
    120115  if(iz > 92) iz = 92;
    121116
     
    160155//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
    161156
    162 void G4UInelasticCrossSection::BuildPhysicsTable(const G4ParticleDefinition&)
    163 {
     157void 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);
    164165}
    165166
Note: See TracChangeset for help on using the changeset viewer.