Import Geant4 11.2.0 source tree
This commit is contained in:
@@ -39,58 +39,76 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
class G4DataVector;
|
||||
class G4EmDataHandler;
|
||||
class G4EmModelManager;
|
||||
class G4LossTableManager;
|
||||
class G4ParticleChangeForGamma;
|
||||
class G4ParticleChangeForMSC;
|
||||
class G4ParticleDefinition;
|
||||
class G4PhysicsTable;
|
||||
class G4Region;
|
||||
class G4VEmModel;
|
||||
class G4VEnergyLossProcess;
|
||||
class G4VMscModel;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class G4TransportationWithMsc : public G4Transportation
|
||||
{
|
||||
public:
|
||||
enum class ScatteringType
|
||||
{
|
||||
MultipleScattering,
|
||||
};
|
||||
public:
|
||||
enum class ScatteringType
|
||||
{
|
||||
MultipleScattering,
|
||||
SingleScattering,
|
||||
};
|
||||
|
||||
explicit G4TransportationWithMsc(ScatteringType type, G4int verbosity = 0);
|
||||
explicit G4TransportationWithMsc(ScatteringType type, G4int verbosity = 0);
|
||||
|
||||
~G4TransportationWithMsc() override;
|
||||
~G4TransportationWithMsc() override;
|
||||
|
||||
inline void SetMultipleSteps(G4bool val);
|
||||
inline G4bool MultipleSteps() const;
|
||||
inline void SetMultipleSteps(G4bool val);
|
||||
inline G4bool MultipleSteps() const;
|
||||
|
||||
void AddMscModel(G4VMscModel* mscModel, G4int order = 0,
|
||||
const G4Region* region = nullptr);
|
||||
void AddMscModel(G4VMscModel* mscModel, G4int order = 0, const G4Region* region = nullptr);
|
||||
|
||||
public:
|
||||
void PreparePhysicsTable(const G4ParticleDefinition& part) override;
|
||||
void BuildPhysicsTable(const G4ParticleDefinition& part) override;
|
||||
void AddSSModel(G4VEmModel* model, G4int order = 0, const G4Region* region = nullptr);
|
||||
|
||||
void StartTracking(G4Track* track) override;
|
||||
public:
|
||||
void PreparePhysicsTable(const G4ParticleDefinition& part) override;
|
||||
void BuildPhysicsTable(const G4ParticleDefinition& part) override;
|
||||
|
||||
G4double AlongStepGetPhysicalInteractionLength(
|
||||
const G4Track& track, G4double previousStepSize,
|
||||
G4double currentMinimumStep, G4double& proposedSafety,
|
||||
G4GPILSelection* selection) override;
|
||||
void StartTracking(G4Track* track) override;
|
||||
|
||||
private:
|
||||
const ScatteringType fType;
|
||||
G4bool fMultipleSteps = false;
|
||||
G4double AlongStepGetPhysicalInteractionLength(const G4Track& track, G4double previousStepSize,
|
||||
G4double currentMinimumStep,
|
||||
G4double& proposedSafety,
|
||||
G4GPILSelection* selection) override;
|
||||
|
||||
G4LossTableManager* fEmManager;
|
||||
G4EmModelManager* fModelManager;
|
||||
const G4ParticleDefinition* fFirstParticle = nullptr;
|
||||
private:
|
||||
const ScatteringType fType;
|
||||
G4bool fMultipleSteps = false;
|
||||
|
||||
// For ScatteringType::MultipleScattering
|
||||
G4ParticleChangeForMSC* fParticleChangeForMSC = nullptr;
|
||||
G4LossTableManager* fEmManager;
|
||||
G4EmModelManager* fModelManager;
|
||||
|
||||
G4DynamicParticle* fSubStepDynamicParticle;
|
||||
G4Track* fSubStepTrack;
|
||||
G4Step* fSubStep;
|
||||
// Not initialized in the constructor, but later in PreparePhysicsTable or StartTracking.
|
||||
const G4DataVector* fCuts = nullptr;
|
||||
const G4ParticleDefinition* fFirstParticle = nullptr;
|
||||
G4VEnergyLossProcess* fIonisation = nullptr;
|
||||
|
||||
// For ScatteringType::MultipleScattering
|
||||
G4ParticleChangeForMSC* fParticleChangeForMSC = nullptr;
|
||||
|
||||
// For ScatteringType::SingleScattering
|
||||
G4EmDataHandler* fEmData = nullptr;
|
||||
G4PhysicsTable* fLambdaTable = nullptr;
|
||||
G4ParticleChangeForGamma* fParticleChangeForSS = nullptr;
|
||||
std::vector<G4DynamicParticle*>* fSecondariesSS = nullptr;
|
||||
|
||||
G4DynamicParticle* fSubStepDynamicParticle;
|
||||
G4Track* fSubStepTrack;
|
||||
G4Step* fSubStep;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
Reference in New Issue
Block a user