Changeset 1055 for trunk/source/processes/hadronic/stopping
- Timestamp:
- May 28, 2009, 4:26:57 PM (15 years ago)
- Location:
- trunk/source/processes/hadronic/stopping
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/stopping/History
r1007 r1055 14 14 * Please list in reverse chronological order (last date on top) 15 15 --------------------------------------------------------------- 16 17 02-Feb-2009 Vladimir Ivantchenko (hadr-stopping-V09-02-01) 18 ---------------------------------------------------------- 19 - added registration/deregistration to all LHEP processes 20 21 23-Jan-2009 Vladimir Ivantchenko (hadr-stopping-V09-02-00) 22 ---------------------------------------------------------- 23 G4MuonMinusCaptureAtRest - added deregistration 16 24 17 25 22-Oct-2008 Dennis Wright (hadr-stopping-V09-01-05) -
trunk/source/processes/hadronic/stopping/include/G4AntiNeutronAnnihilationAtRest.hh
r1007 r1055 61 61 G4bool IsApplicable(const G4ParticleDefinition&); 62 62 63 // null physics table 64 void BuildPhysicsTable(const G4ParticleDefinition&){} 63 void PreparePhysicsTable(const G4ParticleDefinition&); 64 65 void BuildPhysicsTable(const G4ParticleDefinition&); 65 66 66 67 G4double AtRestGetPhysicalInteractionLength(const G4Track&, -
trunk/source/processes/hadronic/stopping/include/G4AntiProtonAnnihilationAtRest.hh
r1007 r1055 61 61 G4bool IsApplicable(const G4ParticleDefinition&); 62 62 63 // null physics table 64 void BuildPhysicsTable(const G4ParticleDefinition&){} 63 void PreparePhysicsTable(const G4ParticleDefinition&); 64 65 void BuildPhysicsTable(const G4ParticleDefinition&); 65 66 66 67 G4double AtRestGetPhysicalInteractionLength(const G4Track&, -
trunk/source/processes/hadronic/stopping/include/G4KaonMinusAbsorption.hh
r1007 r1055 62 62 G4bool IsApplicable(const G4ParticleDefinition&); 63 63 64 // null physics table 65 void BuildPhysicsTable(const G4ParticleDefinition&){} 64 void PreparePhysicsTable(const G4ParticleDefinition&); 65 66 void BuildPhysicsTable(const G4ParticleDefinition&); 66 67 67 68 G4double AtRestGetPhysicalInteractionLength(const G4Track&, -
trunk/source/processes/hadronic/stopping/include/G4KaonMinusAbsorptionAtRest.hh
r1007 r1055 69 69 return( particle == *(G4KaonMinus::KaonMinus()) ); 70 70 } 71 72 void PreparePhysicsTable(const G4ParticleDefinition&); 73 74 void BuildPhysicsTable(const G4ParticleDefinition&); 71 75 72 76 // the main method ... -
trunk/source/processes/hadronic/stopping/include/G4NeutronCaptureAtRest.hh
r1007 r1055 62 62 G4bool IsApplicable(const G4ParticleDefinition&); 63 63 64 void PreparePhysicsTable(const G4ParticleDefinition&); 65 64 66 // null physics table 65 void BuildPhysicsTable(const G4ParticleDefinition&) {}67 void BuildPhysicsTable(const G4ParticleDefinition&); 66 68 67 69 G4double AtRestGetPhysicalInteractionLength(const G4Track&, -
trunk/source/processes/hadronic/stopping/include/G4PiMinusAbsorptionAtRest.hh
r1007 r1055 75 75 { return ( particle == *(G4PionMinus::PionMinus()) ); } 76 76 77 void PreparePhysicsTable(const G4ParticleDefinition&); 78 79 void BuildPhysicsTable(const G4ParticleDefinition&); 80 77 81 G4VParticleChange* AtRestDoIt(const G4Track& aTrack, const G4Step& aStep); 78 82 -
trunk/source/processes/hadronic/stopping/include/G4PionMinusAbsorptionAtRest.hh
r1007 r1055 61 61 G4bool IsApplicable(const G4ParticleDefinition&); 62 62 63 void PreparePhysicsTable(const G4ParticleDefinition&); 64 63 65 // null physics table 64 void BuildPhysicsTable(const G4ParticleDefinition&) {}66 void BuildPhysicsTable(const G4ParticleDefinition&); 65 67 66 68 G4double AtRestGetPhysicalInteractionLength(const G4Track&, -
trunk/source/processes/hadronic/stopping/src/G4AntiNeutronAnnihilationAtRest.cc
r1007 r1055 31 31 #include "G4DynamicParticle.hh" 32 32 #include "G4ParticleTypes.hh" 33 #include "G4HadronicProcessStore.hh" 33 34 #include "Randomize.hh" 34 35 #include <string.h> … … 68 69 gkin = new G4GHEKinematicsVector [MAX_SECONDARIES]; 69 70 71 G4HadronicProcessStore::Instance()->RegisterExtraProcess(this); 70 72 } 71 73 … … 74 76 G4AntiNeutronAnnihilationAtRest::~G4AntiNeutronAnnihilationAtRest() 75 77 { 78 G4HadronicProcessStore::Instance()->DeRegisterExtraProcess(this); 76 79 delete [] pv; 77 80 delete [] eve; … … 79 82 } 80 83 84 void G4AntiNeutronAnnihilationAtRest::PreparePhysicsTable(const G4ParticleDefinition& p) 85 { 86 G4HadronicProcessStore::Instance()->RegisterParticleForExtraProcess(this, &p); 87 } 88 89 void G4AntiNeutronAnnihilationAtRest::BuildPhysicsTable(const G4ParticleDefinition& p) 90 { 91 G4HadronicProcessStore::Instance()->PrintInfo(&p); 92 } 81 93 82 94 // methods............................................................................. … … 89 101 90 102 } 91 103 92 104 // Warning - this method may be optimized away if made "inline" 93 105 G4int G4AntiNeutronAnnihilationAtRest::GetNumberOfSecondaries() -
trunk/source/processes/hadronic/stopping/src/G4AntiProtonAnnihilationAtRest.cc
r1007 r1055 32 32 #include "G4ParticleTypes.hh" 33 33 #include "Randomize.hh" 34 #include "G4HadronicProcessStore.hh" 34 35 #include <string.h> 35 36 #include <cmath> … … 68 69 gkin = new G4GHEKinematicsVector [MAX_SECONDARIES]; 69 70 71 G4HadronicProcessStore::Instance()->RegisterExtraProcess(this); 70 72 } 71 73 … … 74 76 G4AntiProtonAnnihilationAtRest::~G4AntiProtonAnnihilationAtRest() 75 77 { 78 G4HadronicProcessStore::Instance()->DeRegisterExtraProcess(this); 76 79 delete [] pv; 77 80 delete [] eve; … … 79 82 } 80 83 84 void G4AntiProtonAnnihilationAtRest::PreparePhysicsTable(const G4ParticleDefinition& p) 85 { 86 G4HadronicProcessStore::Instance()->RegisterParticleForExtraProcess(this, &p); 87 } 88 89 void G4AntiProtonAnnihilationAtRest::BuildPhysicsTable(const G4ParticleDefinition& p) 90 { 91 G4HadronicProcessStore::Instance()->PrintInfo(&p); 92 } 81 93 82 94 // methods............................................................................. -
trunk/source/processes/hadronic/stopping/src/G4KaonMinusAbsorption.cc
r1007 r1055 32 32 #include "G4ParticleTypes.hh" 33 33 #include "Randomize.hh" 34 #include "G4HadronicProcessStore.hh" 34 35 #include <string.h> 35 36 #include <cmath> … … 66 67 gkin = new G4GHEKinematicsVector [MAX_SECONDARIES]; 67 68 69 G4HadronicProcessStore::Instance()->RegisterExtraProcess(this); 68 70 } 69 71 … … 72 74 G4KaonMinusAbsorption::~G4KaonMinusAbsorption() 73 75 { 76 G4HadronicProcessStore::Instance()->DeRegisterExtraProcess(this); 74 77 delete [] pv; 75 78 delete [] eve; 76 79 delete [] gkin; 77 80 } 78 81 82 void G4KaonMinusAbsorption::PreparePhysicsTable(const G4ParticleDefinition& p) 83 { 84 G4HadronicProcessStore::Instance()->RegisterParticleForExtraProcess(this, &p); 85 } 86 87 void G4KaonMinusAbsorption::BuildPhysicsTable(const G4ParticleDefinition& p) 88 { 89 G4HadronicProcessStore::Instance()->PrintInfo(&p); 90 } 79 91 80 92 // methods............................................................................. -
trunk/source/processes/hadronic/stopping/src/G4KaonMinusAbsorptionAtRest.cc
r1007 r1055 43 43 #include "G4StopDeexcitationAlgorithm.hh" 44 44 #include "G4ReactionKinematics.hh" 45 #include "G4HadronicProcessStore.hh" 45 46 46 47 G4KaonMinusAbsorptionAtRest::G4KaonMinusAbsorptionAtRest(const G4String& processName, … … 80 81 sigmaMinusLambdaConversionRate = 0.55; 81 82 sigmaZeroLambdaConversionRate = 0.55; 83 84 G4HadronicProcessStore::Instance()->RegisterExtraProcess(this); 82 85 } 83 86 84 87 85 88 G4KaonMinusAbsorptionAtRest::~G4KaonMinusAbsorptionAtRest() 86 { } 87 89 { 90 G4HadronicProcessStore::Instance()->DeRegisterExtraProcess(this); 91 } 92 93 void G4KaonMinusAbsorptionAtRest::PreparePhysicsTable(const G4ParticleDefinition& p) 94 { 95 G4HadronicProcessStore::Instance()->RegisterParticleForExtraProcess(this, &p); 96 } 97 98 void G4KaonMinusAbsorptionAtRest::BuildPhysicsTable(const G4ParticleDefinition& p) 99 { 100 G4HadronicProcessStore::Instance()->PrintInfo(&p); 101 } 88 102 89 103 G4VParticleChange* G4KaonMinusAbsorptionAtRest::AtRestDoIt -
trunk/source/processes/hadronic/stopping/src/G4MuonMinusCaptureAtRest.cc
r1007 r1055 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4MuonMinusCaptureAtRest.cc,v 1.5 3 2008/10/02 20:57:52 dennisExp $27 // GEANT4 tag $Name: geant4-09-0 2$26 // $Id: G4MuonMinusCaptureAtRest.cc,v 1.54 2009/01/24 11:55:38 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ 28 28 // 29 29 // G4MuonMinusCaptureAtRest physics process … … 33 33 // 34 34 // Modifications: 35 // 18/08/2000 V.Ivanchenko Update description 35 // 18/08/2000 V.Ivanchenko Update description 36 36 // 12/12/2003 H.P.Wellisch Completly rewrite mu-nuclear part 37 37 // 17/05/2006 V.Ivanchenko Cleanup 38 38 // 15/11/2006 V.Ivanchenko Review and rewrite all kinematics 39 39 // 24/01/2007 V.Ivanchenko Force to work with integer Z and A 40 // 23/01/2009 V.Ivanchenko Add deregistration 40 41 // 41 42 //----------------------------------------------------------------------------- … … 75 76 G4MuonMinusCaptureAtRest::~G4MuonMinusCaptureAtRest() 76 77 { 78 G4HadronicProcessStore::Instance()->DeRegisterExtraProcess(this); 77 79 delete [] Cascade; 78 80 delete pSelector; -
trunk/source/processes/hadronic/stopping/src/G4NeutronCaptureAtRest.cc
r1007 r1055 32 32 #include "G4ParticleTypes.hh" 33 33 #include "Randomize.hh" 34 #include "G4HadronicProcessStore.hh" 34 35 #include <string.h> 35 36 #include <cmath> … … 59 60 gkin = new G4GHEKinematicsVector [MAX_SECONDARIES]; 60 61 62 G4HadronicProcessStore::Instance()->RegisterExtraProcess(this); 61 63 } 62 64 … … 65 67 G4NeutronCaptureAtRest::~G4NeutronCaptureAtRest() 66 68 { 69 G4HadronicProcessStore::Instance()->DeRegisterExtraProcess(this); 67 70 delete [] pv; 68 71 delete [] eve; … … 70 73 } 71 74 75 void G4NeutronCaptureAtRest::PreparePhysicsTable(const G4ParticleDefinition& p) 76 { 77 G4HadronicProcessStore::Instance()->RegisterParticleForExtraProcess(this, &p); 78 } 79 80 void G4NeutronCaptureAtRest::BuildPhysicsTable(const G4ParticleDefinition& p) 81 { 82 G4HadronicProcessStore::Instance()->PrintInfo(&p); 83 } 72 84 73 85 // methods............................................................................. -
trunk/source/processes/hadronic/stopping/src/G4PiMinusAbsorptionAtRest.cc
r1007 r1055 57 57 #include "G4ThreeVector.hh" 58 58 #include "G4LorentzVector.hh" 59 #include "G4HadronicProcessStore.hh" 59 60 60 61 // Constructor … … 70 71 if (verboseLevel>0) 71 72 { G4cout << GetProcessName() << " is created "<< G4endl; } 73 G4HadronicProcessStore::Instance()->RegisterExtraProcess(this); 72 74 } 73 75 … … 76 78 77 79 G4PiMinusAbsorptionAtRest::~G4PiMinusAbsorptionAtRest() 78 {} 79 80 { 81 G4HadronicProcessStore::Instance()->DeRegisterExtraProcess(this); 82 } 83 84 void G4PiMinusAbsorptionAtRest::PreparePhysicsTable(const G4ParticleDefinition& p) 85 { 86 G4HadronicProcessStore::Instance()->RegisterParticleForExtraProcess(this, &p); 87 } 88 89 void G4PiMinusAbsorptionAtRest::BuildPhysicsTable(const G4ParticleDefinition& p) 90 { 91 G4HadronicProcessStore::Instance()->PrintInfo(&p); 92 } 80 93 81 94 G4VParticleChange* G4PiMinusAbsorptionAtRest::AtRestDoIt(const G4Track& track, const G4Step& ) -
trunk/source/processes/hadronic/stopping/src/G4PionMinusAbsorptionAtRest.cc
r1007 r1055 32 32 #include "G4ParticleTypes.hh" 33 33 #include "Randomize.hh" 34 #include "G4HadronicProcessStore.hh" 34 35 #include <string.h> 35 36 #include <cmath> … … 61 62 gkin = new G4GHEKinematicsVector [MAX_SECONDARIES]; 62 63 64 G4HadronicProcessStore::Instance()->RegisterExtraProcess(this); 63 65 } 64 66 … … 67 69 G4PionMinusAbsorptionAtRest::~G4PionMinusAbsorptionAtRest() 68 70 { 71 G4HadronicProcessStore::Instance()->DeRegisterExtraProcess(this); 69 72 delete [] pv; 70 73 delete [] eve; … … 72 75 } 73 76 77 void G4PionMinusAbsorptionAtRest::PreparePhysicsTable(const G4ParticleDefinition& p) 78 { 79 G4HadronicProcessStore::Instance()->RegisterParticleForExtraProcess(this, &p); 80 } 81 82 void G4PionMinusAbsorptionAtRest::BuildPhysicsTable(const G4ParticleDefinition& p) 83 { 84 G4HadronicProcessStore::Instance()->PrintInfo(&p); 85 } 74 86 75 87 // methods.............................................................................
Note: See TracChangeset
for help on using the changeset viewer.