Import Geant4 9.1.0 source tree
This commit is contained in:
@@ -48,9 +48,7 @@ G4Fragment::G4Fragment() :
|
||||
#ifdef PRECOMPOUND_TEST
|
||||
,theCreatorModel("No name")
|
||||
#endif
|
||||
{
|
||||
theAngularMomentum = IsotropicRandom3Vector();
|
||||
}
|
||||
{}
|
||||
|
||||
// Copy Constructor
|
||||
G4Fragment::G4Fragment(const G4Fragment &right)
|
||||
@@ -80,6 +78,7 @@ G4Fragment::G4Fragment(const G4int A, const G4int Z, const G4LorentzVector aMome
|
||||
theA(A),
|
||||
theZ(Z),
|
||||
theMomentum(aMomentum),
|
||||
theAngularMomentum(0),
|
||||
numberOfParticles(0),
|
||||
numberOfHoles(0),
|
||||
numberOfCharged(0),
|
||||
@@ -110,6 +109,7 @@ G4Fragment::G4Fragment(const G4LorentzVector aMomentum, G4ParticleDefinition * a
|
||||
theA(0),
|
||||
theZ(0),
|
||||
theMomentum(aMomentum),
|
||||
theAngularMomentum(0),
|
||||
numberOfParticles(0),
|
||||
numberOfHoles(0),
|
||||
numberOfCharged(0),
|
||||
@@ -120,7 +120,6 @@ G4Fragment::G4Fragment(const G4LorentzVector aMomentum, G4ParticleDefinition * a
|
||||
#endif
|
||||
{
|
||||
theExcitationEnergy = CalculateExcitationEnergy(aMomentum);
|
||||
theAngularMomentum = IsotropicRandom3Vector();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -448,7 +448,6 @@ const G4KineticTrack& G4KineticTrack::operator=(const G4KineticTrack& right)
|
||||
{
|
||||
theDefinition = right.GetDefinition();
|
||||
theFormationTime = right.GetFormationTime();
|
||||
// thePosition = right.GetPosition();
|
||||
the4Momentum = right.the4Momentum;
|
||||
the4Momentum = right.GetTrackingMomentum();
|
||||
theFermi3Momentum = right.theFermi3Momentum;
|
||||
@@ -510,19 +509,19 @@ G4KineticTrackVector* G4KineticTrack::Decay()
|
||||
// cout << "DECAY Total Width " << theSumActualWidth << G4endl;
|
||||
// cout << "DECAY Total Width " << theTotalActualWidth << G4endl;
|
||||
G4double r = theTotalActualWidth * G4UniformRand();
|
||||
G4ParticleDefinition* theDefinition = this->GetDefinition();
|
||||
if(!theDefinition)
|
||||
G4ParticleDefinition* thisDefinition = this->GetDefinition();
|
||||
if(!thisDefinition)
|
||||
{
|
||||
G4cerr << "Error condition encountered in G4KineticTrack::Decay()"<<G4endl;
|
||||
G4cerr << " track has no particle definition associated."<<G4endl;
|
||||
return 0;
|
||||
}
|
||||
G4DecayTable* theDecayTable = theDefinition->GetDecayTable();
|
||||
G4DecayTable* theDecayTable = thisDefinition->GetDecayTable();
|
||||
if(!theDecayTable)
|
||||
{
|
||||
G4cerr << "Error condition encountered in G4KineticTrack::Decay()"<<G4endl;
|
||||
G4cerr << " particle definiton has no decay table associated."<<G4endl;
|
||||
G4cerr << " particle was "<<theDefinition->GetParticleName()<<G4endl;
|
||||
G4cerr << " particle was "<<thisDefinition->GetParticleName()<<G4endl;
|
||||
return 0;
|
||||
}
|
||||
G4VDecayChannel* theDecayChannel=NULL;
|
||||
@@ -541,7 +540,7 @@ G4KineticTrackVector* G4KineticTrack::Decay()
|
||||
{
|
||||
G4cerr << "Error condition encountered in G4KineticTrack::Decay()"<<G4endl;
|
||||
G4cerr << " decay channel has 0x0 channel associated."<<G4endl;
|
||||
G4cerr << " particle was "<<theDefinition->GetParticleName()<<G4endl;
|
||||
G4cerr << " particle was "<<thisDefinition->GetParticleName()<<G4endl;
|
||||
G4cerr << " channel index "<< chosench << "of "<<nChannels<<"channels"<<G4endl;
|
||||
return 0;
|
||||
}
|
||||
@@ -632,7 +631,7 @@ G4KineticTrackVector* G4KineticTrack::Decay()
|
||||
{
|
||||
G4cerr << "Error condition encountered in G4KineticTrack::Decay()"<<G4endl;
|
||||
G4cerr << " phase-space decay failed."<<G4endl;
|
||||
G4cerr << " particle was "<<theDefinition->GetParticleName()<<G4endl;
|
||||
G4cerr << " particle was "<<thisDefinition->GetParticleName()<<G4endl;
|
||||
G4cerr << " channel index "<< chosench << "of "<<nChannels<<"channels"<<G4endl;
|
||||
G4cerr << " "<<theNumberOfDaughters<< " Daughter particles: "
|
||||
<< theDaughtersName1<<" "<<theDaughtersName2<<" "<<theDaughtersName3<<G4endl;
|
||||
@@ -644,8 +643,8 @@ G4KineticTrackVector* G4KineticTrack::Decay()
|
||||
//
|
||||
G4LorentzRotation toMoving(Get4Momentum().boostVector());
|
||||
G4DynamicParticle* theDynamicParticle;
|
||||
G4double theFormationTime = 0.0;
|
||||
G4ThreeVector thePosition = this->GetPosition();
|
||||
G4double formationTime = 0.0;
|
||||
G4ThreeVector position = this->GetPosition();
|
||||
G4LorentzVector momentum;
|
||||
G4LorentzVector momentumBalanceCMS(0);
|
||||
G4KineticTrackVector* theDecayProductList = new G4KineticTrackVector;
|
||||
@@ -661,8 +660,8 @@ G4KineticTrackVector* G4KineticTrack::Decay()
|
||||
momentum = toMoving*theDynamicParticle->Get4Momentum();
|
||||
energyMomentumBalance -= momentum;
|
||||
theDecayProductList->push_back(new G4KineticTrack (aProduct,
|
||||
theFormationTime,
|
||||
thePosition,
|
||||
formationTime,
|
||||
position,
|
||||
momentum));
|
||||
delete theDynamicParticle;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user