Changeset 1340 for trunk/source/particles/management/include
- Timestamp:
- Nov 5, 2010, 3:45:55 PM (15 years ago)
- Location:
- trunk/source/particles/management/include
- Files:
-
- 13 edited
-
G4DecayProducts.hh (modified) (1 diff)
-
G4DynamicParticle.hh (modified) (4 diffs)
-
G4DynamicParticle.icc (modified) (2 diffs)
-
G4ElectronOccupancy.hh (modified) (1 diff)
-
G4IonTable.hh (modified) (6 diffs)
-
G4KL3DecayChannel.hh (modified) (2 diffs)
-
G4ParticleDefinition.hh (modified) (3 diffs)
-
G4ParticleDefinition.icc (modified) (2 diffs)
-
G4ParticleTable.hh (modified) (2 diffs)
-
G4PrimaryParticle.hh (modified) (5 diffs)
-
G4PrimaryVertex.hh (modified) (1 diff)
-
G4ShortLivedTable.hh (modified) (5 diffs)
-
G4VDecayChannel.hh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/particles/management/include/G4DecayProducts.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4DecayProducts.hh,v 1.1 2 2006/06/29 19:22:45 gunterExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4DecayProducts.hh,v 1.14 2010/10/27 07:47:04 gcosmo Exp $ 28 // GEANT4 tag $Name: particles-V09-03-15 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4DynamicParticle.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4DynamicParticle.hh,v 1.2 0 2010/04/20 00:50:18kurasige Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4DynamicParticle.hh,v 1.22 2010/08/11 17:14:02 kurasige Exp $ 28 // GEANT4 tag $Name: particles-V09-03-15 $ 29 29 // 30 30 // … … 83 83 G4DynamicParticle(); 84 84 85 G4DynamicParticle( G4ParticleDefinition * aParticleDefinition,85 G4DynamicParticle(const G4ParticleDefinition * aParticleDefinition, 86 86 const G4ThreeVector& aMomentumDirection, 87 87 G4double aKineticEnergy); 88 G4DynamicParticle( G4ParticleDefinition * aParticleDefinition,88 G4DynamicParticle(const G4ParticleDefinition * aParticleDefinition, 89 89 const G4ThreeVector& aParticleMomentum); 90 G4DynamicParticle( G4ParticleDefinition * aParticleDefinition,90 G4DynamicParticle(const G4ParticleDefinition * aParticleDefinition, 91 91 const G4LorentzVector &aParticleMomentum); 92 G4DynamicParticle( G4ParticleDefinition * aParticleDefinition,92 G4DynamicParticle(const G4ParticleDefinition * aParticleDefinition, 93 93 G4double aTotalEnergy, 94 94 const G4ThreeVector &aParticleMomentum); … … 182 182 void RemoveElectron(G4int orbit, G4int number = 1); 183 183 184 185 const G4ParticleDefinition* GetParticleDefinition() const; 186 void SetDefinition(const G4ParticleDefinition * aParticleDefinition); 187 // Set/Get particle definition 188 // following method of GetDefinition remains 189 // because of backward compatiblity. It will be removed in future 184 190 G4ParticleDefinition* GetDefinition() const; 185 void SetDefinition(G4ParticleDefinition * aParticleDefinition); 186 // Set/Get particle definition 187 191 188 192 189 193 const G4DecayProducts *GetPreAssignedDecayProducts() const; … … 209 213 // The normalized momentum vector 210 214 211 G4ParticleDefinition *theParticleDefinition;215 const G4ParticleDefinition *theParticleDefinition; 212 216 // Contains the static information of this particle. 213 217 -
trunk/source/particles/management/include/G4DynamicParticle.icc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4DynamicParticle.icc,v 1. 17 2010/04/19 00:23:08 kurasigeExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4DynamicParticle.icc,v 1.21 2010/10/27 07:47:05 gcosmo Exp $ 28 // GEANT4 tag $Name: particles-V09-03-15 $ 29 29 // 30 30 // … … 193 193 inline G4ParticleDefinition* G4DynamicParticle::GetDefinition() const 194 194 { 195 return theParticleDefinition; 195 return const_cast<G4ParticleDefinition*>(theParticleDefinition); 196 } 197 198 inline const G4ParticleDefinition* G4DynamicParticle::GetParticleDefinition() const 199 { 200 return const_cast<G4ParticleDefinition*>(theParticleDefinition); 196 201 } 197 202 -
trunk/source/particles/management/include/G4ElectronOccupancy.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4ElectronOccupancy.hh,v 1.1 0 2009/10/21 12:50:31 kurasigeExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4ElectronOccupancy.hh,v 1.12 2010/10/27 07:47:05 gcosmo Exp $ 28 // GEANT4 tag $Name: particles-V09-03-15 $ 29 29 // 30 30 // -
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 -
trunk/source/particles/management/include/G4KL3DecayChannel.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4KL3DecayChannel.hh,v 1. 5 2006/06/29 19:23:33 gunterExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4KL3DecayChannel.hh,v 1.6 2010/10/30 07:55:00 kurasige Exp $ 28 // GEANT4 tag $Name: particles-V09-03-15 $ 29 29 // 30 30 // … … 90 90 G4double pLambda; 91 91 G4double pXi0; 92 G4double pNormalization;93 92 94 93 public: -
trunk/source/particles/management/include/G4ParticleDefinition.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4ParticleDefinition.hh,v 1.3 3 2008/11/14 16:26:30kurasige Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4ParticleDefinition.hh,v 1.34 2010/08/10 15:47:42 kurasige Exp $ 28 // GEANT4 tag $Name: particles-V09-03-15 $ 29 29 // 30 30 // … … 161 161 162 162 public:// With Description 163 G4DecayTable* GetDecayTable() ;163 G4DecayTable* GetDecayTable() const; 164 164 void SetDecayTable(G4DecayTable* aDecayTable); 165 165 // Set/Get Decay Table … … 172 172 // !! Process Manager can be modified !! 173 173 174 G4ParticleTable* GetParticleTable() ;174 G4ParticleTable* GetParticleTable() const; 175 175 // get pointer to the particle table 176 176 -
trunk/source/particles/management/include/G4ParticleDefinition.icc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4ParticleDefinition.icc,v 1.1 4 2009/03/27 20:33:50 gumExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4ParticleDefinition.icc,v 1.15 2010/08/10 15:47:42 kurasige Exp $ 28 // GEANT4 tag $Name: particles-V09-03-15 $ 29 29 // 30 30 31 31 inline 32 G4ParticleTable* G4ParticleDefinition::GetParticleTable() 32 G4ParticleTable* G4ParticleDefinition::GetParticleTable() const 33 33 { 34 34 return theParticleTable; … … 36 36 37 37 inline 38 G4DecayTable* G4ParticleDefinition::GetDecayTable() 38 G4DecayTable* G4ParticleDefinition::GetDecayTable() const 39 39 { 40 40 return theDecayTable; -
trunk/source/particles/management/include/G4ParticleTable.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4ParticleTable.hh,v 1.2 1 2008/03/22 06:03:40 kurasige Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4ParticleTable.hh,v 1.22 2010/10/30 07:55:00 kurasige Exp $ 28 // GEANT4 tag $Name: particles-V09-03-15 $ 29 29 // 30 30 // … … 209 209 G4PTblDicIterator* fIterator; 210 210 G4PTblEncodingDictionary* fEncodingDictionary; 211 G4int DictionaryBucketSize;212 211 213 212 static G4ParticleTable* fgParticleTable; -
trunk/source/particles/management/include/G4PrimaryParticle.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4PrimaryParticle.hh,v 1. 4 2006/09/28 14:29:43 kurasigeExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4PrimaryParticle.hh,v 1.8 2010/10/27 07:47:05 gcosmo Exp $ 28 // GEANT4 tag $Name: particles-V09-03-15 $ 29 29 // 30 30 // … … 77 77 G4PrimaryParticle(G4int Pcode, 78 78 G4double px,G4double py,G4double pz,G4double E); 79 G4PrimaryParticle( G4ParticleDefinition* Gcode);80 G4PrimaryParticle( G4ParticleDefinition* Gcode,79 G4PrimaryParticle(const G4ParticleDefinition* Gcode); 80 G4PrimaryParticle(const G4ParticleDefinition* Gcode, 81 81 G4double px,G4double py,G4double pz); 82 G4PrimaryParticle( G4ParticleDefinition* Gcode,82 G4PrimaryParticle(const G4ParticleDefinition* Gcode, 83 83 G4double px,G4double py,G4double pz,G4double E); 84 84 ~G4PrimaryParticle(); … … 94 94 private: 95 95 G4int PDGcode; 96 G4ParticleDefinition * G4code;96 const G4ParticleDefinition * G4code; 97 97 G4double Px; 98 98 G4double Py; … … 130 130 { return PDGcode; } 131 131 inline G4ParticleDefinition * GetG4code() const 132 { return const_cast<G4ParticleDefinition*>(G4code); } 133 inline const G4ParticleDefinition * GetParticleDefinition() const 132 134 { return G4code; } 133 135 inline G4ThreeVector GetMomentum() const … … 162 164 // Followings are available Set methods. 163 165 void SetPDGcode(G4int Pcode); 164 void SetG4code(G4ParticleDefinition * Gcode); 166 void SetG4code(const G4ParticleDefinition * Gcode); 167 void SetParticleDefinition(const G4ParticleDefinition * pdef); 165 168 inline void SetMomentum(G4double px, G4double py, G4double pz) 166 169 { -
trunk/source/particles/management/include/G4PrimaryVertex.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4PrimaryVertex.hh,v 1. 4 2006/07/20 15:14:43gcosmo Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4PrimaryVertex.hh,v 1.6 2010/10/27 07:47:05 gcosmo Exp $ 28 // GEANT4 tag $Name: particles-V09-03-15 $ 29 29 // 30 30 // -
trunk/source/particles/management/include/G4ShortLivedTable.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4ShortLivedTable.hh,v 1.1 3 2008/03/20 02:23:31kurasige Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4ShortLivedTable.hh,v 1.14 2010/08/10 15:47:42 kurasige Exp $ 28 // GEANT4 tag $Name: particles-V09-03-15 $ 29 29 // 30 30 // … … 58 58 public: 59 59 // Use STL Vector as list of shortlives 60 typedef std::vector< G4ParticleDefinition*> G4ShortLivedList;60 typedef std::vector<const G4ParticleDefinition*> G4ShortLivedList; 61 61 62 62 public: … … 69 69 virtual ~G4ShortLivedTable(); 70 70 71 G4bool IsShortLived( G4ParticleDefinition*) const;71 G4bool IsShortLived(const G4ParticleDefinition*) const; 72 72 // return true if the particle is shortlived particle 73 73 … … 81 81 // return true if the list contains the specified particle 82 82 83 void Insert( G4ParticleDefinition* particle);83 void Insert(const G4ParticleDefinition* particle); 84 84 // add the particle in the list 85 85 86 void Remove( G4ParticleDefinition* particle);86 void Remove(const G4ParticleDefinition* particle); 87 87 // remove the particle (not delete) from the list 88 88 … … 132 132 { 133 133 if ( (index >=0 ) && (index < Entries()) ) { 134 return (*fShortLivedList)[index];134 return const_cast<G4ParticleDefinition*>( (*fShortLivedList)[index] ); 135 135 } else { 136 136 return 0; -
trunk/source/particles/management/include/G4VDecayChannel.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4VDecayChannel.hh,v 1.1 2 2006/06/29 19:24:50 gunterExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4VDecayChannel.hh,v 1.13 2010/08/10 15:47:42 kurasige Exp $ 28 // GEANT4 tag $Name: particles-V09-03-15 $ 29 29 // 30 30 // … … 87 87 public: // With Description 88 88 //get kinematics name 89 G4StringGetKinematicsName() const;89 const G4String& GetKinematicsName() const; 90 90 //get branching ratio 91 91 G4double GetBR() const; … … 261 261 262 262 inline 263 G4StringG4VDecayChannel::GetKinematicsName() const { return kinematics_name; }263 const G4String& G4VDecayChannel::GetKinematicsName() const { return kinematics_name; } 264 264 265 265 inline
Note:
See TracChangeset
for help on using the changeset viewer.
