Import Geant4 0.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:09:25 +02:00
parent b97f8d0df7
commit aaa409b6ee
2922 changed files with 55107 additions and 81674 deletions
@@ -1,18 +1,18 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4TheoFSGenerator.cc,v 1.1 1998/08/22 08:54:35 hpw Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4TheoFSGenerator.cc,v 1.3 1999/04/18 11:30:49 hpw Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// G4TheoFSGenerator
#include "G4DynamicParticle.hh"
#include "G4TheoFSGenerator.hh"
#include "G4ReactionProductVector.hh"
#include "G4ParticleVector.hh"
#include "G4ReactionProduct.hh"
G4TheoFSGenerator::G4TheoFSGenerator()
{
@@ -62,7 +62,7 @@ G4VParticleChange * G4TheoFSGenerator::ApplyYourself(const G4Track & thePrimary,
theHighEnergyGenerator->Scatter(theNucleus, *aPart);
// Hand over to transport for intra-nuclear transport
G4ParticleVector * theTransportResult =
G4ReactionProductVector * theTransportResult =
theTransport->Propagate(theInitialResult, theHighEnergyGenerator->GetWoundedNucleus());
// Fill particle change
@@ -70,7 +70,13 @@ G4VParticleChange * G4TheoFSGenerator::ApplyYourself(const G4Track & thePrimary,
theParticleChange->SetNumberOfSecondaries(theTransportResult->entries());
for(i=0; i<theTransportResult->entries(); i++)
{
theParticleChange->AddSecondary(theTransportResult->at(i));
G4DynamicParticle * aNew =
new G4DynamicParticle(theTransportResult->at(i)->GetDefinition(),
theTransportResult->at(i)->GetTotalEnergy(),
theTransportResult->at(i)->GetMomentum());
G4double newTime = theParticleChange->GetGlobalTime(theTransportResult->at(i)->GetFormationTime());
theParticleChange->AddSecondary(aNew, newTime);
delete theTransportResult->at(i);
}
// some garbage collection