Import Geant4 11.2.0 source tree
This commit is contained in:
@@ -37,20 +37,14 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
ActionInitialization::ActionInitialization(DetectorConstruction* detector)
|
||||
: G4VUserActionInitialization(),
|
||||
fDetector(detector)
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
ActionInitialization::~ActionInitialization()
|
||||
{}
|
||||
: fDetector(detector)
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void ActionInitialization::BuildForMaster() const
|
||||
{
|
||||
RunAction* runAction = new RunAction(fDetector, 0);
|
||||
RunAction* runAction = new RunAction(fDetector, nullptr);
|
||||
SetUserAction(runAction);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,8 +58,6 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
DetectorConstruction::DetectorConstruction()
|
||||
:G4VUserDetectorConstruction(),fDefaultMaterial(0),fPhysiWorld(0),
|
||||
fDetectorMessenger(0)
|
||||
{
|
||||
// default parameter values of the absorbers
|
||||
fNbOfAbsor = 1;
|
||||
|
||||
@@ -44,14 +44,8 @@
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
DetectorMessenger::DetectorMessenger(DetectorConstruction * Det)
|
||||
:G4UImessenger(),fDetector(Det),
|
||||
fTestemDir(0),
|
||||
fDetDir(0),
|
||||
fNbAbsorCmd(0),
|
||||
fAbsorCmd(0),
|
||||
fSizeYZCmd(0),
|
||||
fIsotopeCmd(0)
|
||||
DetectorMessenger::DetectorMessenger(DetectorConstruction * det)
|
||||
:fDetector(det)
|
||||
{
|
||||
fTestemDir = new G4UIdirectory("/testhadr/");
|
||||
fTestemDir->SetGuidance(" detector control.");
|
||||
|
||||
@@ -84,11 +84,6 @@ ElectromagneticPhysics::ElectromagneticPhysics(const G4String& name)
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
ElectromagneticPhysics::~ElectromagneticPhysics()
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void ElectromagneticPhysics::ConstructProcess()
|
||||
{
|
||||
G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
|
||||
|
||||
@@ -42,13 +42,8 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
EventAction::EventAction(DetectorConstruction* det)
|
||||
:G4UserEventAction(), fDetector(det)
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
EventAction::~EventAction()
|
||||
{}
|
||||
:fDetector(det)
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
/// \brief Implementation of the GammaNuclearPhysics class
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "GammaNuclearPhysics.hh"
|
||||
@@ -53,11 +52,6 @@ GammaNuclearPhysics::GammaNuclearPhysics(const G4String& name)
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
GammaNuclearPhysics::~GammaNuclearPhysics()
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void GammaNuclearPhysics::ConstructProcess()
|
||||
{
|
||||
G4HadronInelasticProcess* process = new G4HadronInelasticProcess( "photonNuclear", G4Gamma::Definition() );
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
//
|
||||
// $Id: GammaNuclearPhysics.cc 66587 2012-12-21 11:06:44Z ihrivnac $
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "GammaNuclearPhysicsLEND.hh"
|
||||
@@ -53,11 +52,6 @@ GammaNuclearPhysicsLEND::GammaNuclearPhysicsLEND(const G4String& name)
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
GammaNuclearPhysicsLEND::~GammaNuclearPhysicsLEND()
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void GammaNuclearPhysicsLEND::ConstructProcess()
|
||||
{
|
||||
G4ProcessManager* pManager = G4Gamma::Gamma()->GetProcessManager();
|
||||
|
||||
@@ -46,8 +46,7 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
HadronElasticPhysicsHP::HadronElasticPhysicsHP(G4int ver)
|
||||
: G4HadronElasticPhysics(ver),
|
||||
fMessenger(nullptr), fThermal(false)
|
||||
: G4HadronElasticPhysics(ver)
|
||||
{
|
||||
// define commands for this class
|
||||
DefineCommands();
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
/// \file HistoManager.cc
|
||||
/// \brief Implementation of the HistoManager class
|
||||
//
|
||||
//
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -38,19 +37,12 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
HistoManager::HistoManager()
|
||||
: fFileName("Hadr07")
|
||||
{
|
||||
Book();
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
HistoManager::~HistoManager()
|
||||
{
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void HistoManager::Book()
|
||||
{
|
||||
// Create or get analysis manager
|
||||
|
||||
@@ -62,7 +62,6 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PhysicsList::PhysicsList()
|
||||
:G4VModularPhysicsList()
|
||||
{
|
||||
G4int verb = 1;
|
||||
SetVerboseLevel(verb);
|
||||
@@ -118,11 +117,6 @@ PhysicsList::PhysicsList()
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PhysicsList::~PhysicsList()
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PhysicsList::SetCuts()
|
||||
{
|
||||
SetCutValue(0*mm, "proton");
|
||||
|
||||
@@ -45,8 +45,7 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PrimaryGeneratorAction::PrimaryGeneratorAction(DetectorConstruction* det)
|
||||
:G4VUserPrimaryGeneratorAction(),
|
||||
fDetector(det),fRndmBeam(0.), fGunMessenger(0)
|
||||
: fDetector(det)
|
||||
{
|
||||
fParticleGun = new G4ParticleGun(1);
|
||||
SetDefaultKinematic();
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PrimaryGeneratorMessenger::PrimaryGeneratorMessenger(
|
||||
PrimaryGeneratorAction* Gun)
|
||||
:G4UImessenger(),fAction(Gun),fGunDir(0),fDefaultCmd(0),fRndmCmd(0)
|
||||
PrimaryGeneratorAction* gun)
|
||||
: fAction(gun)
|
||||
{
|
||||
fGunDir = new G4UIdirectory("/testhadr/gun/");
|
||||
fGunDir->SetGuidance("gun control");
|
||||
|
||||
@@ -58,11 +58,6 @@ RadioactiveDecayPhysics::RadioactiveDecayPhysics(const G4String& name)
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
RadioactiveDecayPhysics::~RadioactiveDecayPhysics()
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void RadioactiveDecayPhysics::ConstructParticle()
|
||||
{
|
||||
G4GenericIon::GenericIon();
|
||||
|
||||
@@ -46,13 +46,8 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Run::Run(DetectorConstruction* detector)
|
||||
: G4Run(),
|
||||
fDetector(detector),
|
||||
fParticle(0), fEkin(0.)
|
||||
: fDetector(detector)
|
||||
{
|
||||
for (G4int i=0; i<3; ++i) {
|
||||
fStatus[i] = 0; fTotEdep[i] = fEleak[i] = fEtotal[i] = 0.;
|
||||
}
|
||||
fTotEdep[1] = fEleak[1] = fEtotal[1] = joule;
|
||||
|
||||
for (G4int i=0; i<kMaxAbsor; ++i) {
|
||||
@@ -62,11 +57,6 @@ Run::Run(DetectorConstruction* detector)
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Run::~Run()
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void Run::SetPrimary (G4ParticleDefinition* particle, G4double energy)
|
||||
{
|
||||
fParticle = particle;
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
RunAction::RunAction(DetectorConstruction* det, PrimaryGeneratorAction* kin)
|
||||
:G4UserRunAction(), fDetector(det), fPrimary(kin), fRun(0), fHistoManager(0)
|
||||
:fDetector(det), fPrimary(kin)
|
||||
{
|
||||
// Book predefined histograms
|
||||
fHistoManager = new HistoManager();
|
||||
|
||||
@@ -47,11 +47,6 @@ StepMaxBuilder::StepMaxBuilder(const G4String& name)
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
StepMaxBuilder::~StepMaxBuilder()
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void StepMaxBuilder::ConstructProcess()
|
||||
{
|
||||
// Step limitation seen as a process
|
||||
|
||||
@@ -39,9 +39,7 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
StepMaxMessenger::StepMaxMessenger(StepMaxProcess* stepM)
|
||||
:G4UImessenger(),fStepMax(stepM),
|
||||
fStepMax1Cmd(0),
|
||||
fStepMax2Cmd(0)
|
||||
:fStepMax(stepM)
|
||||
{
|
||||
fStepMax1Cmd = new G4UIcmdWithADoubleAndUnit("/testhadr/stepMax",this);
|
||||
fStepMax1Cmd->SetGuidance("Set max allowed step length");
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
StepMaxProcess::StepMaxProcess(const G4String& processName, G4ProcessType type)
|
||||
: G4VDiscreteProcess(processName,type),fMess(0)
|
||||
: G4VDiscreteProcess(processName,type)
|
||||
{
|
||||
fMaxStep1 = fMaxStep2 = DBL_MAX;
|
||||
fApplyMaxStep2 = true;
|
||||
|
||||
@@ -43,12 +43,7 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
SteppingAction::SteppingAction(DetectorConstruction* det, EventAction* event)
|
||||
:G4UserSteppingAction(),fDetector(det), fEventAction(event)
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
SteppingAction::~SteppingAction()
|
||||
:fDetector(det), fEventAction(event)
|
||||
{ }
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -44,8 +44,7 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
TrackingAction::TrackingAction(EventAction* evt)
|
||||
:G4UserTrackingAction(), fTrackMessenger(nullptr),fEventAct(evt),
|
||||
fParticleCount(true)
|
||||
:fTrackMessenger(nullptr),fEventAct(evt)
|
||||
{
|
||||
fTrackMessenger = new TrackingMessenger(this);
|
||||
}
|
||||
|
||||
@@ -39,8 +39,7 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
TrackingMessenger::TrackingMessenger(TrackingAction* trackA)
|
||||
:G4UImessenger(),fTrackingAction(trackA),
|
||||
fTrackingDir(nullptr),fCountCmd(nullptr)
|
||||
:fTrackingAction(trackA)
|
||||
{
|
||||
fTrackingDir = new G4UIdirectory("/testhadr/tracking/");
|
||||
fTrackingDir->SetGuidance("tracking commands");
|
||||
|
||||
Reference in New Issue
Block a user