Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/cross_sections/include/G4PiNuclearCrossSection.hh

    r1228 r1340  
    4242  virtual ~G4PiNuclearCrossSection();
    4343
    44   G4bool IsApplicable(const G4DynamicParticle* aParticle, const G4Element* anElement)
     44  G4bool IsApplicable(const G4DynamicParticle* aParticle,
     45                      const G4Element* anElement)
    4546  {
    4647    G4bool result = false;
     
    5253  }
    5354
    54   G4bool IsZAApplicable(const G4DynamicParticle* particle,
    55                         G4double ZZ, G4double /*AA*/)
     55  G4bool
     56  IsIsoApplicable(const G4DynamicParticle* particle, G4int ZZ, G4int /*AA*/)
    5657  {
    5758    G4bool result = false;
    5859    if(particle->GetDefinition() == G4PionMinus::PionMinus()) result=true;
    5960    if(particle->GetDefinition() == G4PionPlus::PionPlus())   result=true;
    60     if(G4lrint(ZZ) == 1) result = false;
     61    if(ZZ == 1) result = false;
    6162    if(particle->GetKineticEnergy() > 99.9*TeV) result=false;
    6263    return result;
    6364  }
     65
    6466
    6567  G4double GetCrossSection(const G4DynamicParticle* particle,
     
    6769                           G4double temperature)
    6870  {
    69     return GetIsoZACrossSection(particle, element->GetZ(),
    70                                 element->GetN(), temperature);
     71    G4int Z = G4lrint(element->GetZ());
     72    G4int A = G4lrint(element->GetN());
     73    return GetZandACrossSection(particle, Z, A, temperature);
    7174  }
    7275
    73   G4double GetIsoZACrossSection(const G4DynamicParticle* aParticle,
    74                                 G4double ZZ, G4double AA,
     76  G4double GetZandACrossSection(const G4DynamicParticle* aParticle,
     77                                G4int ZZ, G4int AA,
    7578                                G4double /*aTemperature*/);
    7679
    77   G4double GetTotalXsc()  { return fTotalXsc;   };
    78   G4double GetElasticXsc(){ return fElasticXsc; };
     80  G4double GetTotalXsc() {return fTotalXsc;};
     81  G4double GetElasticXsc() {return fElasticXsc;};
    7982
    8083
Note: See TracChangeset for help on using the changeset viewer.