Ignore:
Timestamp:
Nov 25, 2008, 5:27:50 PM (16 years ago)
Author:
garnier
Message:

update to pre-tag revision

Location:
trunk/source/particles/management/include
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/particles/management/include/G4NucleiProperties.hh

    r850 r890  
    2525//
    2626//
    27 // $Id: G4NucleiProperties.hh,v 1.14 2006/06/29 19:23:54 gunter Exp $
    28 // GEANT4 tag $Name: HEAD $
     27// $Id: G4NucleiProperties.hh,v 1.18 2008/10/28 07:12:31 kurasige Exp $
     28// GEANT4 tag $Name: $
    2929//
    3030//
     
    5454 //   (i.e. it has static member function only)
    5555
    56 
    5756public:
    5857
     
    6665public:  // With Description
    6766
    68         // Calculate Mass Excess of nucleus A,Z
    69         static G4double GetMassExcess(const G4int A, const G4int Z);
     67  // Give mass of nucleus A,Z
     68  static G4double GetNuclearMass(const G4double A, const G4double Z);
    7069
    71         static G4double GetAtomicMass(const G4double A, const G4double Z);
    72        
    73         static G4double GetBindingEnergy(const G4int A, const G4int Z);
    74        
    75         static G4double GetNuclearMass(const G4double A, const G4double Z);
     70  // return 'true' if the nucleus in the stable table
     71  // (i.e.in G4NucleiPropertiesTable)
     72  static bool IsInStableTable(const G4double A, const G4double Z);
     73
     74  // Give binding energy
     75  static G4double GetBindingEnergy(const G4int A, const G4int Z);
     76  static G4double GetBindingEnergy(const G4double A, const G4double Z);
     77
     78  // Calculate Mass Excess of nucleus A,Z
     79  static G4double GetMassExcess(const G4int A, const G4int Z);
     80  static G4double GetMassExcess(const G4double A, const G4double Z);
    7681
    7782private:
     83  // hidie methods to enforce using GetNuclearMass
     84  // Give mass of Atom A,Z
     85  static G4double GetAtomicMass(const G4double A, const G4double Z);
     86 
     87private:
     88 
     89  static G4double  AtomicMass(G4double A, G4double Z);
     90 
     91  static G4double BindingEnergy(G4double A, G4double Z);
     92 
     93  static G4double MassExcess(G4double A, G4double Z);
    7894
    79         // Calculate Mass Excess according to Cameron's liquid drop formula
    80 //      static G4double CameronMassExcess(const G4int A, const G4int Z);
     95private:
     96  // table of orbit electrons mass - binding energy
     97  enum  {MaxZ = 120};
     98  static G4double electronMass[MaxZ];
    8199
    82         static G4double  AtomicMass(G4double A, G4double Z);
    83        
    84         static G4double BindingEnergy(G4double A, G4double Z);
    85 
    86         static G4double MassExcess(G4double A, G4double Z);
    87        
    88        
     100private:
     101  static G4bool   isIntialized;
     102  static G4double mass_proton;
     103  static G4double mass_neutron;
     104  static G4double mass_deuteron;
     105  static G4double mass_triton;
     106  static G4double mass_alpha;
     107  static G4double mass_He3;
     108       
    89109};
    90110
  • trunk/source/particles/management/include/G4NucleiPropertiesTable.hh

    r850 r890  
    2525//
    2626//
    27 // $Id: G4NucleiPropertiesTable.hh,v 1.13 2006/06/29 19:23:56 gunter Exp $
    28 // GEANT4 tag $Name: HEAD $
     27// $Id: G4NucleiPropertiesTable.hh,v 1.14 2008/10/22 12:35:46 kurasige Exp $
     28// GEANT4 tag $Name: $
    2929//
    3030// -------------------------------------------------------------------
     
    6767//      Atomic Mass
    6868
     69class G4NucleiProperties;
    6970
    7071class G4NucleiPropertiesTable
     
    8384
    8485  // Other Operations
    85  public: // With Description
     86  // all methods are private and can be used only by G4NucleiProperties
     87
     88  friend class G4NucleiProperties; 
     89
     90private:
    8691
    8792  // Operation: GetMassExcess
  • trunk/source/particles/management/include/G4NucleiPropertiesTheoreticalTable.hh

    r850 r890  
    2525//
    2626//
    27 // $Id: G4NucleiPropertiesTheoreticalTable.hh,v 1.7 2006/06/29 19:23:58 gunter Exp $
    28 // GEANT4 tag $Name: HEAD $
     27// $Id: G4NucleiPropertiesTheoreticalTable.hh,v 1.8 2008/10/22 12:35:46 kurasige Exp $
     28// GEANT4 tag $Name: $
    2929//
    3030//
     
    4646#include "globals.hh"
    4747
     48class G4NucleiProperties;
     49
    4850class G4NucleiPropertiesTheoreticalTable
    4951{
     
    6163
    6264  // Other Operations
     65  // all methods are private and can be used only by G4NucleiProperties
     66  friend class G4NucleiProperties; 
    6367
    64  public: // With Description
     68 
     69 private: // With Description
    6570  // Operation: GetMassExcess
    6671  static G4double GetMassExcess(G4int Z, G4int A);
  • trunk/source/particles/management/include/G4ParticleDefinition.hh

    r850 r890  
    2525//
    2626//
    27 // $Id: G4ParticleDefinition.hh,v 1.32 2008/03/22 06:03:40 kurasige Exp $
    28 // GEANT4 tag $Name: HEAD $
     27// $Id: G4ParticleDefinition.hh,v 1.33 2008/11/14 16:26:30 kurasige Exp $
     28// GEANT4 tag $Name: $
    2929//
    3030//
     
    129129 
    130130      G4double GetPDGMagneticMoment() const { return thePDGMagneticMoment; }
    131   void SetPDGMagneticMoment(G4double mageticMoment);
     131      void     SetPDGMagneticMoment(G4double mageticMoment);
     132      G4double CalculateAnomaly()  const;
     133      // gives the anomaly of magnetic moment for spin 1/2 particles
    132134
    133135      const G4String& GetParticleType() const { return theParticleType; }
  • trunk/source/particles/management/include/G4ParticleDefinition.icc

    r850 r890  
    2525//
    2626//
    27 // $Id: G4ParticleDefinition.icc,v 1.12 2007/03/11 07:17:35 kurasige Exp $
    28 // GEANT4 tag $Name: HEAD $
     27// $Id: G4ParticleDefinition.icc,v 1.13 2008/11/14 16:26:30 kurasige Exp $
     28// GEANT4 tag $Name: $
    2929//
    3030
     
    155155}
    156156
    157 
     157inline
     158  G4double G4ParticleDefinition::CalculateAnomaly()  const
     159{
     160   // gives the anomaly of magnetic moment for spin 1/2 particles
     161   if (thePDGiSpin==1) {
     162     G4double muB = 0.5*eplus*hbar_Planck/(thePDGMass/c_squared);
     163     return 0.5*fabs(thePDGMagneticMoment/muB - 2.*thePDGCharge/eplus);   
     164   } else {     
     165     return 0.0;
     166   }
     167}
Note: See TracChangeset for help on using the changeset viewer.