Changeset 1340 for trunk/source/processes/hadronic/models/cascade/cascade/include/G4InuclElementaryParticle.hh
- 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/include/G4InuclElementaryParticle.hh
r1337 r1340 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4InuclElementaryParticle.hh,v 1.2 3 2010/06/25 09:43:24 gunterExp $27 // Geant4 tag: $Name: geant4-09-04-beta-01$26 // $Id: G4InuclElementaryParticle.hh,v 1.25 2010/09/16 05:21:00 mkelsey Exp $ 27 // Geant4 tag: $Name: hadr-casc-V09-03-85 $ 28 28 // 29 29 // 20100114 M. Kelsey -- Remove G4CascadeMomentum, use G4LorentzVector directly 30 30 // 20100409 M. Kelsey -- Drop unused string argument from ctors. 31 31 // 20100429 M. Kelsey -- Change "photon()" to "isPhoton()", use enum names 32 // 20100914 M. Kelsey -- Move printout to .cc file 33 // 20100915 M. Kelsey -- Add hyperon() identification function, ctor for 34 // G4DynamicParticle 32 35 33 36 #ifndef G4INUCL_ELEMENTARY_PARTICLE_HH … … 47 50 explicit G4InuclElementaryParticle(G4int type) 48 51 : G4InuclParticle(makeDefinition(type)), generation(0) {} 52 53 G4InuclElementaryParticle(const G4DynamicParticle& dynPart, G4int model=0) 54 : G4InuclParticle(dynPart), generation(0) { 55 setModel(model); 56 } 49 57 50 58 G4InuclElementaryParticle(const G4LorentzVector& mom, … … 81 89 } 82 90 91 G4bool hyperon() const { 92 return (baryon() && getStrangeness() != 0.); 93 } 94 83 95 G4bool quasi_deutron() const { return (type() > 100); } 96 97 G4double getStrangeness() const { return getStrangeness(type()); } 84 98 85 99 G4bool valid() const { return type()>0; } 86 100 87 virtual void printParticle() const { 88 G4InuclParticle::printParticle(); 89 G4cout << " Particle: type " << type() << " mass " << getMass() 90 << " ekin " << getKineticEnergy() << G4endl; 91 } 101 virtual void printParticle() const; 92 102 93 103 void setGeneration(G4int gen) { generation = gen; }
Note: See TracChangeset
for help on using the changeset viewer.