- 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/G4InuclEvaporation.cc
r1337 r1340 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4InuclEvaporation.cc,v 1. 19 2010/06/25 09:44:40 gunterExp $27 // Geant4 tag: $Name: geant4-09-04-beta-01$26 // $Id: G4InuclEvaporation.cc,v 1.22 2010/09/24 21:09:01 mkelsey Exp $ 27 // Geant4 tag: $Name: hadr-casc-V09-03-85 $ 28 28 // 29 29 // 20100114 M. Kelsey -- Remove G4CascadeMomentum, use G4LorentzVector directly … … 38 38 // G4CollisionOutput, copy G4DynamicParticle directly from 39 39 // G4InuclParticle, no switch-block required. Fix scaling factors. 40 // 20100914 M. Kelsey -- Migrate to integer A and Z 41 // 20100924 M. Kelsey -- Migrate to "OutgoingNuclei" names in CollisionOutput 40 42 43 #include "G4InuclEvaporation.hh" 41 44 #include <numeric> 42 45 #include "G4IonTable.hh" … … 45 48 #include "G4DynamicParticleVector.hh" 46 49 #include "G4EvaporationInuclCollider.hh" 47 #include "G4InuclEvaporation.hh"48 50 #include "G4InuclNuclei.hh" 49 51 #include "G4Track.hh" … … 102 104 } 103 105 104 G4 double A = theNucleus.GetA();105 G4 double Z = theNucleus.GetZ();106 G4int A = theNucleus.GetA_asInt(); 107 G4int Z = theNucleus.GetZ_asInt(); 106 108 G4double mTar = G4NucleiProperties::GetNuclearMass(A, Z); // Mass of the target nucleus 107 109 … … 131 133 evaporator->collide(0, nucleus, output); 132 134 133 const std::vector<G4InuclNuclei>& nucleiFragments = output.getNucleiFragments();135 const std::vector<G4InuclNuclei>& outgoingNuclei = output.getOutgoingNuclei(); 134 136 const std::vector<G4InuclElementaryParticle>& particles = output.getOutgoingParticles(); 135 137 … … 158 160 } 159 161 160 // G4cout << "# fragments " << output.get NucleiFragments().size() << G4endl;162 // G4cout << "# fragments " << output.getOutgoingNuclei().size() << G4endl; 161 163 i=1; 162 if (! nucleiFragments.empty()) {163 nucleiIterator ifrag = nucleiFragments.begin();164 for (; ifrag != nucleiFragments.end(); ifrag++) {164 if (!outgoingNuclei.empty()) { 165 nucleiIterator ifrag = outgoingNuclei.begin(); 166 for (; ifrag != outgoingNuclei.end(); ifrag++) { 165 167 if (verboseLevel > 2) { 166 168 G4cout << " Nuclei fragment: " << i << G4endl; i++; … … 171 173 G4LorentzVector vlab = ifrag->getMomentum().boost(boostToLab); 172 174 173 G4int A = G4int(ifrag->getA());174 G4int Z = G4int(ifrag->getZ());175 G4int A = ifrag->getA(); 176 G4int Z = ifrag->getZ(); 175 177 if (verboseLevel > 2) { 176 178 G4cout << "boosted v" << vlab << G4endl;
Note: See TracChangeset
for help on using the changeset viewer.