Import Geant4 11.2.0 source tree
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
/// \file DetectorConstruction.hh
|
||||
/// \brief Definition of the DetectorConstruction class
|
||||
|
||||
@@ -40,9 +40,9 @@ class G4VPhysicalVolume;
|
||||
|
||||
/// Detector construction class to demonstrate various ways of placement
|
||||
///
|
||||
/// The geometry setup consists of two trapezoid volumes which are placed
|
||||
/// in a world so that their axial symmetry axis is in given theta and phi
|
||||
/// polar angles. The various ways of placement are implemented in the
|
||||
/// The geometry setup consists of two trapezoid volumes which are placed
|
||||
/// in a world so that their axial symmetry axis is in given theta and phi
|
||||
/// polar angles. The various ways of placement are implemented in the
|
||||
/// DetectorConstruction class in the following private functions:
|
||||
/// - PlaceWithDirectMatrix()
|
||||
/// - PlaceWithInverseMatrix()
|
||||
@@ -51,10 +51,10 @@ class G4VPhysicalVolume;
|
||||
/// - PlaceWithReflections()
|
||||
///
|
||||
/// which are then called from the Construct() function.
|
||||
/// All method defines exactly same geometry except for the placement
|
||||
/// with reflection where trapezoids are placed with their symmetry axis
|
||||
/// in parallel with z-axis in order to make easier to check reflection
|
||||
/// visually.
|
||||
/// All method defines exactly same geometry except for the placement
|
||||
/// with reflection where trapezoids are placed with their symmetry axis
|
||||
/// in parallel with z-axis in order to make easier to check reflection
|
||||
/// visually.
|
||||
|
||||
class DetectorConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
@@ -65,19 +65,19 @@ class DetectorConstruction : public G4VUserDetectorConstruction
|
||||
kWithAxialRotations,
|
||||
kWithEulerAngles,
|
||||
kWithReflections
|
||||
};
|
||||
};
|
||||
|
||||
public:
|
||||
DetectorConstruction();
|
||||
~DetectorConstruction();
|
||||
~DetectorConstruction() override;
|
||||
|
||||
public:
|
||||
// methods from base class
|
||||
virtual G4VPhysicalVolume* Construct();
|
||||
|
||||
// methods from base class
|
||||
G4VPhysicalVolume* Construct() override;
|
||||
|
||||
// set methods
|
||||
void SetMethod(EMethod method);
|
||||
|
||||
|
||||
private:
|
||||
// methods
|
||||
void PlaceWithDirectMatrix();
|
||||
@@ -87,10 +87,10 @@ class DetectorConstruction : public G4VUserDetectorConstruction
|
||||
void PlaceWithReflections();
|
||||
|
||||
// data members
|
||||
DetectorMessenger* fMessenger;
|
||||
EMethod fMethod;
|
||||
G4LogicalVolume* fWorldVolume;
|
||||
G4LogicalVolume* fTrdVolume;
|
||||
DetectorMessenger* fMessenger = nullptr;
|
||||
EMethod fMethod = kWithDirectMatrix;
|
||||
G4LogicalVolume* fWorldVolume = nullptr;
|
||||
G4LogicalVolume* fTrdVolume = nullptr;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -50,14 +50,14 @@ class DetectorMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
DetectorMessenger(DetectorConstruction* );
|
||||
~DetectorMessenger();
|
||||
|
||||
virtual void SetNewValue(G4UIcommand* command, G4String newValue);
|
||||
|
||||
~DetectorMessenger() override;
|
||||
|
||||
void SetNewValue(G4UIcommand* command, G4String newValue) override;
|
||||
|
||||
private:
|
||||
DetectorConstruction* fDetectorConstruction;
|
||||
G4UIdirectory* fDirectory;
|
||||
G4UIcmdWithAString* fSetMethodCmd;
|
||||
DetectorConstruction* fDetectorConstruction = nullptr;
|
||||
G4UIdirectory* fDirectory = nullptr;
|
||||
G4UIcmdWithAString* fSetMethodCmd = nullptr;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -27,9 +27,9 @@
|
||||
/// \brief Definition of the PhysicsList class
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#ifndef PhysicsList_h
|
||||
#define PhysicsList_h 1
|
||||
@@ -42,14 +42,14 @@
|
||||
class PhysicsList: public G4VUserPhysicsList
|
||||
{
|
||||
public:
|
||||
PhysicsList();
|
||||
~PhysicsList();
|
||||
PhysicsList() = default;
|
||||
~PhysicsList() override = default;
|
||||
|
||||
protected:
|
||||
// Construct particle and physics
|
||||
virtual void ConstructParticle();
|
||||
virtual void ConstructProcess();
|
||||
virtual void SetCuts();
|
||||
void ConstructParticle() override;
|
||||
void ConstructProcess() override;
|
||||
void SetCuts() override;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -47,14 +47,14 @@ class G4Event;
|
||||
class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
{
|
||||
public:
|
||||
PrimaryGeneratorAction();
|
||||
~PrimaryGeneratorAction();
|
||||
PrimaryGeneratorAction();
|
||||
~PrimaryGeneratorAction() override;
|
||||
|
||||
public:
|
||||
virtual void GeneratePrimaries(G4Event*);
|
||||
void GeneratePrimaries(G4Event*) override;
|
||||
|
||||
private:
|
||||
G4ParticleGun* fParticleGun;
|
||||
G4ParticleGun* fParticleGun = nullptr;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Reference in New Issue
Block a user