Changeset 962 for trunk/source/processes/hadronic/models/cascade/cascade/src/G4PreCompoundCascadeInterface.cc
- Timestamp:
- Apr 6, 2009, 12:30:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/cascade/cascade/src/G4PreCompoundCascadeInterface.cc
r819 r962 130 130 G4LorentzRotation toLabFrame = toZ.inverse(); 131 131 132 std::vector<G4double> momentumBullet(4);132 G4CascadeMomentum momentumBullet; 133 133 momentumBullet[0] =0.; 134 134 momentumBullet[1] =0; … … 153 153 G4DynamicParticle* cascadeParticle = 0; 154 154 155 std::vector<G4double> targetMomentum(4, 0.0);155 G4CascadeMomentum targetMomentum; 156 156 157 157 G4double theNucleusA = theNucleus.GetN(); … … 163 163 target->setEnergy(); 164 164 165 std::vector<G4double>bmom = bullet->getMomentum();165 const G4CascadeMomentum& bmom = bullet->getMomentum(); 166 166 eInit = std::sqrt(bmom[0] * bmom[0]); 167 std::vector<G4double>tmom = target->getMomentum();167 const G4CascadeMomentum& tmom = target->getMomentum(); 168 168 eInit += std::sqrt(tmom[0] * tmom[0]); 169 169 … … 240 240 sumBaryon += 1; 241 241 242 std::vector<G4double>bmom = bullet->getMomentum();242 const G4CascadeMomentum& bmom = bullet->getMomentum(); 243 243 eInit = std::sqrt(bmom[0] * bmom[0]); 244 std::vector<G4double>tmom = targetH->getMomentum();244 const G4CascadeMomentum& tmom = targetH->getMomentum(); 245 245 eInit += std::sqrt(tmom[0] * tmom[0]); 246 246 … … 290 290 for (ipart = particles.begin(); ipart != particles.end(); ipart++) { 291 291 outgoingParticle = ipart->type(); 292 std::vector<G4double>mom = ipart->getMomentum();292 const G4CascadeMomentum& mom = ipart->getMomentum(); 293 293 eTot += std::sqrt(mom[0] * mom[0]); 294 294 … … 421 421 { 422 422 G4double eKin = ifrag->getKineticEnergy() * GeV; 423 std::vector<G4double>mom = ifrag->getMomentum();423 const G4CascadeMomentum& mom = ifrag->getMomentum(); 424 424 eTot += std::sqrt(mom[0] * mom[0]); 425 425
Note: See TracChangeset
for help on using the changeset viewer.