Import Geant4 10.4.0.beta source tree
This commit is contained in:
@@ -39,8 +39,6 @@
|
||||
#include "G4ComptonScattering.hh"
|
||||
#include "G4GammaConversion.hh"
|
||||
#include "G4PhotoElectricEffect.hh"
|
||||
#include "G4RayleighScattering.hh"
|
||||
#include "G4KleinNishinaModel.hh"
|
||||
|
||||
#include "G4eMultipleScattering.hh"
|
||||
#include "G4eIonisation.hh"
|
||||
|
||||
@@ -73,12 +73,12 @@ void HadronElasticPhysicsHP::ConstructProcess()
|
||||
process->RegisterMe(model1);
|
||||
process->AddDataSet(new G4ParticleHPElasticData());
|
||||
|
||||
if (fThermal) {
|
||||
if (fThermal) {
|
||||
model1->SetMinEnergy(4*eV);
|
||||
G4ParticleHPThermalScattering* model2 = new G4ParticleHPThermalScattering();
|
||||
process->RegisterMe(model2);
|
||||
process->AddDataSet(new G4ParticleHPThermalScatteringData());
|
||||
model1->SetMinEnergy(4*eV);
|
||||
}
|
||||
process->AddDataSet(new G4ParticleHPThermalScatteringData());
|
||||
}
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -66,21 +66,21 @@ void HistoManager::Book()
|
||||
const G4String id[] = {"0","1","2","3","4","5","6","7","8","9",
|
||||
"10","11","12","13"};
|
||||
const G4String title[] =
|
||||
{ "dummy", //0
|
||||
"total energy deposit", //1
|
||||
"Edep (MeV/mm) along absorber", //2
|
||||
"total kinetic energy flow", //3
|
||||
"gamma flux (dN/dE) at exit", //4
|
||||
"e+- flux (dN/dE) at exit", //5
|
||||
"neutrons flux (dN/dE) at exit", //6
|
||||
"protons flux (dN/dE) at exit", //7
|
||||
"deuterons flux (dN/dE) at exit", //8
|
||||
"alphas flux (dN/dE) at exit", //9
|
||||
"all others ions flux (dN/dE) at exit", //10
|
||||
"all others baryons flux (dN/dE) at exit", //11
|
||||
"all others mesons flux (dN/dE) at exit", //12
|
||||
"all others leptons flux (dN/dE) at exit" //13
|
||||
};
|
||||
{ "dummy", //0
|
||||
"total energy deposit", //1
|
||||
"Edep (MeV/mm) along absorber", //2
|
||||
"total kinetic energy flow", //3
|
||||
"energy spectrum of emerging gamma", //4
|
||||
"energy spectrum of emerging e+-", //5
|
||||
"energy spectrum of emerging neutrons", //6
|
||||
"energy spectrum of emerging protons", //7
|
||||
"energy spectrum of emerging deuterons", //8
|
||||
"energy spectrum of emerging alphas", //9
|
||||
"energy spectrum of all others emerging ions", //10
|
||||
"energy spectrum of all others emerging baryons", //11
|
||||
"energy spectrum of all others emerging mesons", //12
|
||||
"energy spectrum of all others emerging leptons (neutrinos)" //13
|
||||
};
|
||||
|
||||
// Default values (to be reset via /analysis/h1/set command)
|
||||
G4int nbins = 100;
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
#include "GammaNuclearPhysics.hh"
|
||||
|
||||
#include "ElectromagneticPhysics.hh"
|
||||
#include "G4EmStandardPhysics.hh"
|
||||
#include "G4DecayPhysics.hh"
|
||||
#include "G4RadioactiveDecayPhysics.hh"
|
||||
|
||||
@@ -84,6 +85,7 @@ PhysicsList::PhysicsList()
|
||||
|
||||
// EM physics
|
||||
RegisterPhysics(new ElectromagneticPhysics());
|
||||
////RegisterPhysics(new G4EmStandardPhysics());
|
||||
|
||||
// Decay
|
||||
RegisterPhysics(new G4DecayPhysics());
|
||||
|
||||
@@ -320,15 +320,12 @@ void Run::EndOfRun()
|
||||
|
||||
//normalize histograms
|
||||
G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
|
||||
for (G4int ih=1; ih<14; ih++) {
|
||||
G4double binWidth = analysisManager->GetH1Width(ih);
|
||||
G4double unit = analysisManager->GetH1Unit(ih);
|
||||
G4double fac = unit/binWidth;
|
||||
///G4double fac = unit/(numberOfEvent*binWidth);
|
||||
if (ih == 2) fac = (1./(numberOfEvent*binWidth))*(mm/MeV);
|
||||
analysisManager->ScaleH1(ih,fac);
|
||||
}
|
||||
|
||||
|
||||
G4int ih = 2;
|
||||
G4double binWidth = analysisManager->GetH1Width(ih);
|
||||
G4double fac = (1./(numberOfEvent*binWidth))*(mm/MeV);
|
||||
analysisManager->ScaleH1(ih,fac);
|
||||
|
||||
//remove all contents in fProcCounter, fCount
|
||||
fProcCounter.clear();
|
||||
fParticleDataMap2.clear();
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
#include "HistoManager.hh"
|
||||
|
||||
#include "G4Run.hh"
|
||||
#include "G4RunManager.hh"
|
||||
#include "G4UnitsTable.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
|
||||
@@ -74,8 +73,7 @@ G4Run* RunAction::GenerateRun()
|
||||
|
||||
void RunAction::BeginOfRunAction(const G4Run*)
|
||||
{
|
||||
// save Rndm status
|
||||
G4RunManager::GetRunManager()->SetRandomNumberStore(false);
|
||||
// show Rndm status
|
||||
if (isMaster) G4Random::showEngineStatus();
|
||||
|
||||
// keep run condition
|
||||
|
||||
@@ -68,7 +68,7 @@ void TrackingAction::PreUserTrackingAction(const G4Track* track)
|
||||
|
||||
void TrackingAction::PostUserTrackingAction(const G4Track* track)
|
||||
{
|
||||
// keep only outgoing particle
|
||||
// keep only emerging particles
|
||||
G4StepStatus status = track->GetStep()->GetPostStepPoint()->GetStepStatus();
|
||||
if (status != fWorldBoundary) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user