- 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/G4InuclCollider.cc
r819 r962 121 121 } 122 122 123 std::vector<G4double> bmom(4, 0.0);123 G4CascadeMomentum bmom; 124 124 125 125 bmom[3] = convertToTargetRestFrame.getTRSMomentum(); 126 126 127 127 G4InuclNuclei ntarget(at, zt); 128 std::vector<G4double> tmom(4, 0.0);128 G4CascadeMomentum tmom; 129 129 130 130 ntarget.setMomentum(tmom); … … 200 200 particleIterator ipart; 201 201 for(ipart = particles.begin(); ipart != particles.end(); ipart++) { 202 std::vector<G4double>mom = ipart->getMomentum();202 G4CascadeMomentum mom = ipart->getMomentum(); 203 203 204 204 if (withReflection) mom[3] = -mom[3]; … … 217 217 218 218 for (inuc = nucleus.begin(); inuc != nucleus.end(); inuc++) { 219 std::vector<G4double>mom = inuc->getMomentum();219 G4CascadeMomentum mom = inuc->getMomentum(); 220 220 221 221 if (withReflection) mom[3] = -mom[3];
Note: See TracChangeset
for help on using the changeset viewer.