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/models/pre_equilibrium/exciton_model/include/G4VPreCompoundFragment.icc

    r1337 r1340  
    2525//
    2626//
    27 // $Id: G4VPreCompoundFragment.icc,v 1.7 2008/09/22 10:18:36 ahoward Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4VPreCompoundFragment.icc,v 1.8 2010/08/28 15:16:55 vnivanch Exp $
     28// GEANT4 tag $Name: geant4-09-03-ref-09 $
    2929//
    3030// by V. Lara
     
    3434// JMQ (06 September 2008) Also external choice has been added for:
    3535//                      - superimposed Coulomb barrier (if useSICB=true)
     36// 23.08.2010 V.Ivanchenko general cleanup, move constructor and destructor
     37//            the source, make GetReactionProduct() and IsItPossible inlined
    3638
    37 inline G4double G4VPreCompoundFragment::GetA() const
     39inline G4bool G4VPreCompoundFragment::
     40IsItPossible(const G4Fragment & aFragment) const
     41{
     42  G4int pplus = aFragment.GetNumberOfCharged();
     43  G4int pneut = aFragment.GetNumberOfParticles()-pplus;
     44  return ((pneut >= theA - theZ) && (pplus >= theZ)
     45        && (theMaximalKineticEnergy > 0));
     46}
     47
     48
     49inline
     50G4ReactionProduct * G4VPreCompoundFragment::GetReactionProduct() const
     51{
     52  G4ReactionProduct * theReactionProduct =
     53    new G4ReactionProduct(const_cast<G4ParticleDefinition*>(particle));
     54  theReactionProduct->SetMomentum(GetMomentum().vect());
     55  theReactionProduct->SetTotalEnergy(GetMomentum().e());
     56  return theReactionProduct;
     57}
     58
     59inline G4int G4VPreCompoundFragment::GetA() const
    3860{
    3961  return theA;
    4062}
    4163
    42 inline G4double G4VPreCompoundFragment::GetZ() const
     64inline G4int G4VPreCompoundFragment::GetZ() const
    4365{
    4466  return theZ;
    4567}
    4668
    47 inline G4double G4VPreCompoundFragment::GetRestA() const
     69inline G4int G4VPreCompoundFragment::GetRestA() const
    4870{
    4971  return theRestNucleusA;
    5072}
    5173   
    52 inline G4double G4VPreCompoundFragment::GetRestZ() const
     74inline G4int G4VPreCompoundFragment::GetRestZ() const
    5375{
    5476  return theRestNucleusZ;
     77}
     78
     79inline G4double G4VPreCompoundFragment::ResidualA13() const
     80{
     81  return theRestNucleusA13;
    5582}
    5683   
     
    82109inline G4double G4VPreCompoundFragment::GetNuclearMass(void) const
    83110{
    84   return G4ParticleTable::GetParticleTable()->
    85       GetIonTable()->GetIonMass(static_cast<G4int>(theZ),static_cast<G4int>(theA));
     111  return theMass;
    86112}
    87 
    88113
    89114inline G4double G4VPreCompoundFragment::GetRestNuclearMass() const
    90115{
    91   return G4ParticleTable::GetParticleTable()->GetIonTable()->
    92     GetIonMass(static_cast<G4int>(theRestNucleusZ),static_cast<G4int>(theRestNucleusA));
     116  return theRestNucleusMass;
    93117}
    94 
    95118
    96119inline G4double G4VPreCompoundFragment::GetReducedMass() const
    97120{
    98   return GetRestNuclearMass()*GetNuclearMass()/
    99     (GetNuclearMass()+GetRestNuclearMass());
     121  return theReducedMass;
    100122}
    101123
    102 
    103 inline const G4LorentzVector G4VPreCompoundFragment::
    104 GetMomentum() const
     124inline
     125const G4LorentzVector& G4VPreCompoundFragment::GetMomentum() const
    105126{
    106127  return theMomentum;
    107128}
    108 
    109129   
    110 inline void G4VPreCompoundFragment::
    111 SetMomentum(const G4LorentzVector & value)
     130inline
     131void G4VPreCompoundFragment::SetMomentum(const G4LorentzVector & value)
    112132{
    113133  theMomentum = value;
    114 }
    115    
    116 inline void G4VPreCompoundFragment::
    117 SetFragmentName(const G4String& aName)
    118 {
    119   theFragmentName = aName;
    120134}
    121135
     
    123137GetName() const
    124138{
    125   return theFragmentName;
    126 }
    127    
    128 inline void G4VPreCompoundFragment::ResetStage()
    129 {
    130   theStage = 1;
    131 }
    132 
    133 inline G4int G4VPreCompoundFragment::GetStage() const
    134 {
    135   return theStage;
    136 }
    137 
    138 inline void G4VPreCompoundFragment::IncrementStage()
    139 {
    140   theStage++;
     139  return particle->GetParticleName();
    141140}
    142141
     
    145144{
    146145  OPTxs=opt;
    147   return;
    148146}
    149147
     
    152150{
    153151  useSICB=use;
    154   return;
    155152}
Note: See TracChangeset for help on using the changeset viewer.