Ignore:
Timestamp:
Nov 25, 2009, 5:13:58 PM (15 years ago)
Author:
garnier
Message:

update CVS release candidate geant4.9.3.01

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

Legend:

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

    r992 r1196  
    2626//
    2727// $Id: G4DalitzDecayChannel.hh,v 1.5 2006/06/29 19:22:43 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4DecayProducts.hh

    r992 r1196  
    2626//
    2727// $Id: G4DecayProducts.hh,v 1.12 2006/06/29 19:22:45 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4DecayTable.hh

    r992 r1196  
    2626//
    2727// $Id: G4DecayTable.hh,v 1.9 2006/06/29 19:22:47 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4DecayTableMessenger.hh

    r992 r1196  
    2626//
    2727// $Id: G4DecayTableMessenger.hh,v 1.8 2006/06/29 19:22:52 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4DynamicParticle.hh

    r992 r1196  
    2626//
    2727// $Id: G4DynamicParticle.hh,v 1.18 2007/03/11 07:17:35 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4DynamicParticle.icc

    r992 r1196  
    2626//
    2727// $Id: G4DynamicParticle.icc,v 1.16 2007/03/11 07:17:35 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4DynamicParticleFastVector.hh

    r992 r1196  
    2626//
    2727// $Id: G4DynamicParticleFastVector.hh,v 1.4 2006/06/29 19:23:06 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4ElectronOccupancy.hh

    r992 r1196  
    2525//
    2626//
    27 // $Id: G4ElectronOccupancy.hh,v 1.9 2006/06/29 19:23:08 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4ElectronOccupancy.hh,v 1.10 2009/10/21 12:50:31 kurasige Exp $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
     
    6262{
    6363 public:
    64    enum { MaxSizeOfOrbit = 7};
     64   enum { MaxSizeOfOrbit = 10};
    6565
    6666 public: // With Description
  • trunk/source/particles/management/include/G4HyperNucleiProperties.hh

    r992 r1196  
    2626//
    2727// $Id: G4HyperNucleiProperties.hh,v 1.1 2007/09/14 07:04:09 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4IonTable.hh

    r992 r1196  
    2525//
    2626//
    27 // $Id: G4IonTable.hh,v 1.26 2008/03/20 02:23:30 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4IonTable.hh,v 1.28 2009/09/23 12:13:48 kurasige Exp $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
     
    4343//      New design using G4VIsotopeTable          5 Oct. 99 H.Kurashige
    4444//      Add GetNucleusEncoding according PDG 2006 9 Oct. 2006 H.Kurashige
     45//      Use STL map                              30 Jul. 2009 H.Kurashige
    4546
    4647#ifndef G4IonTable_h
     
    5051#include "globals.hh"
    5152#include "G4ParticleDefinition.hh"
     53#include "G4ParticleTableIterator.hh"
     54#include "G4Ions.hh"
    5255
    5356#include <cmath>
    5457#include <vector>
     58#include <map>
    5559
    5660class G4ParticleTable;
     
    6670
    6771 public:
    68    // Use STL Vector as list of ions
    69    typedef std::vector<G4ParticleDefinition*> G4IonList;
     72   // Use STL map as list of ions
     73   typedef  std::multimap<G4int, G4ParticleDefinition*> G4IonList;
     74   typedef  std::multimap<G4int, G4ParticleDefinition*>::iterator G4IonListIterator;
    7075
    7176 public:
     
    111116   // The ion can be get by using PDG encoding
    112117   // !! Only ground state can be obtained .i.e. Isomer = 0
    113  
     118   
     119   void CreateAllIon();
     120   // All ground state ions will be created
    114121
    115122   // Find/Get "excited state"
     
    130137   // The third and last arguments gives no effect
    131138
    132    static G4bool        IsIon(G4ParticleDefinition*);
     139   static G4bool        IsIon(const G4ParticleDefinition*);
    133140   // return true if the particle is ion
    134141
     
    183190   G4ParticleDefinition* GetParticle(G4int index) const;
    184191   // Return the pointer of index-th ion in the table
    185 
     192 
    186193   G4bool                Contains(const G4ParticleDefinition *particle) const;
    187194   // Return 'true' if the ion exists
     
    237244  return numberOfElements;
    238245}
     246
    239247inline G4bool  G4IonTable::Contains(const G4ParticleDefinition* particle) const
    240248{
    241   G4IonList::iterator i;
    242   for (i = fIonList->begin(); i!= fIonList->end(); ++i) {
    243     if (**i==*particle) return true;
     249  if (!IsIon(particle)) return false;
     250
     251  G4int Z = particle->GetAtomicNumber();
     252  G4int A = particle->GetAtomicMass(); 
     253  G4int L = particle->GetQuarkContent(3);  //strangeness
     254  G4int encoding=GetNucleusEncoding(Z, A, L);
     255  G4bool found = false;
     256  if (encoding !=0 ) {
     257    G4IonList::iterator i = fIonList->find(encoding);
     258    for( ;i != fIonList->end() ; i++) {
     259      if (particle == i->second ) {
     260        found  = true;
     261        break;
     262      }
     263    }
    244264  }
    245   return false;
     265  return found;
    246266}
    247267
     
    258278inline void G4IonTable::clear()
    259279{
     280#ifdef G4VERBOSE
     281    if (GetVerboseLevel()>2) {
     282      G4cout << "G4IonTable::Clear() : number of Ion regsitered =  ";
     283      G4cout << fIonList->size() <<  G4endl;
     284    }
     285#endif
    260286  fIonList->clear();
    261287}
    262288
    263 inline G4ParticleDefinition*  G4IonTable::GetParticle(G4int index) const
    264 {
    265   if ( (index >=0 ) && (index < Entries()) ){
    266     return (*fIonList)[index];
    267   } else {
    268     return 0;
    269   }
    270 }
    271289
    272290
  • trunk/source/particles/management/include/G4Ions.hh

    r992 r1196  
    2626//
    2727// $Id: G4Ions.hh,v 1.15 2008/06/08 12:43:19 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4IsotopeProperty.hh

    r992 r1196  
    2626//
    2727// $Id: G4IsotopeProperty.hh,v 1.5 2007/03/15 06:53:27 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4KL3DecayChannel.hh

    r992 r1196  
    2626//
    2727// $Id: G4KL3DecayChannel.hh,v 1.5 2006/06/29 19:23:33 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4MuonDecayChannel.hh

    r992 r1196  
    2626//
    2727// $Id: G4MuonDecayChannel.hh,v 1.6 2006/06/29 19:23:35 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4NeutronBetaDecayChannel.hh

    r992 r1196  
    2626//
    2727// $Id: G4NeutronBetaDecayChannel.hh,v 1.2 2006/06/29 19:23:51 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4NucleiProperties.hh

    r992 r1196  
    2525//
    2626//
    27 // $Id: G4NucleiProperties.hh,v 1.18 2008/10/28 07:12:31 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4NucleiProperties.hh,v 1.20 2009/05/02 11:58:17 kurasige Exp $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
     
    3838// excess formula by V.Lara (9 May 99)
    3939//
     40// 090331 Migrate to AME03 by Koi, Tatsumi
    4041
    4142#ifndef G4NucleiProperties_h
     
    4445#include "globals.hh"
    4546#include "G4ios.hh"
    46 #include "G4NucleiPropertiesTable.hh"
     47#include "G4NucleiPropertiesTableAME03.hh"
    4748#include "G4NucleiPropertiesTheoreticalTable.hh"
    4849#include "G4ParticleTable.hh"
     
    6768  // Give mass of nucleus A,Z
    6869  static G4double GetNuclearMass(const G4double A, const G4double Z);
     70  static G4double GetNuclearMass(const G4int A, const G4int Z);
    6971
    7072  // return 'true' if the nucleus in the stable table
    7173  // (i.e.in G4NucleiPropertiesTable)
    7274  static bool IsInStableTable(const G4double A, const G4double Z);
     75  static bool IsInStableTable(const G4int A, const G4int Z);
    7376
    7477  // Give binding energy
     
    8891 
    8992  static G4double  AtomicMass(G4double A, G4double Z);
     93 
     94  static G4double  NuclearMass(G4double A, G4double Z);
    9095 
    9196  static G4double BindingEnergy(G4double A, G4double Z);
  • trunk/source/particles/management/include/G4NucleiPropertiesTheoreticalTable.hh

    r992 r1196  
    2626//
    2727// $Id: G4NucleiPropertiesTheoreticalTable.hh,v 1.8 2008/10/22 12:35:46 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4PDGCodeChecker.hh

    r992 r1196  
    2626//
    2727// $Id: G4PDGCodeChecker.hh,v 1.9 2007/09/14 07:04:09 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4ParticleDefinition.hh

    r992 r1196  
    2525//
    2626//
    27 // $Id: G4ParticleDefinition.hh,v 1.32 2008/03/22 06:03:40 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4ParticleDefinition.hh,v 1.33 2008/11/14 16:26:30 kurasige Exp $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    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

    r992 r1196  
    2525//
    2626//
    27 // $Id: G4ParticleDefinition.icc,v 1.12 2007/03/11 07:17:35 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4ParticleDefinition.icc,v 1.14 2009/03/27 20:33:50 gum Exp $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    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*std::fabs(thePDGMagneticMoment/muB - 2.*thePDGCharge/eplus);   
     164   } else {     
     165     return 0.0;
     166   }
     167}
  • trunk/source/particles/management/include/G4ParticleMessenger.hh

    r992 r1196  
    2525//
    2626//
    27 // $Id: G4ParticleMessenger.hh,v 1.8 2008/06/08 12:43:19 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4ParticleMessenger.hh,v 1.9 2009/07/31 06:39:22 kurasige Exp $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
     
    7171//    25 Nov. 1998, H. Kurashige   : add /particle/find
    7272//    08 Jun. 2008, H. Kurashige   : add /particle/verbose
     73//    30 Jul. 2009, H. Kurashige   : add /particle/createAllIon
    7374//---------------------------------------------------------------
    7475
     
    8485class G4UIcmdWithAString;
    8586class G4UIcmdWithAnInteger;
     87class G4UIcmdWithoutParameter;
    8688
    8789#include "G4UImessenger.hh"
     
    108110    G4UIcmdWithAString *        selectCmd;
    109111    G4UIcmdWithAnInteger *      findCmd;
     112    G4UIcmdWithoutParameter *   createAllCmd;
    110113    G4UIcmdWithAnInteger *      verboseCmd;
    111114
  • trunk/source/particles/management/include/G4ParticleMomentum.hh

    r992 r1196  
    2626//
    2727// $Id: G4ParticleMomentum.hh,v 1.6 2006/06/29 19:24:08 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4ParticlePropertyData.hh

    r992 r1196  
    2626//
    2727// $Id: G4ParticlePropertyData.hh,v 1.3 2007/03/11 07:17:35 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4ParticlePropertyMessenger.hh

    r992 r1196  
    2626//
    2727// $Id: G4ParticlePropertyMessenger.hh,v 1.7 2006/06/29 19:24:14 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4ParticlePropertyTable.hh

    r992 r1196  
    2525//
    2626// $Id: G4ParticlePropertyTable.hh,v 1.4 2006/06/29 19:24:18 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2828//
    2929//
  • trunk/source/particles/management/include/G4ParticleTable.hh

    r992 r1196  
    2626//
    2727// $Id: G4ParticleTable.hh,v 1.21 2008/03/22 06:03:40 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4ParticleTable.icc

    r992 r1196  
    2626//
    2727// $Id: G4ParticleTable.icc,v 1.11 2007/09/14 07:04:09 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4ParticleTableIterator.hh

    r992 r1196  
    2626//
    2727// $Id: G4ParticleTableIterator.hh,v 1.7 2006/06/29 19:24:36 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4ParticleWithCuts.hh

    r992 r1196  
    2626//
    2727// $Id: G4ParticleWithCuts.hh,v 1.19 2006/06/29 19:24:38 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4PhaseSpaceDecayChannel.hh

    r992 r1196  
    2626//
    2727// $Id: G4PhaseSpaceDecayChannel.hh,v 1.6 2006/06/29 19:24:40 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4PrimaryParticle.hh

    r992 r1196  
    2626//
    2727// $Id: G4PrimaryParticle.hh,v 1.4 2006/09/28 14:29:43 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4PrimaryVertex.hh

    r992 r1196  
    2626//
    2727// $Id: G4PrimaryVertex.hh,v 1.4 2006/07/20 15:14:43 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4ShortLivedTable.hh

    r992 r1196  
    2626//
    2727// $Id: G4ShortLivedTable.hh,v 1.13 2008/03/20 02:23:31 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4TauLeptonicDecayChannel.hh

    r992 r1196  
    2626//
    2727// $Id: G4TauLeptonicDecayChannel.hh,v 1.2 2006/06/29 19:24:48 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4VDecayChannel.hh

    r992 r1196  
    2626//
    2727// $Id: G4VDecayChannel.hh,v 1.12 2006/06/29 19:24:50 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4VIsotopeTable.hh

    r992 r1196  
    2626//
    2727// $Id: G4VIsotopeTable.hh,v 1.6 2006/06/29 19:24:52 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4VUserPrimaryParticleInformation.hh

    r992 r1196  
    2626//
    2727// $Id: G4VUserPrimaryParticleInformation.hh,v 1.2 2006/06/29 19:24:54 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
  • trunk/source/particles/management/include/G4VUserPrimaryVertexInformation.hh

    r992 r1196  
    2626//
    2727// $Id: G4VUserPrimaryVertexInformation.hh,v 1.2 2006/06/29 19:24:56 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030//
Note: See TracChangeset for help on using the changeset viewer.