Import Geant4 11.2.0 source tree
This commit is contained in:
@@ -34,17 +34,6 @@
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
ActionInitialization::ActionInitialization()
|
||||
: G4VUserActionInitialization()
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
ActionInitialization::~ActionInitialization()
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void ActionInitialization::BuildForMaster() const
|
||||
{
|
||||
RunAction* runAction = new RunAction;
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
DetectorConstruction::DetectorConstruction()
|
||||
: G4VUserDetectorConstruction(),fWorldSizeXY(0),fWorldSizeZ(0)
|
||||
{
|
||||
fWorldSizeXY = 2*cm;
|
||||
fWorldSizeZ = 2*cm;
|
||||
@@ -50,11 +49,6 @@ DetectorConstruction::DetectorConstruction()
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
DetectorConstruction::~DetectorConstruction()
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
G4VPhysicalVolume* DetectorConstruction::Construct()
|
||||
{
|
||||
//
|
||||
|
||||
@@ -36,19 +36,12 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
HistoManager::HistoManager()
|
||||
: fFileName("particleGun")
|
||||
{
|
||||
Book();
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
HistoManager::~HistoManager()
|
||||
{
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void HistoManager::Book()
|
||||
{
|
||||
// Create or get analysis manager
|
||||
|
||||
@@ -36,17 +36,6 @@
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PhysicsList::PhysicsList()
|
||||
: G4VUserPhysicsList()
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PhysicsList::~PhysicsList()
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PhysicsList::ConstructParticle()
|
||||
{
|
||||
G4Geantino::GeantinoDefinition();
|
||||
|
||||
@@ -48,15 +48,6 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PrimaryGeneratorAction::PrimaryGeneratorAction()
|
||||
: G4VUserPrimaryGeneratorAction(),
|
||||
fParticleGun(0),
|
||||
fAction0(0),
|
||||
fAction1(0),
|
||||
fAction2(0),
|
||||
fAction3(0),
|
||||
fAction4(0),
|
||||
fSelectedAction(0),
|
||||
fGunMessenger(0)
|
||||
{
|
||||
// default particle kinematic
|
||||
//
|
||||
|
||||
@@ -57,11 +57,6 @@ PrimaryGeneratorAction0::PrimaryGeneratorAction0(G4ParticleGun* gun)
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PrimaryGeneratorAction0::~PrimaryGeneratorAction0()
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PrimaryGeneratorAction0::GeneratePrimaries(G4Event* anEvent)
|
||||
{
|
||||
//vertex position fixed
|
||||
|
||||
@@ -50,11 +50,6 @@ PrimaryGeneratorAction1::PrimaryGeneratorAction1(G4ParticleGun* gun)
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PrimaryGeneratorAction1::~PrimaryGeneratorAction1()
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PrimaryGeneratorAction1::GeneratePrimaries(G4Event* anEvent)
|
||||
{
|
||||
const G4double r = 2*mm;
|
||||
|
||||
@@ -54,11 +54,6 @@ PrimaryGeneratorAction2::PrimaryGeneratorAction2(G4ParticleGun* gun)
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PrimaryGeneratorAction2::~PrimaryGeneratorAction2()
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PrimaryGeneratorAction2::GeneratePrimaries(G4Event* anEvent)
|
||||
{
|
||||
// uniform solid angle
|
||||
|
||||
@@ -59,11 +59,6 @@ PrimaryGeneratorAction3::PrimaryGeneratorAction3(G4ParticleGun* gun)
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PrimaryGeneratorAction3::~PrimaryGeneratorAction3()
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PrimaryGeneratorAction3::GeneratePrimaries(G4Event* anEvent)
|
||||
{
|
||||
//particle direction uniform around fNewUz axis
|
||||
|
||||
@@ -64,11 +64,6 @@ PrimaryGeneratorAction4::PrimaryGeneratorAction4(G4ParticleGun* gun)
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PrimaryGeneratorAction4::~PrimaryGeneratorAction4()
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PrimaryGeneratorAction4::GeneratePrimaries(G4Event* anEvent)
|
||||
{
|
||||
//vertex position uniform in spherical shell
|
||||
|
||||
@@ -39,10 +39,7 @@
|
||||
|
||||
PrimaryGeneratorMessenger::PrimaryGeneratorMessenger
|
||||
(PrimaryGeneratorAction* Gun)
|
||||
:G4UImessenger(),
|
||||
fAction(Gun),
|
||||
fDir(0),
|
||||
fSelectActionCmd(0)
|
||||
:fAction(Gun)
|
||||
{
|
||||
fDir = new G4UIdirectory("/gunExample/");
|
||||
fDir->SetGuidance("this example");
|
||||
|
||||
@@ -39,7 +39,6 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
RunAction::RunAction()
|
||||
:G4UserRunAction(), fHistoManager(0)
|
||||
{
|
||||
fHistoManager = new HistoManager();
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
TrackingAction::TrackingAction(PrimaryGeneratorAction* prim)
|
||||
:G4UserTrackingAction(), fPrimary(prim)
|
||||
:fPrimary(prim)
|
||||
{
|
||||
// parameters for generator action #3
|
||||
fNewUz = fPrimary->GetAction3()->GetNewUz();
|
||||
|
||||
Reference in New Issue
Block a user