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/src/G4HadronNucleonXsc.cc

    r1228 r1340  
    3333#include "G4IonTable.hh"
    3434#include "G4ParticleDefinition.hh"
    35 
    36 //////////////////////////////////////////////////////////////////////////////////////
    37 //
    38 //
     35#include "G4HadTmpUtil.hh"
    3936
    4037
     
    8077
    8178G4HadronNucleonXsc::~G4HadronNucleonXsc()
    82 {
    83 }
     79{}
    8480
    8581
     
    9187G4bool
    9288G4HadronNucleonXsc::IsApplicable(const G4DynamicParticle* aDP,
    93                                           const G4Element* anElement)
     89                                 const G4Element* anElement)
    9490{
    95   return IsZAApplicable(aDP, anElement->GetZ(), anElement->GetN());
     91  G4int Z = G4lrint(anElement->GetZ());
     92  G4int A = G4lrint(anElement->GetN());
     93  return IsIsoApplicable(aDP, Z, A);
    9694}
    9795
    9896////////////////////////////////////////////////////////////////////////////////////////
    9997//
    100 //
    10198
    10299G4bool
    103 G4HadronNucleonXsc::IsZAApplicable(const G4DynamicParticle* aDP,
    104                                             G4double Z, G4double)
     100G4HadronNucleonXsc::IsIsoApplicable(const G4DynamicParticle* aDP,
     101                                    G4int Z, G4int)
    105102{
    106   G4bool applicable      = false;
     103  G4bool applicable = false;
    107104  // G4int baryonNumber     = aDP->GetDefinition()->GetBaryonNumber();
    108105  G4double kineticEnergy = aDP->GetKineticEnergy();
     
    111108 
    112109  if ( ( kineticEnergy  >= fLowerLimit &&
    113          Z > 1.5 &&      // >=  He
     110         Z > 1 &&      // >=  He
    114111       ( theParticle == theAProton   ||
    115112         theParticle == theGamma     ||
     
    119116
    120117       ( kineticEnergy  >= 0.1*fLowerLimit &&
    121          Z > 1.5 &&      // >=  He
     118         Z > 1 &&      // >=  He
    122119       ( theParticle == theProton    ||
    123120         theParticle == theNeutron   ||   
     
    127124  return applicable;
    128125}
    129 
    130 
    131126
    132127
     
    210205
    211206
    212 
    213 
    214 
    215207/////////////////////////////////////////////////////////////////////////////////////
    216208//
     
    242234  G4double B    = 0.308;
    243235
    244 
    245236  const G4ParticleDefinition* theParticle = aParticle->GetDefinition();
    246237
     
    249240  G4bool neutron = (nucleon == theNeutron);
    250241 
    251 
    252242  if(theParticle == theNeutron) // proton-neutron fit
    253243  {
     
    358348  return xsection;
    359349}
    360 
    361350
    362351
     
    758747  G4bool neutron = (nucleon == theNeutron);
    759748
    760 
    761 
    762749   
    763750  if( absPDGcode > 1000 && pORn )  //------Projectile is baryon -
Note: See TracChangeset for help on using the changeset viewer.