Import Geant4 10.4.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2017-06-30 10:49:55 +02:00
parent 3a5407696b
commit 1a1316fea4
2180 changed files with 237880 additions and 59109 deletions
@@ -14,6 +14,12 @@ code and to keep track of all tags.
* Please list in reverse chronological order (last date on top)
---------------------------------------------------------------
23-Jun-2017 Gunter Folger hadr-pre-V10-03-01
- Fix memory leak introduced in tag below.
12-Jun-2017 Gunter Folger hadr-pre-V10-03-00
- G4PreCompoundModel::ApplyYourself(): pass creator model and time
22-Oct-2016 V.Ivanchenko hadr-pre-V10-02-09
- G4VPreCompoundFragment, G4PreCompoundFragment - minor performance
improvement
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4PreCompoundModel.cc 96603 2016-04-25 13:29:51Z gcosmo $
// $Id: G4PreCompoundModel.cc 104867 2017-06-23 14:00:18Z gcosmo $
//
// by V. Lara
//
@@ -150,6 +150,8 @@ G4PreCompoundModel::ApplyYourself(const G4HadProjectile & thePrimary,
G4int Ap = 1;
if(primary == proton) { Zp = 1; }
G4double timePrimary=thePrimary.GetGlobalTime();
G4int A = theNucleus.GetA_asInt();
G4int Z = theNucleus.GetZ_asInt();
@@ -176,10 +178,15 @@ G4PreCompoundModel::ApplyYourself(const G4HadProjectile & thePrimary,
for(G4ReactionProductVector::iterator i= result->begin();
i != result->end(); ++i)
{
G4DynamicParticle * aNew =
new G4DynamicParticle((*i)->GetDefinition(),
G4DynamicParticle * aNewDP =
new G4DynamicParticle((*i)->GetDefinition(),
(*i)->GetTotalEnergy(),
(*i)->GetMomentum());
G4HadSecondary aNew = G4HadSecondary(aNewDP);
G4double time=(*i)->GetFormationTime();
if(time < 0.0) { time = 0.0; }
aNew.SetTime(timePrimary + time);
aNew.SetCreatorModelType((*i)->GetCreatorModel());
delete (*i);
theResult.AddSecondary(aNew);
}