File indexing completed on 2026-09-12 08:30:17
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038 #include "PhysicsList.hh"
0039
0040 #include "G4PhysicsListHelper.hh"
0041 #include "G4RunManager.hh"
0042 #include "G4SystemOfUnits.hh"
0043
0044
0045
0046 PhysicsList::PhysicsList() : G4VUserPhysicsList()
0047 {
0048 SetVerboseLevel(1);
0049 }
0050
0051
0052
0053 PhysicsList::~PhysicsList() {}
0054
0055
0056
0057 void PhysicsList::ConstructParticle()
0058 {
0059 ConstructBosons();
0060 ConstructLeptons();
0061 ConstructBarions();
0062 }
0063
0064
0065
0066 void PhysicsList::ConstructBosons()
0067 {
0068
0069 G4Gamma::GammaDefinition();
0070 }
0071
0072
0073
0074 void PhysicsList::ConstructLeptons()
0075 {
0076
0077 G4Electron::ElectronDefinition();
0078 G4Positron::PositronDefinition();
0079 }
0080
0081
0082
0083
0084 #include "G4DNAGenericIonsManager.hh"
0085
0086
0087 void PhysicsList::ConstructBarions()
0088 {
0089
0090 G4Proton::ProtonDefinition();
0091 G4GenericIon::GenericIonDefinition();
0092
0093
0094 G4DNAGenericIonsManager* genericIonsManager;
0095 genericIonsManager = G4DNAGenericIonsManager::Instance();
0096 genericIonsManager->GetIon("alpha++");
0097 genericIonsManager->GetIon("alpha+");
0098 genericIonsManager->GetIon("helium");
0099 genericIonsManager->GetIon("hydrogen");
0100 genericIonsManager->GetIon("carbon");
0101 genericIonsManager->GetIon("nitrogen");
0102 genericIonsManager->GetIon("oxygen");
0103 genericIonsManager->GetIon("iron");
0104 }
0105
0106
0107
0108 void PhysicsList::ConstructProcess()
0109 {
0110 AddTransportation();
0111 ConstructEM();
0112 ConstructGeneral();
0113 }
0114
0115
0116
0117
0118
0119 #include "G4DNAAttachment.hh"
0120 #include "G4DNABornExcitationModel.hh"
0121 #include "G4DNABornIonisationModel.hh"
0122 #include "G4DNAChampionElasticModel.hh"
0123 #include "G4DNAChargeDecrease.hh"
0124 #include "G4DNAChargeIncrease.hh"
0125 #include "G4DNADingfelderChargeDecreaseModel.hh"
0126 #include "G4DNADingfelderChargeIncreaseModel.hh"
0127 #include "G4DNAElastic.hh"
0128 #include "G4DNAEmfietzoglouExcitationModel.hh"
0129 #include "G4DNAEmfietzoglouIonisationModel.hh"
0130 #include "G4DNAExcitation.hh"
0131 #include "G4DNAIonisation.hh"
0132 #include "G4DNAMeltonAttachmentModel.hh"
0133 #include "G4DNAMillerGreenExcitationModel.hh"
0134 #include "G4DNAPTBElasticModel.hh"
0135 #include "G4DNAPTBExcitationModel.hh"
0136 #include "G4DNAPTBIonisationModel.hh"
0137 #include "G4DNARuddIonisationModel.hh"
0138 #include "G4DNASancheExcitationModel.hh"
0139 #include "G4DNAScreenedRutherfordElasticModel.hh"
0140 #include "G4DNAVibExcitation.hh"
0141
0142
0143
0144 #include "G4DNAModelInterface.hh"
0145 #include "G4DNAVacuumModel.hh"
0146 #include "G4EmConfigurator.hh"
0147 #include "G4LossTableManager.hh"
0148 #include "G4VEmModel.hh"
0149
0150
0151
0152
0153
0154 void PhysicsList::ConstructEM()
0155 {
0156 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
0157
0158 auto myParticleIterator = GetParticleIterator();
0159 myParticleIterator->reset();
0160 while ((*myParticleIterator)()) {
0161 G4ParticleDefinition* particle = myParticleIterator->value();
0162 G4String particleName = particle->GetParticleName();
0163
0164 if (particleName == "e-") {
0165
0166
0167
0168
0169 G4DNAScreenedRutherfordElasticModel* e_modelDNARutherfordElastic =
0170 new G4DNAScreenedRutherfordElasticModel();
0171 G4DNAEmfietzoglouIonisationModel* e_modelDNAEmfietzoglouIonisation =
0172 new G4DNAEmfietzoglouIonisationModel();
0173 G4DNAEmfietzoglouExcitationModel* e_modelDNAEmfietzoglouExcitation =
0174 new G4DNAEmfietzoglouExcitationModel();
0175
0176 G4DNAPTBElasticModel* modelDNAPTBElastic = new G4DNAPTBElasticModel();
0177 G4DNAPTBIonisationModel* modelDNAPTBIonisation = new G4DNAPTBIonisationModel();
0178 G4DNAPTBExcitationModel* modelDNAPTBExcitation = new G4DNAPTBExcitationModel();
0179
0180
0181
0182
0183 G4DNAModelInterface* e_elasticInteraction = new G4DNAModelInterface("DNA_e-_elastic");
0184
0185 e_elasticInteraction->RegisterModel(modelDNAPTBElastic);
0186 e_elasticInteraction->RegisterModel(e_modelDNARutherfordElastic);
0187
0188
0189
0190 G4DNAModelInterface* e_ionisationInteraction = new G4DNAModelInterface("DNA_e-_ionisation");
0191
0192 e_ionisationInteraction->RegisterModel(modelDNAPTBIonisation);
0193 e_ionisationInteraction->RegisterModel(e_modelDNAEmfietzoglouIonisation);
0194
0195 G4DNAModelInterface* e_excitationInteraction = new G4DNAModelInterface("DNA_e-_excitation");
0196 e_excitationInteraction->RegisterModel(e_modelDNAEmfietzoglouExcitation);
0197 e_excitationInteraction->RegisterModel(modelDNAPTBExcitation);
0198
0199
0200
0201 G4DNAElastic* e_DNAElasticProcess = new G4DNAElastic("e-_G4DNAElastic");
0202 e_DNAElasticProcess->SetEmModel(e_elasticInteraction);
0203
0204 G4DNAIonisation* e_DNAIonisationProcess = new G4DNAIonisation("e-_G4DNAIonisation");
0205 e_DNAIonisationProcess->SetEmModel(e_ionisationInteraction);
0206
0207 G4DNAExcitation* e_DNAExcitationProcess = new G4DNAExcitation("e-_G4DNAExcitation");
0208 e_DNAExcitationProcess->SetEmModel(e_excitationInteraction);
0209
0210
0211
0212
0213
0214
0215 ph->RegisterProcess(e_DNAElasticProcess, particle);
0216
0217 ph->RegisterProcess(e_DNAExcitationProcess, particle);
0218
0219 ph->RegisterProcess(e_DNAIonisationProcess, particle);
0220
0221 }
0222
0223
0224
0225
0226
0227
0228
0229
0230
0231
0232
0233
0234
0235
0236
0237
0238
0239
0240
0241
0242
0243
0244 }
0245 }
0246
0247
0248
0249 void PhysicsList::ConstructGeneral() {}
0250
0251
0252
0253 void PhysicsList::SetCuts()
0254 {
0255
0256
0257 SetDefaultCutValue(0.000001);
0258 }