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,25 +23,16 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// G4ParticleChangeForTransport
//
// Class description:
//
//
// ------------------------------------------------------------
// GEANT 4 class header file
//
//
// ------------------------------------------------------------
// Implemented for the new scheme 10 May. 1998 H.Kurahige
// Added theMaterialChange 16 FEb. 2000 H.Kurahige
// Remove thePolarizationChange 12 Feb. 2001 H.Kurashige
// Modification for G4TouchableHandle 22 Oct. 2001 R.Chytracek
// Add MaterialCutsCouple 8 Oct. 2002 H.Kurashige
//
// Class Description
// This class is a concrete class for ParticleChange for transportation
//
#ifndef G4ParticleChangeForTransport_h
#define G4ParticleChangeForTransport_h 1
// Concrete class for ParticleChange for transportation.
// Author: Hisaya Kurashige, 10 May 1998
// --------------------------------------------------------------------
#ifndef G4ParticleChangeForTransport_hh
#define G4ParticleChangeForTransport_hh 1
#include "globals.hh"
#include "G4ios.hh"
@@ -51,95 +42,88 @@
class G4MaterialCutsCouple;
class G4VSensitiveDetector;
class G4ParticleChangeForTransport: public G4ParticleChange
{
class G4ParticleChangeForTransport : public G4ParticleChange
{
public:
// default constructor
G4ParticleChangeForTransport();
// Default constructor
// destructor
virtual ~G4ParticleChangeForTransport();
// Destructor
protected:
// hide copy constructor and assignment operator as protected
G4ParticleChangeForTransport(const G4ParticleChangeForTransport &right);
G4ParticleChangeForTransport & operator=(const G4ParticleChangeForTransport &right);
// --- 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
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
virtual G4Step* UpdateStepForAlongStep(G4Step* Step);
virtual G4Step* UpdateStepForAtRest(G4Step* Step);
virtual G4Step* UpdateStepForPostStep(G4Step* Step);
// A physics process gives the final state of the particle
// based on information of G4Track (or equivalently the PreStepPoint)
// A physics process gives the final state of the particle
// based on information of G4Track (or equivalently the PreStepPoint)
virtual void Initialize(const G4Track&);
// Initialize all propoerties by using G4Track information
// ----------------------------------------------------
//--- methods to keep information of the final state--
// IMPORTANT NOTE: Although the name of the class and methods are
// "Change", what it stores (and returns in get) are the "FINAL"
// values of the Position, Momentum, etc.
// Initialize all properties by using G4Track information
// --- methods to keep information of the final state ---
// IMPORTANT NOTE: despite the name, what this class stores/returns
// through its methods, are the "FINAL" values of the Position, Momentum, etc.
const G4TouchableHandle& GetTouchableHandle() const;
void SetTouchableHandle(const G4TouchableHandle& fTouchable);
// Get/Set the touchable of the current particle.
// Note: Touchable in PostStepPoint will be updated only after PostStepDoIt
void SetTouchableHandle(const G4TouchableHandle& fTouchable);
// Get/Set the touchable of the current particle.
// Note: Touchable in PostStepPoint will be updated only after
// PostStepDoIt
G4Material* GetMaterialInTouchable() const;
void SetMaterialInTouchable(G4Material* fMaterial);
// Get/Propose the material in the touchable of the current particle.
// Get/Propose the material in the touchable of the current particle
const G4MaterialCutsCouple* GetMaterialCutsCoupleInTouchable() const;
void SetMaterialCutsCoupleInTouchable(const G4MaterialCutsCouple* fMaterialCutsCouple);
// Get/Set the materialCutsCouple in the touchable of the current particle.
void SetMaterialCutsCoupleInTouchable(
const G4MaterialCutsCouple* fMaterialCutsCouple);
// Get/Set the materialCutsCouple in the touchable of the current
// particle
G4VSensitiveDetector* GetSensitiveDetectorInTouchable() const;
void SetSensitiveDetectorInTouchable(G4VSensitiveDetector* fSensitiveDetector);
// Get/Set the sensitive detector in the touchable of the current particle.
void SetSensitiveDetectorInTouchable(
G4VSensitiveDetector* fSensitiveDetector);
// Get/Set the sensitive detector in the touchable of the current particle
G4bool GetMomentumChanged() const;
void SetMomentumChanged(G4bool b);
public:
inline void SetPointerToVectorOfAuxiliaryPoints(std::vector<G4ThreeVector>* vec);
inline std::vector<G4ThreeVector>* GetPointerToVectorOfAuxiliaryPoints() const;
// Smooth representation of curved trajectories
virtual void DumpInfo() const;
protected:
G4ParticleChangeForTransport(const G4ParticleChangeForTransport& right);
G4ParticleChangeForTransport& operator=(const G4ParticleChangeForTransport& right);
// Hidden copy constructor and assignment operator
G4TouchableHandle theTouchableHandle;
// The changed touchable of a given particle.
public:
// Prototype implementation of smooth representation of curved trajectories.
// Auxiliary points are ThreeVectors for now; change to G4AuxiliaryPoints.
inline void SetPointerToVectorOfAuxiliaryPoints( std::vector<G4ThreeVector>* theNewVectorPointer );
inline std::vector<G4ThreeVector>* GetPointerToVectorOfAuxiliaryPoints() const;
// The changed touchable of a given particle
private:
G4bool isMomentumChanged;
// The flag which is set if momentum is changed in current step
G4Material* theMaterialChange;
const G4MaterialCutsCouple* theMaterialCutsCoupleChange;
G4VSensitiveDetector* theSensitiveDetectorChange;
// The material (and MaterialCutsCouple) where given track
// currently locates
private:
std::vector<G4ThreeVector>* fpVectorOfAuxiliaryPointsPointer;
G4bool isMomentumChanged = false;
// The flag which is set if momentum is changed in current step
G4Material* theMaterialChange = nullptr;
const G4MaterialCutsCouple* theMaterialCutsCoupleChange = nullptr;
G4VSensitiveDetector* theSensitiveDetectorChange = nullptr;
// The material (and MaterialCutsCouple) where given track
// currently locates
std::vector<G4ThreeVector>* fpVectorOfAuxiliaryPointsPointer = nullptr;
};
#include "G4ParticleChangeForTransport.icc"
#endif