Import Geant4 7.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 11:11:55 +02:00
parent e083ffb441
commit 516dbf1a58
5914 changed files with 202605 additions and 71141 deletions
@@ -22,7 +22,7 @@
//
//
// $Id: G4FastSimulationManager.cc,v 1.8 2002/11/15 11:41:56 stesting Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//---------------------------------------------------------------
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4FastSimulationManagerProcess.cc,v 1.8 2003/05/21 16:32:11 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4FastSimulationManagerProcess.cc,v 1.9 2004/11/25 23:34:13 mverderi Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
//---------------------------------------------------------------
@@ -261,8 +261,8 @@ G4VParticleChange* G4FastSimulationManagerProcess::PostStepDoIt(
// If the particle is still alive, suspend it
// to re-initialise the other process.
if (Response->GetStatusChange() != fStopAndKill)
Response->SetStatusChange(fSuspend);
if (Response->GetTrackStatus() != fStopAndKill)
Response->ProposeTrackStatus(fSuspend);
// Returns the Response
return Response;
}
@@ -318,8 +318,8 @@ G4VParticleChange* G4FastSimulationManagerProcess::PostStepDoIt(
{
// easy case where we have enough room to displace the point where we need:
fUpdateGhostTouchable = true;
xParticleChange.SetPositionChange(fGhostFieldPropagator->EndPosition());
xParticleChange.SetMomentumChange(fGhostFieldPropagator->EndMomentumDir());
xParticleChange.ProposePosition (fGhostFieldPropagator->EndPosition() );
xParticleChange.ProposeMomentumDirection(fGhostFieldPropagator->EndMomentumDir());
}
return &xParticleChange;
}
@@ -22,7 +22,7 @@
//
//
// $Id: G4FastSimulationMessenger.cc,v 1.5 2002/12/04 21:29:50 asaim Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
#include "G4FastSimulationMessenger.hh"
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4FastStep.cc,v 1.12 2003/06/16 17:12:39 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4FastStep.cc,v 1.14 2004/12/07 08:22:33 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-00-cand-03 $
//
//---------------------------------------------------------------
//
@@ -83,7 +83,7 @@ void G4FastStep::Initialize(const G4FastTrack& fastTrack)
void G4FastStep::KillPrimaryTrack()
{
SetPrimaryTrackFinalKineticEnergy(0.) ;
SetStatusChange(fStopAndKill) ;
ProposeTrackStatus(fStopAndKill) ;
}
//--------------------
@@ -91,8 +91,8 @@ void G4FastStep::KillPrimaryTrack()
//--------------------
void
G4FastStep::
SetPrimaryTrackFinalPosition(const G4ThreeVector &position,
G4bool localCoordinates)
ProposePrimaryTrackFinalPosition(const G4ThreeVector &position,
G4bool localCoordinates)
{
// Compute the position coordinate in global
// reference system if needed ...
@@ -104,13 +104,21 @@ SetPrimaryTrackFinalPosition(const G4ThreeVector &position,
thePositionChange = globalPosition;
}
void
G4FastStep::
SetPrimaryTrackFinalPosition(const G4ThreeVector &position,
G4bool localCoordinates)
{
ProposePrimaryTrackFinalPosition(position, localCoordinates);
}
//--------------------
//
//--------------------
void
G4FastStep::
SetPrimaryTrackFinalMomentum(const G4ThreeVector &momentum,
G4bool localCoordinates)
ProposePrimaryTrackFinalMomentumDirection(const G4ThreeVector &momentum,
G4bool localCoordinates)
{
// Compute the momentum in global reference
// system if needed ...
@@ -122,15 +130,22 @@ SetPrimaryTrackFinalMomentum(const G4ThreeVector &momentum,
SetMomentumChange(globalMomentum.unit());
}
void
G4FastStep::
SetPrimaryTrackFinalMomentum(const G4ThreeVector &momentum,
G4bool localCoordinates)
{
ProposePrimaryTrackFinalMomentumDirection(momentum, localCoordinates);
}
//--------------------
//
//--------------------
void
G4FastStep::
SetPrimaryTrackFinalKineticEnergyAndDirection(G4double kineticEnergy,
const G4ThreeVector &direction,
G4bool localCoordinates)
ProposePrimaryTrackFinalKineticEnergyAndDirection(G4double kineticEnergy,
const G4ThreeVector &direction,
G4bool localCoordinates)
{
// Compute global direction if needed...
G4ThreeVector globalDirection = direction;
@@ -142,13 +157,22 @@ SetPrimaryTrackFinalKineticEnergyAndDirection(G4double kineticEnergy,
SetPrimaryTrackFinalKineticEnergy(kineticEnergy);
}
void
G4FastStep::
SetPrimaryTrackFinalKineticEnergyAndDirection(G4double kineticEnergy,
const G4ThreeVector &direction,
G4bool localCoordinates)
{
ProposePrimaryTrackFinalKineticEnergyAndDirection(kineticEnergy, direction, localCoordinates);
}
//--------------------
//
//--------------------
void
G4FastStep::
SetPrimaryTrackFinalPolarization(const G4ThreeVector &polarization,
G4bool localCoordinates)
ProposePrimaryTrackFinalPolarization(const G4ThreeVector &polarization,
G4bool localCoordinates)
{
// Compute polarization in global system if needed:
G4ThreeVector globalPolarization(polarization);
@@ -159,6 +183,14 @@ SetPrimaryTrackFinalPolarization(const G4ThreeVector &polarization,
thePolarizationChange = globalPolarization;
}
void
G4FastStep::
SetPrimaryTrackFinalPolarization(const G4ThreeVector &polarization,
G4bool localCoordinates)
{
ProposePrimaryTrackFinalPolarization(polarization, localCoordinates);
}
//--------------------
//
//--------------------
@@ -470,7 +502,7 @@ G4bool G4FastStep::CheckIt(const G4Track& aTrack)
G4bool itsOKforMomentum = true;
if ( theEnergyChange >0.) {
accuracy = abs(theMomentumChange.mag2()-1.0);
accuracy = std::abs(theMomentumChange.mag2()-1.0);
if (accuracy > GetAccuracyForWarning()) {
G4cout << " G4FastStep::CheckIt : ";
G4cout << "the Momentum Change is not unit vector !!"
@@ -22,7 +22,7 @@
//
//
// $Id: G4FastTrack.cc,v 1.7 2003/11/10 08:57:22 gcosmo Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//---------------------------------------------------------------
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4GlobalFastSimulationManager.cc,v 1.12 2002/12/04 21:29:50 asaim Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
//---------------------------------------------------------------
@@ -22,7 +22,7 @@
//
//
// $Id: G4VFastSimulationModel.cc,v 1.5 2001/07/11 10:08:25 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//---------------------------------------------------------------
//