Changeset 1196 for trunk/source/particles/management/include
- Timestamp:
- Nov 25, 2009, 5:13:58 PM (15 years ago)
- Location:
- trunk/source/particles/management/include
- Files:
-
- 38 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/particles/management/include/G4DalitzDecayChannel.hh
r992 r1196 26 26 // 27 27 // $Id: G4DalitzDecayChannel.hh,v 1.5 2006/06/29 19:22:43 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4DecayProducts.hh
r992 r1196 26 26 // 27 27 // $Id: G4DecayProducts.hh,v 1.12 2006/06/29 19:22:45 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4DecayTable.hh
r992 r1196 26 26 // 27 27 // $Id: G4DecayTable.hh,v 1.9 2006/06/29 19:22:47 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4DecayTableMessenger.hh
r992 r1196 26 26 // 27 27 // $Id: G4DecayTableMessenger.hh,v 1.8 2006/06/29 19:22:52 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4DynamicParticle.hh
r992 r1196 26 26 // 27 27 // $Id: G4DynamicParticle.hh,v 1.18 2007/03/11 07:17:35 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4DynamicParticle.icc
r992 r1196 26 26 // 27 27 // $Id: G4DynamicParticle.icc,v 1.16 2007/03/11 07:17:35 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4DynamicParticleFastVector.hh
r992 r1196 26 26 // 27 27 // $Id: G4DynamicParticleFastVector.hh,v 1.4 2006/06/29 19:23:06 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4ElectronOccupancy.hh
r992 r1196 25 25 // 26 26 // 27 // $Id: G4ElectronOccupancy.hh,v 1. 9 2006/06/29 19:23:08 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 2-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 $ 29 29 // 30 30 // … … 62 62 { 63 63 public: 64 enum { MaxSizeOfOrbit = 7};64 enum { MaxSizeOfOrbit = 10}; 65 65 66 66 public: // With Description -
trunk/source/particles/management/include/G4HyperNucleiProperties.hh
r992 r1196 26 26 // 27 27 // $Id: G4HyperNucleiProperties.hh,v 1.1 2007/09/14 07:04:09 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4IonTable.hh
r992 r1196 25 25 // 26 26 // 27 // $Id: G4IonTable.hh,v 1.2 6 2008/03/20 02:23:30kurasige Exp $28 // GEANT4 tag $Name: geant4-09-0 2-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 $ 29 29 // 30 30 // … … 43 43 // New design using G4VIsotopeTable 5 Oct. 99 H.Kurashige 44 44 // Add GetNucleusEncoding according PDG 2006 9 Oct. 2006 H.Kurashige 45 // Use STL map 30 Jul. 2009 H.Kurashige 45 46 46 47 #ifndef G4IonTable_h … … 50 51 #include "globals.hh" 51 52 #include "G4ParticleDefinition.hh" 53 #include "G4ParticleTableIterator.hh" 54 #include "G4Ions.hh" 52 55 53 56 #include <cmath> 54 57 #include <vector> 58 #include <map> 55 59 56 60 class G4ParticleTable; … … 66 70 67 71 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; 70 75 71 76 public: … … 111 116 // The ion can be get by using PDG encoding 112 117 // !! Only ground state can be obtained .i.e. Isomer = 0 113 118 119 void CreateAllIon(); 120 // All ground state ions will be created 114 121 115 122 // Find/Get "excited state" … … 130 137 // The third and last arguments gives no effect 131 138 132 static G4bool IsIon( G4ParticleDefinition*);139 static G4bool IsIon(const G4ParticleDefinition*); 133 140 // return true if the particle is ion 134 141 … … 183 190 G4ParticleDefinition* GetParticle(G4int index) const; 184 191 // Return the pointer of index-th ion in the table 185 192 186 193 G4bool Contains(const G4ParticleDefinition *particle) const; 187 194 // Return 'true' if the ion exists … … 237 244 return numberOfElements; 238 245 } 246 239 247 inline G4bool G4IonTable::Contains(const G4ParticleDefinition* particle) const 240 248 { 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 } 244 264 } 245 return f alse;265 return found; 246 266 } 247 267 … … 258 278 inline void G4IonTable::clear() 259 279 { 280 #ifdef G4VERBOSE 281 if (GetVerboseLevel()>2) { 282 G4cout << "G4IonTable::Clear() : number of Ion regsitered = "; 283 G4cout << fIonList->size() << G4endl; 284 } 285 #endif 260 286 fIonList->clear(); 261 287 } 262 288 263 inline G4ParticleDefinition* G4IonTable::GetParticle(G4int index) const264 {265 if ( (index >=0 ) && (index < Entries()) ){266 return (*fIonList)[index];267 } else {268 return 0;269 }270 }271 289 272 290 -
trunk/source/particles/management/include/G4Ions.hh
r992 r1196 26 26 // 27 27 // $Id: G4Ions.hh,v 1.15 2008/06/08 12:43:19 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4IsotopeProperty.hh
r992 r1196 26 26 // 27 27 // $Id: G4IsotopeProperty.hh,v 1.5 2007/03/15 06:53:27 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4KL3DecayChannel.hh
r992 r1196 26 26 // 27 27 // $Id: G4KL3DecayChannel.hh,v 1.5 2006/06/29 19:23:33 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4MuonDecayChannel.hh
r992 r1196 26 26 // 27 27 // $Id: G4MuonDecayChannel.hh,v 1.6 2006/06/29 19:23:35 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4NeutronBetaDecayChannel.hh
r992 r1196 26 26 // 27 27 // $Id: G4NeutronBetaDecayChannel.hh,v 1.2 2006/06/29 19:23:51 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4NucleiProperties.hh
r992 r1196 25 25 // 26 26 // 27 // $Id: G4NucleiProperties.hh,v 1. 18 2008/10/28 07:12:31kurasige Exp $28 // GEANT4 tag $Name: geant4-09-0 2-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 $ 29 29 // 30 30 // … … 38 38 // excess formula by V.Lara (9 May 99) 39 39 // 40 // 090331 Migrate to AME03 by Koi, Tatsumi 40 41 41 42 #ifndef G4NucleiProperties_h … … 44 45 #include "globals.hh" 45 46 #include "G4ios.hh" 46 #include "G4NucleiPropertiesTable .hh"47 #include "G4NucleiPropertiesTableAME03.hh" 47 48 #include "G4NucleiPropertiesTheoreticalTable.hh" 48 49 #include "G4ParticleTable.hh" … … 67 68 // Give mass of nucleus A,Z 68 69 static G4double GetNuclearMass(const G4double A, const G4double Z); 70 static G4double GetNuclearMass(const G4int A, const G4int Z); 69 71 70 72 // return 'true' if the nucleus in the stable table 71 73 // (i.e.in G4NucleiPropertiesTable) 72 74 static bool IsInStableTable(const G4double A, const G4double Z); 75 static bool IsInStableTable(const G4int A, const G4int Z); 73 76 74 77 // Give binding energy … … 88 91 89 92 static G4double AtomicMass(G4double A, G4double Z); 93 94 static G4double NuclearMass(G4double A, G4double Z); 90 95 91 96 static G4double BindingEnergy(G4double A, G4double Z); -
trunk/source/particles/management/include/G4NucleiPropertiesTheoreticalTable.hh
r992 r1196 26 26 // 27 27 // $Id: G4NucleiPropertiesTheoreticalTable.hh,v 1.8 2008/10/22 12:35:46 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4PDGCodeChecker.hh
r992 r1196 26 26 // 27 27 // $Id: G4PDGCodeChecker.hh,v 1.9 2007/09/14 07:04:09 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4ParticleDefinition.hh
r992 r1196 25 25 // 26 26 // 27 // $Id: G4ParticleDefinition.hh,v 1.3 2 2008/03/22 06:03:40 kurasige Exp $28 // GEANT4 tag $Name: geant4-09-0 2-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 $ 29 29 // 30 30 // … … 129 129 130 130 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 132 134 133 135 const G4String& GetParticleType() const { return theParticleType; } -
trunk/source/particles/management/include/G4ParticleDefinition.icc
r992 r1196 25 25 // 26 26 // 27 // $Id: G4ParticleDefinition.icc,v 1.1 2 2007/03/11 07:17:35 kurasigeExp $28 // GEANT4 tag $Name: geant4-09-0 2-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 $ 29 29 // 30 30 … … 155 155 } 156 156 157 157 inline 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 25 25 // 26 26 // 27 // $Id: G4ParticleMessenger.hh,v 1. 8 2008/06/08 12:43:19kurasige Exp $28 // GEANT4 tag $Name: geant4-09-0 2-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 $ 29 29 // 30 30 // … … 71 71 // 25 Nov. 1998, H. Kurashige : add /particle/find 72 72 // 08 Jun. 2008, H. Kurashige : add /particle/verbose 73 // 30 Jul. 2009, H. Kurashige : add /particle/createAllIon 73 74 //--------------------------------------------------------------- 74 75 … … 84 85 class G4UIcmdWithAString; 85 86 class G4UIcmdWithAnInteger; 87 class G4UIcmdWithoutParameter; 86 88 87 89 #include "G4UImessenger.hh" … … 108 110 G4UIcmdWithAString * selectCmd; 109 111 G4UIcmdWithAnInteger * findCmd; 112 G4UIcmdWithoutParameter * createAllCmd; 110 113 G4UIcmdWithAnInteger * verboseCmd; 111 114 -
trunk/source/particles/management/include/G4ParticleMomentum.hh
r992 r1196 26 26 // 27 27 // $Id: G4ParticleMomentum.hh,v 1.6 2006/06/29 19:24:08 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4ParticlePropertyData.hh
r992 r1196 26 26 // 27 27 // $Id: G4ParticlePropertyData.hh,v 1.3 2007/03/11 07:17:35 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4ParticlePropertyMessenger.hh
r992 r1196 26 26 // 27 27 // $Id: G4ParticlePropertyMessenger.hh,v 1.7 2006/06/29 19:24:14 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4ParticlePropertyTable.hh
r992 r1196 25 25 // 26 26 // $Id: G4ParticlePropertyTable.hh,v 1.4 2006/06/29 19:24:18 gunter Exp $ 27 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 // -
trunk/source/particles/management/include/G4ParticleTable.hh
r992 r1196 26 26 // 27 27 // $Id: G4ParticleTable.hh,v 1.21 2008/03/22 06:03:40 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4ParticleTable.icc
r992 r1196 26 26 // 27 27 // $Id: G4ParticleTable.icc,v 1.11 2007/09/14 07:04:09 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4ParticleTableIterator.hh
r992 r1196 26 26 // 27 27 // $Id: G4ParticleTableIterator.hh,v 1.7 2006/06/29 19:24:36 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4ParticleWithCuts.hh
r992 r1196 26 26 // 27 27 // $Id: G4ParticleWithCuts.hh,v 1.19 2006/06/29 19:24:38 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4PhaseSpaceDecayChannel.hh
r992 r1196 26 26 // 27 27 // $Id: G4PhaseSpaceDecayChannel.hh,v 1.6 2006/06/29 19:24:40 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4PrimaryParticle.hh
r992 r1196 26 26 // 27 27 // $Id: G4PrimaryParticle.hh,v 1.4 2006/09/28 14:29:43 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4PrimaryVertex.hh
r992 r1196 26 26 // 27 27 // $Id: G4PrimaryVertex.hh,v 1.4 2006/07/20 15:14:43 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4ShortLivedTable.hh
r992 r1196 26 26 // 27 27 // $Id: G4ShortLivedTable.hh,v 1.13 2008/03/20 02:23:31 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4TauLeptonicDecayChannel.hh
r992 r1196 26 26 // 27 27 // $Id: G4TauLeptonicDecayChannel.hh,v 1.2 2006/06/29 19:24:48 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4VDecayChannel.hh
r992 r1196 26 26 // 27 27 // $Id: G4VDecayChannel.hh,v 1.12 2006/06/29 19:24:50 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4VIsotopeTable.hh
r992 r1196 26 26 // 27 27 // $Id: G4VIsotopeTable.hh,v 1.6 2006/06/29 19:24:52 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4VUserPrimaryParticleInformation.hh
r992 r1196 26 26 // 27 27 // $Id: G4VUserPrimaryParticleInformation.hh,v 1.2 2006/06/29 19:24:54 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4VUserPrimaryVertexInformation.hh
r992 r1196 26 26 // 27 27 // $Id: G4VUserPrimaryVertexInformation.hh,v 1.2 2006/06/29 19:24:56 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //
Note: See TracChangeset
for help on using the changeset viewer.