Import Geant4 10.7.0 source tree

This commit is contained in:
Gabriele Cosmo
2020-12-04 12:30:43 +01:00
parent 67ba86d073
commit dab42d2018
3770 changed files with 226369 additions and 286486 deletions
@@ -23,147 +23,139 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// G4ParticleChangeForDecay
//
// Class description:
//
// Concrete class for ParticleChange which has functionality for G4Decay.
//
// This class contains the results after invocation of the decay process.
// This includes secondary particles generated by the interaction.
//
//
// ------------------------------------------------------------
// GEANT 4 class header file
//
//
// ------------------------------------------------------------
// Implemented for the new scheme 23 Mar. 1998 H.Kurahige
//
// Class Description
// This class is a concrete class for ParticleChange which
// has functionality for G4Decay.
//
// This class contains the results after invocation of the decay process.
// This includes secondary particles generated by the interaction.
// ------------------------------------------------------------
#ifndef G4ParticleChangeForDecay_h
#define G4ParticleChangeForDecay_h 1
// Author: Hisaya Kurashige, 23 March 1998
// --------------------------------------------------------------------
#ifndef G4ParticleChangeForDecay_hh
#define G4ParticleChangeForDecay_hh 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4ThreeVector.hh"
class G4DynamicParticle;
#include "G4VParticleChange.hh"
class G4ParticleChangeForDecay: public G4VParticleChange
class G4DynamicParticle;
class G4ParticleChangeForDecay : public G4VParticleChange
{
public:
// default constructor
G4ParticleChangeForDecay();
// destructor
virtual ~G4ParticleChangeForDecay();
protected:
// hide copy constructor and assignment operaor as protected
G4ParticleChangeForDecay(const G4ParticleChangeForDecay &right);
G4ParticleChangeForDecay & operator=(const G4ParticleChangeForDecay &right);
public:
// equal/unequal operator
G4bool operator==(const G4ParticleChangeForDecay &right) const;
G4bool operator!=(const G4ParticleChangeForDecay &right) const;
public: // with description
// ----------------------------------------------------
// --- the following methods are for updating G4Step -----
// Return the pointer to the G4Step after updating the Step information
// by using final state information of the track given by a physics
// process
// !!! No effect for AlongSteyp
// virtual G4Step* UpdateStepForAlongStep(G4Step* Step);
G4ParticleChangeForDecay();
// Default constructor
virtual ~G4ParticleChangeForDecay();
// Destructor
G4bool operator==(const G4ParticleChangeForDecay& right) const;
G4bool operator!=(const G4ParticleChangeForDecay& right) const;
// Equality operators
// --- the following methods are for updating G4Step -----
// Return the pointer to the G4Step after updating the step information
// by using final state information of the track given by a physics process
// !!! No effect for AlongSteyp
virtual G4Step* UpdateStepForAtRest(G4Step* Step);
virtual G4Step* UpdateStepForPostStep(G4Step* Step);
virtual void Initialize(const G4Track&);
// Initialize all propoerties by using G4Track information
// Initialize all properties by using G4Track information
void ProposeGlobalTime(G4double t);
void ProposeLocalTime(G4double t);
// Get/Propose the final global/local Time
// NOTE: DO NOT INVOKE both methods in a step
// Each method affects both local and global time
void ProposeGlobalTime(G4double t);
void ProposeLocalTime(G4double t);
// Get/Propose the final global/local time
// NOTE: DO NOT INVOKE both methods in a step
// Each method affects both local and global time
G4double GetGlobalTime(G4double timeDelay=0.0) const;
G4double GetLocalTime(G4double timeDelay=0.0) const;
// Convert the time delay to the glocbal/local time.
// Can get the final global/local Time without argument
G4double GetGlobalTime(G4double timeDelay = 0.0) const;
G4double GetLocalTime(G4double timeDelay = 0.0) const;
// Convert the time delay to the glocbal/local time.
// Can get the final global/local time without argument
const G4ThreeVector* GetPolarization() const;
void ProposePolarization(G4double Px, G4double Py, G4double Pz);
void ProposePolarization(const G4ThreeVector& finalPoralization);
// Get/Propose the final Polarization vector.
void ProposePolarization(G4double Px, G4double Py, G4double Pz);
void ProposePolarization(const G4ThreeVector& finalPoralization);
// Get/Propose the final Polarization vector
// --- Dump and debug methods ---
public:
virtual void DumpInfo() const;
protected:
G4double theGlobalTime0;
// The global time at Initial.
G4double theLocalTime0;
// The local time at Initial.
virtual G4bool CheckIt(const G4Track&);
G4double theTimeChange;
// The change of local time of a given particle.
protected:
G4ParticleChangeForDecay(const G4ParticleChangeForDecay& right);
G4ParticleChangeForDecay& operator=(const G4ParticleChangeForDecay& right);
// Hidden copy constructor and assignment operator
G4double theGlobalTime0 = 0.0;
// The global time at Initial
G4double theLocalTime0 = 0.0;
// The local time at Initial
G4double theTimeChange = 0.0;
// The change of local time of a given particle
G4ThreeVector thePolarizationChange;
// The changed (final) polarization of a given track
public:
// for Debug
virtual G4bool CheckIt(const G4Track&);
// The changed (final) polarization of a given track
};
inline
void G4ParticleChangeForDecay::ProposeGlobalTime(G4double t)
{
theTimeChange = (t-theGlobalTime0) + theLocalTime0;
}
// ----------------------
// Inline methods
// ----------------------
inline
G4double G4ParticleChangeForDecay::GetGlobalTime(G4double timeDelay) const
void G4ParticleChangeForDecay::ProposeGlobalTime(G4double t)
{
// Convert the time delay to the global time.
return theGlobalTime0 + (theTimeChange-theLocalTime0) + timeDelay;
theTimeChange = (t - theGlobalTime0) + theLocalTime0;
}
inline
void G4ParticleChangeForDecay::ProposeLocalTime(G4double t)
inline
G4double G4ParticleChangeForDecay::GetGlobalTime(G4double timeDelay) const
{
// Convert the time delay to the global time.
return theGlobalTime0 + (theTimeChange - theLocalTime0) + timeDelay;
}
inline
void G4ParticleChangeForDecay::ProposeLocalTime(G4double t)
{
theTimeChange = t;
}
inline
G4double G4ParticleChangeForDecay::GetLocalTime(G4double timeDelay) const
G4double G4ParticleChangeForDecay::GetLocalTime(G4double timeDelay) const
{
// Convert the time delay to the local time.
return theTimeChange + timeDelay;
}
inline
const G4ThreeVector* G4ParticleChangeForDecay::GetPolarization() const
const G4ThreeVector* G4ParticleChangeForDecay::GetPolarization() const
{
return &thePolarizationChange;
}
inline
void G4ParticleChangeForDecay::ProposePolarization(const G4ThreeVector& finalPoralization)
void G4ParticleChangeForDecay::ProposePolarization(
const G4ThreeVector& finalPoralization)
{
thePolarizationChange = finalPoralization;
}
inline
void G4ParticleChangeForDecay::ProposePolarization(
G4double Px,
G4double Py,
G4double Pz )
void G4ParticleChangeForDecay::ProposePolarization(G4double Px,
G4double Py,
G4double Pz)
{
thePolarizationChange.setX(Px);
thePolarizationChange.setY(Py);