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.hh,v 1.8 2002/11/02 00:10:34 mverderi Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
//---------------------------------------------------------------
@@ -22,7 +22,7 @@
//
//
// $Id: G4FastSimulationManagerProcess.hh,v 1.8 2001/07/11 10:08:23 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
//---------------------------------------------------------------
@@ -22,7 +22,7 @@
//
//
// $Id: G4FastSimulationMessenger.hh,v 1.4 2001/07/11 10:08:23 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// GEANT 4 class header file
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4FastStep.hh,v 1.6 2001/07/11 10:08:23 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4FastStep.hh,v 1.7 2004/11/25 23:34:13 mverderi Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
//---------------------------------------------------------------
@@ -52,6 +52,8 @@
// Set/GetTotalEnergyDeposited() methods.
// Apr 98: MoraDeFreitas - G4FastStep becomes the G4ParticleChange
// for the Fast Simulation Process.
// Nov 04: Verderi - Add ProposeXXX methods. SetXXX ones are kept
// for backward compatibility.
//
//---------------------------------------------------------------
@@ -75,13 +77,12 @@ class G4DynamicParticle;
// Class Description:
// The final state of the particles after parameterisation has to be returned through a G4FastStep
// reference. This final state is described has "requests" the tracking will apply after your
// reference. This final state is described as "requests" the tracking will apply after your
// parameterisation has been invoked.
//
// To facilitate the developers work, changes of position/normalized direction of the
// momentum/polarization can be specified in the local coordinate system of the envelope or in the
// global one.
//
// The default is local system coordinates.
//
@@ -95,41 +96,72 @@ public: // with Description
// -- Methods used to change the position, normalized direction of
// the momentum, time etc... of the primary.
// .. space and time:
void SetPrimaryTrackFinalPosition (const G4ThreeVector &,
G4bool localCoordinates = true);
// Set the primary position.
void ProposePrimaryTrackFinalPosition (const G4ThreeVector &,
G4bool localCoordinates = true);
// Set the primary track final position.
void SetPrimaryTrackFinalPosition (const G4ThreeVector &,
G4bool localCoordinates = true);
// Set the primary track final position -- maintained for backward compatibility.
void ProposePrimaryTrackFinalTime (G4double);
// Set the primary track final time.
void SetPrimaryTrackFinalTime (G4double);
// Set the primary track final time -- maintained for backward compatibility.
void SetPrimaryTrackFinalTime (G4double);
// Set the primary final time.
void SetPrimaryTrackFinalProperTime (G4double);
// Set the primary final Proper Time.
void ProposePrimaryTrackFinalProperTime (G4double);
// Set the primary final track Proper Time.
void SetPrimaryTrackFinalProperTime (G4double);
// Set the primary final track Proper Time -- maintained for backward compatibility.
// .. dynamics:
void ProposePrimaryTrackFinalMomentumDirection (const G4ThreeVector &,
G4bool localCoordinates = true);
// Be careful: the Track Final Momentum means the normalized direction
// of the momentum!
void SetPrimaryTrackFinalMomentum (const G4ThreeVector &,
G4bool localCoordinates = true);
// Set the primary final momentum.
void SetPrimaryTrackFinalMomentum (const G4ThreeVector &,
G4bool localCoordinates = true);
// Set the primary track final momentum -- maintained for backward compatibility. Same as ProposePrimaryTrackMomentumDirection(...)
void SetPrimaryTrackFinalKineticEnergy (G4double);
// Set the primary final kinetic energy.
void SetPrimaryTrackFinalKineticEnergyAndDirection(G4double,
const G4ThreeVector &,
G4bool localCoordinates
= true);
// Set the primary final kinetic energy and direction.
void ProposePrimaryTrackFinalKineticEnergy (G4double);
// Set the primary track final kinetic energy.
void SetPrimaryTrackFinalKineticEnergy (G4double);
// Set the primary track final kinetic energy-- maintained for backward compatibility.
void SetPrimaryTrackFinalPolarization(const G4ThreeVector &,
G4bool localCoordinates = true);
// Set the primary final polarization.
void SetPrimaryTrackPathLength (G4double);
// Set the true path length of the primary during the step.
void ProposePrimaryTrackFinalKineticEnergyAndDirection(G4double,
const G4ThreeVector &,
G4bool localCoordinates
= true);
// Set the primary track final kinetic energy and direction.
void SetPrimaryTrackFinalKineticEnergyAndDirection(G4double,
const G4ThreeVector &,
G4bool localCoordinates
= true);
// Set the primary track final kinetic energy and direction -- maintained for backward compatibility.
void SetPrimaryTrackFinalEventBiasingWeight (G4double);
void ProposePrimaryTrackFinalPolarization(const G4ThreeVector &,
G4bool localCoordinates = true);
// Set the primary track final polarization.
void SetPrimaryTrackFinalPolarization(const G4ThreeVector &,
G4bool localCoordinates = true);
// Set the primary track final polarization.
void ProposePrimaryTrackPathLength (G4double);
// Set the true path length of the primary track during the step.
void SetPrimaryTrackPathLength (G4double);
// Set the true path length of the primary track during the step -- maintained for backward compatibility.
void ProposePrimaryTrackFinalEventBiasingWeight (G4double);
// Set the weight applied for event biasing mechanism.
void SetPrimaryTrackFinalEventBiasingWeight (G4double);
// Set the weight applied for event biasing mechanism -- kept for backward compatibility.
// ------------------------------
// -- Management of secondaries:
@@ -215,8 +247,10 @@ public: // with Description
// information in the G4Trajectory.
//
//------------------------------------------------
void SetTotalEnergyDeposited(G4double anEnergyPart);
void ProposeTotalEnergyDeposited(G4double anEnergyPart);
// Set the total energy deposited.
void SetTotalEnergyDeposited(G4double anEnergyPart);
// Set the total energy deposited -- kept for backward compatibility.
// It should be the delta energy of primary less the energy of the secondaries.
G4double GetTotalEnergyDeposited() const;
@@ -21,22 +21,34 @@
// ********************************************************************
//
//
// $Id: G4FastStep.icc,v 1.3 2001/07/11 10:08:24 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4FastStep.icc,v 1.4 2004/11/25 23:34:13 mverderi Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
// $id: G4ParticleChange.icc,v 1.6 1998/04/14 02:25:54 kurasige Exp $
inline void
G4FastStep::SetPrimaryTrackFinalTime(G4double time)
G4FastStep::ProposePrimaryTrackFinalTime(G4double time)
{
theTimeChange = time;
}
inline void
G4FastStep::SetPrimaryTrackFinalProperTime(G4double properTime)
G4FastStep:: SetPrimaryTrackFinalTime(G4double time)
{
ProposePrimaryTrackFinalTime(time);
}
inline void
G4FastStep::ProposePrimaryTrackFinalProperTime(G4double properTime)
{
theProperTimeChange = properTime;
}
inline void
G4FastStep:: SetPrimaryTrackFinalProperTime(G4double properTime)
{
ProposePrimaryTrackFinalProperTime(properTime);
}
inline void
G4FastStep::
@@ -45,10 +57,16 @@ SetPrimaryTrackFinalKineticEnergy(G4double kineticEnergy)
theEnergyChange = kineticEnergy;
}
inline void
G4FastStep::ProposePrimaryTrackPathLength(G4double pathLength)
{
ProposeTrueStepLength(pathLength);
}
inline void
G4FastStep::SetPrimaryTrackPathLength(G4double pathLength)
{
SetTrueStepLength(pathLength);
ProposePrimaryTrackPathLength(pathLength);
}
//-----------------------------------------
//
@@ -77,9 +95,13 @@ inline G4Track* G4FastStep::GetSecondaryTrack(G4int i)
//---------------------------------------
//
//---------------------------------------
inline void G4FastStep::ProposeTotalEnergyDeposited(G4double anEnergyPart)
{
ProposeLocalEnergyDeposit(anEnergyPart);
}
inline void G4FastStep::SetTotalEnergyDeposited(G4double anEnergyPart)
{
SetLocalEnergyDeposit(anEnergyPart);
ProposeTotalEnergyDeposited(anEnergyPart);
}
@@ -91,7 +113,7 @@ inline G4double G4FastStep::GetTotalEnergyDeposited() const
inline void G4FastStep::ForceSteppingHitInvocation()
{
SetSteppingControl(NormalCondition);
ProposeSteppingControl(NormalCondition);
}
inline
@@ -105,14 +127,21 @@ void G4FastStep::SetMomentumChange(
theMomentumChange.setZ(Pz);
}
inline
void G4FastStep::SetMomentumChange(const G4ThreeVector& P)
{
theMomentumChange = P;
}
inline
void G4FastStep::SetPrimaryTrackFinalEventBiasingWeight (G4double w)
void G4FastStep::ProposePrimaryTrackFinalEventBiasingWeight (G4double w)
{
theWeightChange = w;
}
inline
void G4FastStep::SetPrimaryTrackFinalEventBiasingWeight (G4double w)
{
ProposePrimaryTrackFinalEventBiasingWeight(w);
}
@@ -22,7 +22,7 @@
//
//
// $Id: G4FastTrack.hh,v 1.5 2001/07/11 10:08:24 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
// $Id:
//---------------------------------------------------------------
@@ -22,7 +22,7 @@
//
//
// $Id: G4FlavoredParallelWorld.hh,v 1.5 2001/07/11 10:08:24 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
//---------------------------------------------------------------
@@ -22,7 +22,7 @@
//
//
// $Id: G4GlobalFastSimulationManager.hh,v 1.9 2002/11/02 00:10:34 mverderi Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
//---------------------------------------------------------------
@@ -22,7 +22,7 @@
//
//
// $Id: G4VFastSimulationModel.hh,v 1.5 2003/05/21 16:32:11 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
//---------------------------------------------------------------