Changeset 1315 for trunk/source/particles/management/include
- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- Location:
- trunk/source/particles/management/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/particles/management/include/G4DynamicParticle.hh
r1196 r1315 25 25 // 26 26 // 27 // $Id: G4DynamicParticle.hh,v 1. 18 2007/03/11 07:17:35kurasige Exp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: G4DynamicParticle.hh,v 1.20 2010/04/20 00:50:18 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // … … 201 201 // mode 1 : 0 + electron occupancy 202 202 203 pr ivate:203 protected: 204 204 void AllocateElectronOccupancy(); 205 205 G4double GetElectronMass() const; 206 206 207 pr ivate:207 protected: 208 208 G4ThreeVector theMomentumDirection; 209 209 // The normalized momentum vector … … 232 232 G4double thePreAssignedDecayTime; 233 233 234 pr ivate:234 protected: 235 235 G4int verboseLevel; 236 236 … … 243 243 // 2: More 244 244 245 pr ivate:245 protected: 246 246 G4PrimaryParticle* primaryParticle; 247 247 // This void pointer is used by G4EventManager to maintain the … … 266 266 // returned if available. Otherwise (e.g. for geantino) returns 0. 267 267 268 pr ivate:268 protected: 269 269 G4int thePDGcode; 270 270 }; -
trunk/source/particles/management/include/G4DynamicParticle.icc
r1196 r1315 25 25 // 26 26 // 27 // $Id: G4DynamicParticle.icc,v 1.1 6 2007/03/11 07:17:35kurasige Exp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: G4DynamicParticle.icc,v 1.17 2010/04/19 00:23:08 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // … … 87 87 inline void G4DynamicParticle::AddElectron(G4int orbit, G4int number ) 88 88 { 89 if ( theElectronOccupancy == 0) AllocateElectronOccupancy(); 89 90 if ( theElectronOccupancy != 0) { 90 91 G4int n = theElectronOccupancy->AddElectron(orbit, number ); … … 96 97 inline void G4DynamicParticle::RemoveElectron(G4int orbit, G4int number) 97 98 { 98 if ( theElectronOccupancy != 0) { 99 if ( theElectronOccupancy == 0) AllocateElectronOccupancy(); 100 if ( theElectronOccupancy != 0) { 99 101 G4int n = theElectronOccupancy->RemoveElectron(orbit, number ); 100 102 theDynamicalCharge += eplus * n;
Note: See TracChangeset
for help on using the changeset viewer.