Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExExChPhysicsList.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 //
28 //
29 
30 #include "ExExChPhysicsList.hh"
31 
32 // general
33 #include "globals.hh"
34 #include "G4UnitsTable.hh"
35 #include "G4SystemOfUnits.hh"
36 #include "G4ProcessManager.hh"
37 #include "G4ParticleDefinition.hh"
38 #include "G4ParticleWithCuts.hh"
39 #include "G4ProcessVector.hh"
40 #include "G4RunManager.hh"
41 
42 // physics lists
44 #include "G4DecayPhysics.hh"
48 #include "G4StoppingPhysics.hh"
49 #include "ExExChIonPhysics.hh"
50 #include "G4NeutronTrackingCut.hh"
51 #include "G4EmExtraPhysics.hh"
52 
53 // channeling
55 
58 
66 
67 
69 
70  fFilePotentialName = "";
73  fParticleList = new G4DecayPhysics();
74 
75  fDecayList = new G4RadioactiveDecayPhysics();
76 
77  fRaddecayList = new G4DecayPhysics();
78 
79  fEmPhysicsList = new ExExChPhysListEmStandardSS();
80 
81  fHadronInelasticPhysicsList = new ExExChHadronPhysicsQGSP_BIC();
82 
83  fHadronElasticPhysicsList = new ExExChHadronElasticPhysics();
84 
85  fStoppingPhysics = new G4StoppingPhysics();
86 
87  fIonPhysics = new ExExChIonPhysics();
88 
89  fNeutronTrackingCut = new G4NeutronTrackingCut();
90 
91  fEmExtraPhysics = new G4EmExtraPhysics();
92 
93  fMessenger = new ExExChPhysicsListMessenger(this);
94 }
95 
96 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
97 
99  delete fMessenger;
100  delete fEmPhysicsList;
101  delete fDecayList;
102  delete fRaddecayList;
103  delete fHadronElasticPhysicsList;
104  delete fHadronInelasticPhysicsList;
105  delete fStoppingPhysics;
106  delete fIonPhysics;
107  delete fNeutronTrackingCut;
108  delete fEmExtraPhysics;
109 }
110 
111 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
112 
114 
116 
117  fParticleList->ConstructProcess();
118 
119  fEmPhysicsList->ConstructProcess();
120 
121  fDecayList->ConstructProcess();
122 
123  fRaddecayList->ConstructProcess();
124 
125  fHadronElasticPhysicsList->ConstructProcess();
126 
127  fHadronInelasticPhysicsList->ConstructProcess();
128 
129  fStoppingPhysics->ConstructProcess();
130 
131  fIonPhysics->ConstructProcess();
132 
133  fNeutronTrackingCut->ConstructProcess();
134 
135  fEmExtraPhysics->ConstructProcess();
136 
137  AddChanneling();
138 
139  G4cout << "### ExExChPhysicsList::ConstructProcess is done" << G4endl;
140 }
141 
142 
143 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
144 
146  fParticleList->ConstructParticle();
147 }
148 
149 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
150 
152 
153  XVCrystalCharacteristic* vPotentialEnergy =
155  XVCrystalCharacteristic* vElectricField =
157  XVCrystalCharacteristic* vNucleiDensity =
159  XVCrystalCharacteristic* vElectronDensity =
161 
162  XVCrystalIntegratedDensity* vIntegratedDensityNuclei =
164  vIntegratedDensityNuclei->SetPotential(vPotentialEnergy);
165  vIntegratedDensityNuclei->SetDensity(vNucleiDensity);
166 
167  XVCrystalIntegratedDensity* vIntegratedDensityElectron =
169  vIntegratedDensityElectron->SetPotential(vPotentialEnergy);
170  vIntegratedDensityElectron->SetDensity(vElectronDensity);
171 
172  XCrystalIntegratedDensityHub* vIntegratedDensityHub =
174  vIntegratedDensityHub->SetPotential(vPotentialEnergy);
175  vIntegratedDensityHub->SetDensityNuclei(vNucleiDensity);
176  vIntegratedDensityHub->SetDensityElectron(vElectronDensity);
177 
178  for(G4int i=-3;i<=+3;i++){
179  if(i!=0){
180  vIntegratedDensityHub->SetIntegratedDensityNuclei(
182  vIntegratedDensityHub->SetIntegratedDensityElectron(
184  }
185  }
186 
187  ExExChProcessChanneling* channeling =
189  channeling->SetPotential(vPotentialEnergy);
190  channeling->SetIntegratedDensity(vIntegratedDensityHub);
191  channeling->SetElectricField(vElectricField);
192  channeling->SetNucleiDensity(vNucleiDensity);
193  channeling->SetElectronDensity(vElectronDensity);
194 
196  channeling->SetTimeStepMin(fTimeStepMin);
197  if(fFilePotentialName != ""){
198  channeling->SetFileCharacteristicsName(fFilePotentialName);
199  }
200 
202  particleIterator->reset();
203  while( (*particleIterator)() ){
204  G4ParticleDefinition* particle = particleIterator->value();
205  G4ProcessManager* pManager = particle->GetProcessManager();
206  G4String particleName = particle->GetParticleName();
207 
208  if(particle->GetPDGCharge() != 0)
209  {
210  pManager->AddDiscreteProcess(channeling);
211  }
212  }
213  G4cout << "\nPhysicsList::AddChanneling: Channeling process added...\n";
214  G4cout << G4endl;
215 }
216 
217 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
218 
219 
221 {
222  // These values are used as the default production thresholds
223  // for the world volume.
225 
226 }
227 
228 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
229 
231  if(fFilePotentialName != vFilename){
232  fFilePotentialName = vFilename;
234  }
235 }
236 
237 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
238 
240  return fFilePotentialName;
241 }
242 
243 
244 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
245 
void SetFileCharacteristicsName(const G4String &vFilename)
Definition of the XCrystalCharacteristicArray class.
G4String GetFilePotentialName()
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
Definition of the XVCrystalCharacteristic class.
void SetDensityElectron(XVCrystalCharacteristic *)
int G4int
Definition: G4Types.hh:78
G4double fTransverseVariationMax
const G4String & GetParticleName() const
Definition of the ExExChHadronPhysicsQGSP_BIC class.
virtual void ConstructParticle()=0
G4GLOB_DLL std::ostream G4cout
void PhysicsHasBeenModified()
Definition of the ExExChProcessChanneling class.
void SetDensityNuclei(XVCrystalCharacteristic *)
Definition of the XCrystalPlanarMoliereElectronDensity class.
void SetPotential(XVCrystalCharacteristic *)
void SetTimeStepMin(G4double aDouble)
Definition of the XCrystalIntegratedDensityPlanar class.
void SetPotential(XVCrystalCharacteristic *)
Definition of the XCrystalPlanarMoliereTempPotential class.
Definition of the XCrystalPlanarMoliereElectricField class.
void SetIntegratedDensityNuclei(XVCrystalIntegratedDensity *, G4int)
void SetDensity(XVCrystalCharacteristic *)
void SetIntegratedDensity(XCrystalIntegratedDensityHub *)
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79
void SetElectricField(XVCrystalCharacteristic *)
Definition of the ExExChIonPhysics class.
void SetFilePotentialName(const G4String &)
G4ProcessManager * GetProcessManager() const
void SetPotential(XVCrystalCharacteristic *)
Definition of the ExExChPhysListEmStandardSS class.
Definition of the XCrystalPlanarNucleiDensity class.
void SetNucleiDensity(XVCrystalCharacteristic *)
Definition of the ExExChHadronElasticPhysics class.
virtual void ConstructProcess()=0
void SetTransverseVariationMax(G4double aDouble)
void SetElectronDensity(XVCrystalCharacteristic *)
std::vector< G4InuclElementaryParticle >::iterator particleIterator
Definition: G4BigBanger.cc:65
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
#define G4endl
Definition: G4ios.hh:61
Definition of the XVCrystalIntegratedDensity class.
void SetIntegratedDensityElectron(XVCrystalIntegratedDensity *, G4int)
G4double GetPDGCharge() const
Definition of the XCrystalIntegratedDensityHub class.
Definition of the ExExChPhysicsList class.
static constexpr double angstrom
Definition: SystemOfUnits.h:82