Changeset 1340 for trunk/source/particles/management/include/G4IonTable.hh
- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/particles/management/include/G4IonTable.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4IonTable.hh,v 1. 28 2009/09/23 12:13:48kurasige Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4IonTable.hh,v 1.31 2010/10/16 06:04:51 kurasige Exp $ 28 // GEANT4 tag $Name: particles-V09-03-15 $ 29 29 // 30 30 // … … 51 51 #include "globals.hh" 52 52 #include "G4ParticleDefinition.hh" 53 #include "G4ParticleTable Iterator.hh"53 #include "G4ParticleTable.hh" 54 54 #include "G4Ions.hh" 55 55 … … 71 71 public: 72 72 // Use STL map as list of ions 73 typedef std::multimap<G4int, G4ParticleDefinition*> G4IonList;74 typedef std::multimap<G4int, G4ParticleDefinition*>::iterator G4IonListIterator;73 typedef std::multimap<G4int, const G4ParticleDefinition*> G4IonList; 74 typedef std::multimap<G4int, const G4ParticleDefinition*>::iterator G4IonListIterator; 75 75 76 76 public: … … 139 139 static G4bool IsIon(const G4ParticleDefinition*); 140 140 // return true if the particle is ion 141 142 static G4bool IsAntiIon(const G4ParticleDefinition*); 143 // return true if the particle is anti_ion 144 141 145 142 146 const G4String& GetIonName(G4int Z, G4int A, G4double E) const; … … 194 198 // Return 'true' if the ion exists 195 199 196 void Insert( G4ParticleDefinition* particle);197 void Remove( G4ParticleDefinition* particle);200 void Insert(const G4ParticleDefinition* particle); 201 void Remove(const G4ParticleDefinition* particle); 198 202 // Insert/Remove an ion in the table 199 203 … … 218 222 219 223 G4ParticleDefinition* GetLightIon(G4int Z, G4int A) const; 220 221 222 G4bool IsLightIon(G4ParticleDefinition*) const; 224 G4ParticleDefinition* GetLightAntiIon(G4int Z, G4int A) const; 225 226 G4bool IsLightIon(const G4ParticleDefinition*) const; 227 G4bool IsLightAntiIon(const G4ParticleDefinition*) const; 223 228 // return true if the particle is pre-defined ion 224 229
Note: See TracChangeset
for help on using the changeset viewer.