Loading...
Searching...
No Matches
SAXSPhysicsList.cc
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26/// \file SAXSPhysicsList.cc
27/// \brief Implementation of the SAXSPhysicsList class
28//
29//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
30
31#include "SAXSPhysicsList.hh"
33
34#include "G4UnitsTable.hh"
35#include "G4SystemOfUnits.hh"
36#include "globals.hh"
37
38#include "G4ProcessManager.hh"
39#include "G4Threading.hh"
40
41//Particles
42#include "G4ParticleDefinition.hh"
43#include "G4ParticleTypes.hh"
44#include "G4ParticleTable.hh"
45
46//EM Physics Lists
47#include "G4EmParameters.hh"
48#include "G4EmStandardPhysics.hh"
49#include "G4EmLivermorePhysics.hh"
50#include "G4EmPenelopePhysics.hh"
51#include "G4EmLowEPPhysics.hh"
52#include "G4EmStandardPhysics_option4.hh"
54#include "G4LossTableManager.hh"
55
56//Hadronic and Extra Physics Lists
57#include "G4EmExtraPhysics.hh"
58#include "G4HadronPhysicsQGSP_BIC_HP.hh"
59#include "G4HadronElasticPhysicsHP.hh"
60#include "G4IonPhysics.hh"
61#include "G4StoppingPhysics.hh"
62
63//Decays
64#include "G4DecayPhysics.hh"
65
66//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
67
70 fUseMIFlag(true),
71 fPMessenger(0)
72{
73 G4cout << "### PhysicsList instantiated ###" << G4endl;
74
75 G4LossTableManager::Instance();
76
77 //set default cuts value
78 defaultCutValue = 0.1*mm;
79
80 //define the messenger
82
83 //set verbosity
84 SetVerboseLevel(1);
85
86 //particle list
87 fParticleList = new G4DecayPhysics(verboseLevel);
88
89 //EM Physics
90 fEmPhysicsList = new G4EmPenelopePhysics(verboseLevel);
91}
92
93//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
94
99
100//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
101
103{
104 fParticleList->ConstructParticle();
105}
106
107//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
108
110{
111 //transportation
112 AddTransportation();
113
114 //Atomic deexcitation
115 G4EmParameters* param = G4EmParameters::Instance();
116 param->SetFluo(true); //Activate deexcitation processes and fluorescence
117 param->SetAuger(true); //Activate Auger effect if deexcitation is activated
118 param->SetPixe(true); //Activate Particle Induced X-Ray Emission (PIXE)
119
120 //EM physics
121 fEmPhysicsList->ConstructProcess();
122}
123
124//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
125
127{
128 if (verboseLevel>1) {
129 G4cout << "### PhysicsList::SelectPhysicsList: <" << name << "> ###" << G4endl;
130 }
131
132 if (name == "emstandard") {
133 delete fEmPhysicsList;
134 fEmPhysicsList = new G4EmStandardPhysics(verboseLevel);
135 G4cout << "### selected Standard PhysicsList ###" << G4endl;
136 } else if (name == "emstandard_opt4") {
137 delete fEmPhysicsList;
139 G4cout << "### selected Standard_option4 PhysicsList ###" << G4endl;
140 } else if (name == "emlivermore") {
141 delete fEmPhysicsList;
142 fEmPhysicsList = new G4EmLivermorePhysics(verboseLevel);
143 G4cout << "### selected Livermore PhysicsList ###" << G4endl;
144 } else if (name == "empenelope") {
145 delete fEmPhysicsList;
146 fEmPhysicsList = new G4EmPenelopePhysics(verboseLevel);
147 G4cout << "### selected Penelope PhysicsList ###" << G4endl;
148 } else if (name == "empenelopeMI") {
149 delete fEmPhysicsList;
150 fEmPhysicsList = new G4EmPenelopePhysicsMI(verboseLevel,"G4EmPenelopeMI",fUseMIFlag);
151 G4cout << "### selected Penelope PhysicsList with MI effects ###" << G4endl;
152 } else if (name == "emlowenergy") {
153 delete fEmPhysicsList;
154 fEmPhysicsList = new G4EmLowEPPhysics(verboseLevel);
155 G4cout << "### selected LowEP PhysicsList ###" << G4endl;
156 } else {
157 G4cout << "### PhysicsList::SelectPhysicsList: <" << name
158 << ">"<< " is not defined ###" << G4endl;
159 }
160}
161
163{
164 //define a new default cuts value
165 defaultCutValue = value;
166}
167
168//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
169
Definition of the SAXSPhysicsListMessenger class.
Implementation of the SAXSPhysicsList class.
virtual ~SAXSPhysicsList()
void SelectPhysicsList(const G4String &name)
void ConstructParticle() override
void SetDefaultCutsValue(G4double)
SAXSPhysicsListMessenger * fPMessenger
void ConstructProcess() override
G4VPhysicsConstructor * fParticleList
G4VPhysicsConstructor * fEmPhysicsList

Applications | User Support | Publications | Collaboration