Changeset 1340 for trunk/source/processes/hadronic/models/cascade/cascade/src/G4InuclElementaryParticle.cc
- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/cascade/cascade/src/G4InuclElementaryParticle.cc
r1337 r1340 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4InuclElementaryParticle.cc,v 1. 7 2010/06/25 09:44:38 gunterExp $27 // Geant4 tag: $Name: geant4-09-04-beta-01$26 // $Id: G4InuclElementaryParticle.cc,v 1.10 2010/09/23 05:33:56 mkelsey Exp $ 27 // Geant4 tag: $Name: hadr-casc-V09-03-85 $ 28 28 // 29 29 // 20100428 M. Kelsey -- Use G4InuclParticleNames enums instead of numbers, 30 30 // add Omega and antinucleons. 31 31 // 20100429 M. Kelsey -- Change "case gamma:" to "case photon:" 32 // 20100923 M. Kelsey -- Drop "uups" message when converting G4PartDef to code 32 33 33 34 #include "G4InuclElementaryParticle.hh" … … 120 121 if (pd == G4Dineutron::Definition()) return dineutron; // Bertini class! 121 122 122 G4cerr << " uups, unknown G4ParticleDefinition type" << G4endl; 123 return 0; 123 return 0; // Unknown objects return zero (e.g., nuclei) 124 124 } 125 125 … … 147 147 return pd ? pd->GetPDGMass()*MeV/GeV : 0.0; // From G4 to Bertini units 148 148 } 149 150 151 // Print particle parameters 152 153 void G4InuclElementaryParticle::printParticle() const { 154 G4InuclParticle::printParticle(); 155 G4cout << " Particle: " << getDefinition()->GetParticleName() 156 << " type " << type() << " mass " << getMass() 157 << " ekin " << getKineticEnergy() << G4endl; 158 } 159
Note: See TracChangeset
for help on using the changeset viewer.