Import Geant4 9.3.0 source tree
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
#include "G4StopTheoDeexcitation.hh"
|
||||
#include "G4StopDeexcitationAlgorithm.hh"
|
||||
#include "G4ReactionKinematics.hh"
|
||||
#include "G4HadronicProcessStore.hh"
|
||||
|
||||
G4KaonMinusAbsorptionAtRest::G4KaonMinusAbsorptionAtRest(const G4String& processName,
|
||||
G4ProcessType aType ) :
|
||||
@@ -79,12 +80,25 @@ G4KaonMinusAbsorptionAtRest::G4KaonMinusAbsorptionAtRest(const G4String& process
|
||||
sigmaPlusLambdaConversionRate = 0.55;
|
||||
sigmaMinusLambdaConversionRate = 0.55;
|
||||
sigmaZeroLambdaConversionRate = 0.55;
|
||||
|
||||
G4HadronicProcessStore::Instance()->RegisterExtraProcess(this);
|
||||
}
|
||||
|
||||
|
||||
G4KaonMinusAbsorptionAtRest::~G4KaonMinusAbsorptionAtRest()
|
||||
{ }
|
||||
{
|
||||
G4HadronicProcessStore::Instance()->DeRegisterExtraProcess(this);
|
||||
}
|
||||
|
||||
void G4KaonMinusAbsorptionAtRest::PreparePhysicsTable(const G4ParticleDefinition& p)
|
||||
{
|
||||
G4HadronicProcessStore::Instance()->RegisterParticleForExtraProcess(this, &p);
|
||||
}
|
||||
|
||||
void G4KaonMinusAbsorptionAtRest::BuildPhysicsTable(const G4ParticleDefinition& p)
|
||||
{
|
||||
G4HadronicProcessStore::Instance()->PrintInfo(&p);
|
||||
}
|
||||
|
||||
G4VParticleChange* G4KaonMinusAbsorptionAtRest::AtRestDoIt
|
||||
(const G4Track& track, const G4Step& )
|
||||
@@ -175,7 +189,7 @@ G4VParticleChange* G4KaonMinusAbsorptionAtRest::AtRestDoIt
|
||||
|
||||
for ( i = 0; i<nAbsorptionProducts; i++)
|
||||
{
|
||||
pProducts = pProducts + (*absorptionProducts)[i]->GetMomentum();
|
||||
pProducts += (*absorptionProducts)[i]->GetMomentum();
|
||||
productEnergy += (*absorptionProducts)[i]->GetKineticEnergy();
|
||||
}
|
||||
|
||||
@@ -184,8 +198,6 @@ G4VParticleChange* G4KaonMinusAbsorptionAtRest::AtRestDoIt
|
||||
|
||||
G4double bDiff = G4NucleiProperties::GetBindingEnergy(static_cast<G4int>(A),static_cast<G4int>(Z)) -
|
||||
G4NucleiProperties::GetBindingEnergy(static_cast<G4int>(newA), static_cast<G4int>(newZ));
|
||||
|
||||
G4double pNucleus = pProducts.mag();
|
||||
|
||||
G4StopDeexcitationAlgorithm* nucleusAlgorithm = new G4StopTheoDeexcitation();
|
||||
G4StopDeexcitation stopDeexcitation(nucleusAlgorithm);
|
||||
@@ -199,7 +211,7 @@ G4VParticleChange* G4KaonMinusAbsorptionAtRest::AtRestDoIt
|
||||
G4cout << " -- KaonAtRest -- excitation = "
|
||||
<< energyDeposit
|
||||
<< ", pNucleus = "
|
||||
<< pNucleus
|
||||
<< pProducts
|
||||
<< ", A: "
|
||||
<< A
|
||||
<< ", "
|
||||
@@ -218,7 +230,7 @@ G4VParticleChange* G4KaonMinusAbsorptionAtRest::AtRestDoIt
|
||||
}
|
||||
delete nucleus;
|
||||
|
||||
G4ReactionProductVector* fragmentationProducts = stopDeexcitation.DoBreakUp(newA,newZ,energyDeposit,pNucleus);
|
||||
G4ReactionProductVector* fragmentationProducts = stopDeexcitation.DoBreakUp(newA,newZ,energyDeposit,pProducts);
|
||||
|
||||
unsigned int nFragmentationProducts = 0;
|
||||
if (fragmentationProducts != 0) nFragmentationProducts = fragmentationProducts->size();
|
||||
|
||||
Reference in New Issue
Block a user