Import Geant4 11.3.0.beta source tree
This commit is contained in:
@@ -32,10 +32,9 @@
|
||||
|
||||
#include "G4VUserActionInitialization.hh"
|
||||
|
||||
|
||||
namespace B4
|
||||
{
|
||||
class DetectorConstruction;
|
||||
class DetectorConstruction;
|
||||
}
|
||||
|
||||
namespace B4a
|
||||
@@ -56,8 +55,6 @@ class ActionInitialization : public G4VUserActionInitialization
|
||||
B4::DetectorConstruction* fDetConstruction = nullptr;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace B4a
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -31,6 +31,8 @@
|
||||
#define B4DetectorConstruction_h 1
|
||||
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
|
||||
#include "G4Threading.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4VPhysicalVolume;
|
||||
@@ -76,28 +78,29 @@ class DetectorConstruction : public G4VUserDetectorConstruction
|
||||
|
||||
// data members
|
||||
//
|
||||
static G4ThreadLocal G4GlobalMagFieldMessenger* fMagFieldMessenger;
|
||||
// magnetic field messenger
|
||||
static G4ThreadLocal G4GlobalMagFieldMessenger* fMagFieldMessenger;
|
||||
// magnetic field messenger
|
||||
|
||||
G4VPhysicalVolume* fAbsorberPV = nullptr; // the absorber physical volume
|
||||
G4VPhysicalVolume* fGapPV = nullptr; // the gap physical volume
|
||||
G4VPhysicalVolume* fAbsorberPV = nullptr; // the absorber physical volume
|
||||
G4VPhysicalVolume* fGapPV = nullptr; // the gap physical volume
|
||||
|
||||
G4bool fCheckOverlaps = true; // option to activate checking of volumes overlaps
|
||||
G4bool fCheckOverlaps = true; // option to activate checking of volumes overlaps
|
||||
};
|
||||
|
||||
// inline functions
|
||||
|
||||
inline const G4VPhysicalVolume* DetectorConstruction::GetAbsorberPV() const {
|
||||
inline const G4VPhysicalVolume* DetectorConstruction::GetAbsorberPV() const
|
||||
{
|
||||
return fAbsorberPV;
|
||||
}
|
||||
|
||||
inline const G4VPhysicalVolume* DetectorConstruction::GetGapPV() const {
|
||||
inline const G4VPhysicalVolume* DetectorConstruction::GetGapPV() const
|
||||
{
|
||||
return fGapPV;
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace B4
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
#include "G4UserEventAction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4Event;
|
||||
|
||||
namespace B4a
|
||||
{
|
||||
|
||||
@@ -50,34 +52,34 @@ class EventAction : public G4UserEventAction
|
||||
EventAction() = default;
|
||||
~EventAction() override = default;
|
||||
|
||||
void BeginOfEventAction(const G4Event* event) override;
|
||||
void EndOfEventAction(const G4Event* event) override;
|
||||
void BeginOfEventAction(const G4Event* event) override;
|
||||
void EndOfEventAction(const G4Event* event) override;
|
||||
|
||||
void AddAbs(G4double de, G4double dl);
|
||||
void AddGap(G4double de, G4double dl);
|
||||
|
||||
private:
|
||||
G4double fEnergyAbs = 0.;
|
||||
G4double fEnergyGap = 0.;
|
||||
G4double fTrackLAbs = 0.;
|
||||
G4double fTrackLGap = 0.;
|
||||
G4double fEnergyAbs = 0.;
|
||||
G4double fEnergyGap = 0.;
|
||||
G4double fTrackLAbs = 0.;
|
||||
G4double fTrackLGap = 0.;
|
||||
};
|
||||
|
||||
// inline functions
|
||||
|
||||
inline void EventAction::AddAbs(G4double de, G4double dl) {
|
||||
inline void EventAction::AddAbs(G4double de, G4double dl)
|
||||
{
|
||||
fEnergyAbs += de;
|
||||
fTrackLAbs += dl;
|
||||
}
|
||||
|
||||
inline void EventAction::AddGap(G4double de, G4double dl) {
|
||||
inline void EventAction::AddGap(G4double de, G4double dl)
|
||||
{
|
||||
fEnergyGap += de;
|
||||
fTrackLGap += dl;
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace B4a
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#define B4PrimaryGeneratorAction_h 1
|
||||
|
||||
#include "G4VUserPrimaryGeneratorAction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4ParticleGun;
|
||||
class G4Event;
|
||||
@@ -48,17 +47,17 @@ namespace B4
|
||||
|
||||
class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
{
|
||||
public:
|
||||
PrimaryGeneratorAction();
|
||||
~PrimaryGeneratorAction() override;
|
||||
public:
|
||||
PrimaryGeneratorAction();
|
||||
~PrimaryGeneratorAction() override;
|
||||
|
||||
void GeneratePrimaries(G4Event* event) override;
|
||||
void GeneratePrimaries(G4Event* event) override;
|
||||
|
||||
private:
|
||||
G4ParticleGun* fParticleGun = nullptr; // G4 particle gun
|
||||
private:
|
||||
G4ParticleGun* fParticleGun = nullptr; // G4 particle gun
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace B4
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#define B4RunAction_h 1
|
||||
|
||||
#include "G4UserRunAction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4Run;
|
||||
|
||||
@@ -63,12 +62,11 @@ class RunAction : public G4UserRunAction
|
||||
~RunAction() override = default;
|
||||
|
||||
void BeginOfRunAction(const G4Run*) override;
|
||||
void EndOfRunAction(const G4Run*) override;
|
||||
void EndOfRunAction(const G4Run*) override;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace B4
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -32,9 +32,11 @@
|
||||
|
||||
#include "G4UserSteppingAction.hh"
|
||||
|
||||
class G4Step;
|
||||
|
||||
namespace B4
|
||||
{
|
||||
class DetectorConstruction;
|
||||
class DetectorConstruction;
|
||||
}
|
||||
|
||||
namespace B4a
|
||||
@@ -50,19 +52,18 @@ class EventAction;
|
||||
|
||||
class SteppingAction : public G4UserSteppingAction
|
||||
{
|
||||
public:
|
||||
SteppingAction(const B4::DetectorConstruction* detConstruction,
|
||||
EventAction* eventAction);
|
||||
~SteppingAction() override = default;
|
||||
public:
|
||||
SteppingAction(const B4::DetectorConstruction* detConstruction, EventAction* eventAction);
|
||||
~SteppingAction() override = default;
|
||||
|
||||
void UserSteppingAction(const G4Step* step) override;
|
||||
void UserSteppingAction(const G4Step* step) override;
|
||||
|
||||
private:
|
||||
const B4::DetectorConstruction* fDetConstruction = nullptr;
|
||||
EventAction* fEventAction = nullptr;
|
||||
private:
|
||||
const B4::DetectorConstruction* fDetConstruction = nullptr;
|
||||
EventAction* fEventAction = nullptr;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace B4a
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
|
||||
Reference in New Issue
Block a user