File indexing completed on 2025-02-23 09:21:55
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 #include "PhysicsList.hh"
0038
0039 #include "G4PhysicsListHelper.hh"
0040 #include "G4RunManager.hh"
0041 #include "G4SystemOfUnits.hh"
0042
0043
0044
0045 PhysicsList::PhysicsList() : G4VUserPhysicsList()
0046 {
0047 SetVerboseLevel(1);
0048 }
0049
0050
0051
0052 PhysicsList::~PhysicsList() {}
0053
0054
0055
0056 void PhysicsList::ConstructParticle()
0057 {
0058 ConstructBosons();
0059 ConstructLeptons();
0060 ConstructBarions();
0061 }
0062
0063
0064
0065 void PhysicsList::ConstructBosons()
0066 {
0067
0068 G4Gamma::GammaDefinition();
0069 }
0070
0071
0072
0073 void PhysicsList::ConstructLeptons()
0074 {
0075
0076 G4Electron::ElectronDefinition();
0077 G4Positron::PositronDefinition();
0078 }
0079
0080
0081
0082
0083 #include "G4DNAGenericIonsManager.hh"
0084
0085
0086 void PhysicsList::ConstructBarions()
0087 {
0088
0089 G4Proton::ProtonDefinition();
0090 G4GenericIon::GenericIonDefinition();
0091
0092
0093 G4DNAGenericIonsManager* genericIonsManager;
0094 genericIonsManager = G4DNAGenericIonsManager::Instance();
0095 genericIonsManager->GetIon("alpha++");
0096 genericIonsManager->GetIon("alpha+");
0097 genericIonsManager->GetIon("helium");
0098 genericIonsManager->GetIon("hydrogen");
0099 genericIonsManager->GetIon("carbon");
0100 genericIonsManager->GetIon("nitrogen");
0101 genericIonsManager->GetIon("oxygen");
0102 genericIonsManager->GetIon("iron");
0103 }
0104
0105
0106
0107 void PhysicsList::ConstructProcess()
0108 {
0109 AddTransportation();
0110 ConstructEM();
0111 ConstructGeneral();
0112 }
0113
0114
0115
0116
0117
0118 #include "G4DNAAttachment.hh"
0119 #include "G4DNABornExcitationModel.hh"
0120 #include "G4DNABornIonisationModel.hh"
0121 #include "G4DNAChampionElasticModel.hh"
0122 #include "G4DNAChargeDecrease.hh"
0123 #include "G4DNAChargeIncrease.hh"
0124 #include "G4DNADingfelderChargeDecreaseModel.hh"
0125 #include "G4DNADingfelderChargeIncreaseModel.hh"
0126 #include "G4DNAElastic.hh"
0127 #include "G4DNAEmfietzoglouExcitationModel.hh"
0128 #include "G4DNAEmfietzoglouIonisationModel.hh"
0129 #include "G4DNAExcitation.hh"
0130 #include "G4DNAIonisation.hh"
0131 #include "G4DNAMeltonAttachmentModel.hh"
0132 #include "G4DNAMillerGreenExcitationModel.hh"
0133 #include "G4DNAPTBElasticModel.hh"
0134 #include "G4DNAPTBExcitationModel.hh"
0135 #include "G4DNAPTBIonisationModel.hh"
0136 #include "G4DNARuddIonisationModel.hh"
0137 #include "G4DNASancheExcitationModel.hh"
0138 #include "G4DNAScreenedRutherfordElasticModel.hh"
0139 #include "G4DNAVibExcitation.hh"
0140
0141
0142
0143 #include "G4DNAModelInterface.hh"
0144 #include "G4DNAVacuumModel.hh"
0145 #include "G4EmConfigurator.hh"
0146 #include "G4LossTableManager.hh"
0147 #include "G4VEmModel.hh"
0148
0149
0150
0151
0152
0153 void PhysicsList::ConstructEM()
0154 {
0155 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
0156
0157 auto myParticleIterator = GetParticleIterator();
0158 myParticleIterator->reset();
0159 while ((*myParticleIterator)()) {
0160 G4ParticleDefinition* particle = myParticleIterator->value();
0161 G4String particleName = particle->GetParticleName();
0162
0163 if (particleName == "e-") {
0164
0165
0166
0167
0168 G4DNAScreenedRutherfordElasticModel* e_modelDNARutherfordElastic =
0169 new G4DNAScreenedRutherfordElasticModel();
0170 G4DNAEmfietzoglouIonisationModel* e_modelDNAEmfietzoglouIonisation =
0171 new G4DNAEmfietzoglouIonisationModel();
0172 G4DNAEmfietzoglouExcitationModel* e_modelDNAEmfietzoglouExcitation =
0173 new G4DNAEmfietzoglouExcitationModel();
0174
0175 G4DNAPTBElasticModel* modelDNAPTBElastic = new G4DNAPTBElasticModel();
0176 G4DNAPTBIonisationModel* modelDNAPTBIonisation = new G4DNAPTBIonisationModel();
0177 G4DNAPTBExcitationModel* modelDNAPTBExcitation = new G4DNAPTBExcitationModel();
0178
0179
0180
0181
0182 G4DNAModelInterface* e_elasticInteraction = new G4DNAModelInterface("DNA_e-_elastic");
0183
0184 e_elasticInteraction->RegisterModel(modelDNAPTBElastic);
0185 e_elasticInteraction->RegisterModel(e_modelDNARutherfordElastic);
0186
0187
0188
0189 G4DNAModelInterface* e_ionisationInteraction = new G4DNAModelInterface("DNA_e-_ionisation");
0190
0191 e_ionisationInteraction->RegisterModel(modelDNAPTBIonisation);
0192 e_ionisationInteraction->RegisterModel(e_modelDNAEmfietzoglouIonisation);
0193
0194 G4DNAModelInterface* e_excitationInteraction = new G4DNAModelInterface("DNA_e-_excitation");
0195 e_excitationInteraction->RegisterModel(e_modelDNAEmfietzoglouExcitation);
0196 e_excitationInteraction->RegisterModel(modelDNAPTBExcitation);
0197
0198
0199
0200 G4DNAElastic* e_DNAElasticProcess = new G4DNAElastic("e-_G4DNAElastic");
0201 e_DNAElasticProcess->SetEmModel(e_elasticInteraction);
0202
0203 G4DNAIonisation* e_DNAIonisationProcess = new G4DNAIonisation("e-_G4DNAIonisation");
0204 e_DNAIonisationProcess->SetEmModel(e_ionisationInteraction);
0205
0206 G4DNAExcitation* e_DNAExcitationProcess = new G4DNAExcitation("e-_G4DNAExcitation");
0207 e_DNAExcitationProcess->SetEmModel(e_excitationInteraction);
0208
0209
0210
0211
0212
0213
0214 ph->RegisterProcess(e_DNAElasticProcess, particle);
0215
0216 ph->RegisterProcess(e_DNAExcitationProcess, particle);
0217
0218 ph->RegisterProcess(e_DNAIonisationProcess, particle);
0219
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 void PhysicsList::ConstructGeneral() {}
0249
0250
0251
0252 void PhysicsList::SetCuts()
0253 {
0254
0255
0256 SetDefaultCutValue(0.000001);
0257 }