Changeset 961 for trunk/source/processes/decay/src
- Timestamp:
- Apr 6, 2009, 12:21:12 PM (15 years ago)
- Location:
- trunk/source/processes/decay/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/decay/src/G4Decay.cc
r819 r961 25 25 // 26 26 // 27 // $Id: G4Decay.cc,v 1. 27.2.1 2008/04/17 08:59:24kurasige Exp $28 // GEANT4 tag $Name: geant4-09-0 1-patch-02 $27 // $Id: G4Decay.cc,v 1.30 2008/09/19 03:19:53 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // … … 64 64 pExtDecayer(0) 65 65 { 66 // set Process Sub Type 67 SetProcessSubType(static_cast<int>(DECAY)); 68 66 69 #ifdef G4VERBOSE 67 70 if (GetVerboseLevel()>1) { … … 69 72 } 70 73 #endif 74 71 75 pParticleChange = &fParticleChangeForDecay; 72 76 } … … 404 408 fRemainderLifeTime = pTime - track.GetProperTime(); 405 409 if (fRemainderLifeTime <= 0.0) fRemainderLifeTime = DBL_MIN; 410 406 411 G4double rvalue=0.0; 407 412 // use pre-assigned Decay time to determine PIL 408 413 if (aLife>0.0) { 409 414 // ordinary particle 410 rvalue = (fRemainderLifeTime/aLife)*GetMeanFreePath(track, previousStepSize 411 , condition); 415 rvalue = (fRemainderLifeTime/aLife)*GetMeanFreePath(track, previousStepSize, condition); 412 416 } else { 413 417 // shortlived particle … … 418 422 } 419 423 return rvalue; 420 421 424 } 422 425 } … … 440 443 return fRemainderLifeTime; 441 444 } 445 446 447 void G4Decay::SetExtDecayer(G4VExtDecayer* val) 448 { 449 pExtDecayer = val; 450 451 // set Process Sub Type 452 if ( pExtDecayer !=0 ) { 453 SetProcessSubType(static_cast<int>(DECAY_External)); 454 } 455 } -
trunk/source/processes/decay/src/G4DecayWithSpin.cc
r819 r961 29 29 // History: 30 30 // 17 August 2004 P. Gumplinger, T. MacPhail 31 // 11 April 2008 Kamil Sedlak (PSI), Toni Shiroka (PSI) 31 32 // ------------------------------------------------------------ 32 33 // … … 47 48 #include "G4Transform3D.hh" 48 49 49 G4DecayWithSpin::G4DecayWithSpin(const G4String& processName):G4Decay(processName){} 50 G4DecayWithSpin::G4DecayWithSpin(const G4String& processName):G4Decay(processName) 51 { 52 // set Process Sub Type 53 SetProcessSubType(static_cast<int>(DECAY_WithSpin)); 54 55 } 50 56 51 57 G4DecayWithSpin::~G4DecayWithSpin(){} … … 97 103 if(fieldMgr)field = fieldMgr->GetDetectorField(); 98 104 99 if (field && !(fieldMgr->DoesFieldChangeEnergy())) {105 if (field) { 100 106 101 107 G4double point[4]; … … 105 111 point[3] = aTrack.GetGlobalTime(); 106 112 107 G4double fieldValue[ 3];113 G4double fieldValue[6]; 108 114 field -> GetFieldValue(point,fieldValue); 109 115 110 116 G4ThreeVector B(fieldValue[0],fieldValue[1],fieldValue[2]); 111 117 112 parent_polarization = Spin_Precession(aStep,B,fRemainderLifeTime); 118 // Call the spin precession only for non-zero mag. field 119 if (B.mag2() > 0.) parent_polarization = 120 Spin_Precession(aStep,B,fRemainderLifeTime); 113 121 114 122 } -
trunk/source/processes/decay/src/G4PionDecayMakeSpin.cc
r819 r961 37 37 38 38 G4PionDecayMakeSpin::G4PionDecayMakeSpin(const G4String& processName) 39 : G4Decay(processName) { } 39 : G4Decay(processName) 40 { 41 // set Process Sub Type 42 SetProcessSubType(static_cast<int>(DECAY_PionMakeSpin)); 43 44 } 40 45 41 46 G4PionDecayMakeSpin::~G4PionDecayMakeSpin() { } -
trunk/source/processes/decay/src/G4UnknownDecay.cc
r819 r961 25 25 // 26 26 // 27 // $Id: G4UnknownDecay.cc,v 1. 5 2007/10/06 07:01:09kurasige Exp $28 // GEANT4 tag $Name: geant4-09-0 1-patch-02 $27 // $Id: G4UnknownDecay.cc,v 1.6 2007/12/15 12:29:16 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // … … 40 40 #include "G4PhysicsLogVector.hh" 41 41 #include "G4ParticleChangeForDecay.hh" 42 #include "G4DecayProcessType.hh" 43 42 44 43 45 // constructor … … 47 49 HighestValue(20.0) 48 50 { 51 // set Process Sub Type 52 SetProcessSubType(static_cast<int>(DECAY_Unknown)); 53 49 54 #ifdef G4VERBOSE 50 55 if (GetVerboseLevel()>1) {
Note: See TracChangeset
for help on using the changeset viewer.