Import Geant4 5.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 10:15:15 +02:00
parent 37fff30d2e
commit fbd4999cf7
4396 changed files with 56662 additions and 52446 deletions
+5 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.10 2002/02/12 02:14:03 kurasige Exp $
$Id: History,v 1.11 2003/04/26 18:54:11 vnivanch Exp $
-------------------------------------------------------------------
=========================================================
@@ -16,6 +16,10 @@ committal in the CVS repository !
----------------------------------------------------------
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
- Apr 26, 03 V.Ivanchenko(decay-V05-00-00)
- add initialisation of TouchableHandle for decay products
- Feb 12, 02 H.Kurashige(decay-V04-00-01)
- Remove physics table
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4Decay.hh,v 1.8 2002/02/12 02:14:03 kurasige Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
// ------------------------------------------------------------
@@ -22,7 +22,7 @@
//
//
// $Id: G4VExtDecayer.hh,v 1.3 2001/07/11 10:02:27 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
// ------------------------------------------------------------
+9 -7
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Decay.cc,v 1.15 2002/02/12 08:57:20 kurasige Exp $
// GEANT4 tag $Name: geant4-05-00 $
// $Id: G4Decay.cc,v 1.16 2003/04/26 18:54:11 vnivanch Exp $
// GEANT4 tag $Name: geant4-05-01 $
//
//
// --------------------------------------------------------------
@@ -266,10 +266,10 @@ G4VParticleChange* G4Decay::DecayIt(const G4Track& aTrack, const G4Step& )
// AtRest case
finalGlobalTime += fRemainderLifeTime;
energyDeposit += aParticle->GetKineticEnergy();
if (isPreAssigned) products->Boost( ParentEnergy, ParentDirection);
if (isPreAssigned) products->Boost( ParentEnergy, ParentDirection);
} else {
// PostStep case
if (!isExtDecayer) products->Boost( ParentEnergy, ParentDirection);
if (!isExtDecayer) products->Boost( ParentEnergy, ParentDirection);
}
//add products in fParticleChangeForDecay
@@ -289,16 +289,18 @@ G4VParticleChange* G4Decay::DecayIt(const G4Track& aTrack, const G4Step& )
#endif
G4int index;
G4ThreeVector currentPosition;
for (index=0; index < numberOfSecondaries; index++)
{
const G4TouchableHandle thand = aTrack.GetTouchableHandle();
for (index=0; index < numberOfSecondaries; index++)
{
// get current position of the track
currentPosition = aTrack.GetPosition();
// create a new track object
G4Track* secondary = new G4Track( products->PopProducts(),
finalGlobalTime ,
currentPosition );
// switch on good for tracking flag
// switch on good for tracking flag
secondary->SetGoodForTrackingFlag();
secondary->SetTouchableHandle(thand);
// add the secondary track in the List
fParticleChangeForDecay.AddSecondary(secondary);
}