Changeset 1347 for trunk/source/processes/hadronic/models/de_excitation/photon_evaporation/src/G4PhotonEvaporation.cc
- Timestamp:
- Dec 22, 2010, 3:52:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/de_excitation/photon_evaporation/src/G4PhotonEvaporation.cc
r1340 r1347 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4PhotonEvaporation.cc,v 1.1 3 2010/05/17 11:47:43 fleiExp $27 // GEANT4 tag $Name: geant4-09-0 3-ref-09$26 // $Id: G4PhotonEvaporation.cc,v 1.16 2010/11/23 18:03:21 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 75 75 { 76 76 _probAlgorithm = new G4E1Probability; 77 _discrDeexcitation = new G4DiscreteGammaDeexcitation; 77 G4DiscreteGammaDeexcitation* p = new G4DiscreteGammaDeexcitation(); 78 p->SetICM(false); 79 _discrDeexcitation = p; 78 80 _contDeexcitation = new G4ContinuumGammaDeexcitation; 79 (dynamic_cast <G4DiscreteGammaDeexcitation*> (_discrDeexcitation))->SetICM(false); 80 } 81 81 _nucleus = 0; 82 } 82 83 83 84 G4PhotonEvaporation::~G4PhotonEvaporation() … … 87 88 delete _contDeexcitation; 88 89 } 89 90 90 91 91 void G4PhotonEvaporation::Initialize(const G4Fragment& fragment) … … 290 290 G4double G4PhotonEvaporation::GetEmissionProbability() const 291 291 { 292 G4double prob = 0.; 293 if (_probAlgorithm != 0) { 294 prob = _probAlgorithm->EmissionProbability(*_nucleus,_gammaE); 295 } 292 G4double prob = 293 _probAlgorithm->EmissionProbability(*_nucleus,_nucleus->GetExcitationEnergy()); 296 294 return prob; 297 295 } … … 308 306 309 307 _myOwnProbAlgorithm = false; 310 311 return;312 308 } 313 309 … … 318 314 _contDeexcitation->SetVerboseLevel(verbose); 319 315 _discrDeexcitation->SetVerboseLevel(verbose); 320 321 return;322 316 } 323 317 … … 325 319 { 326 320 (dynamic_cast <G4DiscreteGammaDeexcitation*> (_discrDeexcitation))->SetICM(ic); 327 return;328 321 } 329 322 … … 331 324 { 332 325 (dynamic_cast <G4DiscreteGammaDeexcitation*> (_discrDeexcitation))->SetHL(hl); 333 return;334 326 } 335 327 … … 337 329 { 338 330 (dynamic_cast <G4DiscreteGammaDeexcitation*> (_discrDeexcitation))->SetRDM(fromRDM); 339 return;340 331 } 341 332 … … 343 334 { 344 335 _discrDeexcitation->SetEO(eo); 345 return;346 336 } 347 337
Note: See TracChangeset
for help on using the changeset viewer.