Changeset 1347 for trunk/source/processes/hadronic/stopping/src
- Timestamp:
- Dec 22, 2010, 3:52:27 PM (14 years ago)
- Location:
- trunk/source/processes/hadronic/stopping/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/stopping/src/G4KaonMinusAbsorptionAtRest.cc
r1196 r1347 502 502 default: 503 503 sigmaLambdaConversionRate = 0.; 504 // Add dummy particles to avoid possibility of passing NULL pointers 505 inNucleonDef = G4Proton::Proton(); 506 outNucleonDef = G4Proton::Proton(); 504 507 } 505 508 -
trunk/source/processes/hadronic/stopping/src/G4PiMinusAbsorptionAtRest.cc
r1196 r1347 209 209 } 210 210 211 G4int index = 3;212 if (Z <= 3) {index = 3;}213 if (Z > 3 && Z <= 6) {index = 6;}211 G4int index = 0; 212 if (Z > 0 && Z < 4) {index = 3;} 213 if (Z > 3 && Z < 7) {index = 6;} 214 214 if (Z == 7) {index = 7;} 215 215 if (Z >= 8 && Z<= 11) {index = 8;} -
trunk/source/processes/hadronic/stopping/src/G4PiMinusStopMaterial.cc
r1196 r1347 54 54 55 55 G4PiMinusStopMaterial::G4PiMinusStopMaterial() 56 57 56 { 58 57 _definitions = 0; … … 60 59 _distributionE = 0; 61 60 _distributionAngle = 0; 62 61 theR = 0.5; 63 62 } 64 63 … … 68 67 G4PiMinusStopMaterial::~G4PiMinusStopMaterial() 69 68 { 70 // _definitions->clear();71 69 if (_definitions != 0) delete _definitions; 72 70 _definitions = 0; 73 71 74 for (unsigned int i=0; i<_momenta->size(); i++) delete(*_momenta)[i];72 for (unsigned int i=0; i<_momenta->size(); i++) delete(*_momenta)[i]; 75 73 if (_momenta != 0) delete _momenta; 76 74 … … 94 92 } 95 93 96 std::vector<G4LorentzVector*>* G4PiMinusStopMaterial::P4Vector(const G4double binding, 97 const G4double massNucleus) 94 std::vector<G4LorentzVector*>* 95 G4PiMinusStopMaterial::P4Vector(const G4double binding, 96 const G4double massNucleus) 98 97 { 99 100 // Generate energy of direct absorption products according to experimental data 101 // The energy distribution of the two nucleons is assumed to be the same 102 // for protons and neutrons 103 98 // Generate energy of direct absorption products according to experimental 99 // data. The energy distribution of the two nucleons is assumed to be the 100 // same for protons and neutrons. 104 101 105 102 G4double eKin1; … … 191 188 } 192 189 193 194 195 196 197 198 199 200 201 -
trunk/source/processes/hadronic/stopping/src/G4StopDummyDeexcitation.cc
r819 r1347 42 42 // Constructor 43 43 44 G4StopDummyDeexcitation::G4StopDummyDeexcitation() 45 46 {} 44 G4StopDummyDeexcitation::G4StopDummyDeexcitation() 45 { 46 _products = 0; 47 } 47 48 48 49
Note: See TracChangeset
for help on using the changeset viewer.