Geant4  10.01.p02
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 //
26 
27 #include "ExExChPhysicsList.hh"
28 
29 // general
30 #include "globals.hh"
31 #include "G4UnitsTable.hh"
32 #include "G4SystemOfUnits.hh"
33 #include "G4ProcessManager.hh"
34 #include "G4ParticleDefinition.hh"
35 #include "G4ParticleWithCuts.hh"
36 #include "G4ProcessVector.hh"
37 #include "G4RunManager.hh"
38 
39 // physics lists
41 #include "G4DecayPhysics.hh"
45 #include "G4StoppingPhysics.hh"
46 #include "ExExChIonPhysics.hh"
47 #include "G4NeutronTrackingCut.hh"
48 #include "G4EmExtraPhysics.hh"
49 
50 // channeling
52 
55 
63 
64 
66 
67  fFilePotentialName = "";
68 
70 
72 
74 
76 
78 
80 
82 
84 
86 
88 
90 }
91 
92 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
93 
95  delete fMessenger;
96  delete fEmPhysicsList;
97  delete fDecayList;
98  delete fRaddecayList;
101  delete fStoppingPhysics;
102  delete fIonPhysics;
103  delete fNeutronTrackingCut;
104  delete fEmExtraPhysics;
105 }
106 
107 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
108 
110 
112 
114 
116 
118 
120 
122 
124 
126 
128 
130 
132 
133  AddChanneling();
134 
135  G4cout << "### ExExChPhysicsList::ConstructProcess is done" << G4endl;
136 }
137 
138 
139 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
140 
143 }
144 
145 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
146 
148 
149  XVCrystalCharacteristic* vPotentialEnergy =
151  XVCrystalCharacteristic* vElectricField =
153  XVCrystalCharacteristic* vNucleiDensity =
155  XVCrystalCharacteristic* vElectronDensity =
157 
158  XVCrystalIntegratedDensity* vIntegratedDensityNuclei =
160  vIntegratedDensityNuclei->SetPotential(vPotentialEnergy);
161  vIntegratedDensityNuclei->SetDensity(vNucleiDensity);
162 
163  XVCrystalIntegratedDensity* vIntegratedDensityElectron =
165  vIntegratedDensityElectron->SetPotential(vPotentialEnergy);
166  vIntegratedDensityElectron->SetDensity(vElectronDensity);
167 
168  XCrystalIntegratedDensityHub* vIntegratedDensityHub =
170  vIntegratedDensityHub->SetPotential(vPotentialEnergy);
171  vIntegratedDensityHub->SetDensityNuclei(vNucleiDensity);
172  vIntegratedDensityHub->SetDensityElectron(vElectronDensity);
173 
174  for(G4int i=-3;i<=+3;i++){
175  if(i!=0){
176  vIntegratedDensityHub->SetIntegratedDensityNuclei(
178  vIntegratedDensityHub->SetIntegratedDensityElectron(
180  }
181  }
182 
183  ExExChProcessChanneling* channeling =
185  channeling->SetPotential(vPotentialEnergy);
186  channeling->SetIntegratedDensity(vIntegratedDensityHub);
187  channeling->SetElectricField(vElectricField);
188  channeling->SetNucleiDensity(vNucleiDensity);
189  channeling->SetElectronDensity(vElectronDensity);
190 
191  if(fFilePotentialName != ""){
193  }
194 
195  theParticleIterator->reset();
196  while( (*theParticleIterator)() ){
197  G4ParticleDefinition* particle = theParticleIterator->value();
198  G4ProcessManager* pManager = particle->GetProcessManager();
199  G4String particleName = particle->GetParticleName();
200 
201  if(particle->GetPDGCharge() != 0)
202  {
203  pManager->AddDiscreteProcess(channeling);
204  }
205  }
206  G4cout << "\nPhysicsList::AddChanneling: Channeling process added...\n";
207  G4cout << G4endl;
208 }
209 
210 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
211 
212 
214 {
215  // These values are used as the default production thresholds
216  // for the world volume.
218 
219 }
220 
221 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
222 
224  if(fFilePotentialName != vFilename){
225  fFilePotentialName = vFilename;
227  }
228 }
229 
230 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
231 
233  return fFilePotentialName;
234 }
235 
236 
237 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
238 
void SetFileCharacteristicsName(const G4String &vFilename)
G4VPhysicsConstructor * fNeutronTrackingCut
ExExChPhysicsListMessenger * fMessenger
G4String GetFilePotentialName()
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4VPhysicsConstructor * fHadronElasticPhysicsList
void SetDensityElectron(XVCrystalCharacteristic *)
G4VPhysicsConstructor * fRaddecayList
G4ProcessManager * GetProcessManager() const
int G4int
Definition: G4Types.hh:78
const G4String & GetParticleName() const
G4VPhysicsConstructor * fIonPhysics
G4VPhysicsConstructor * fParticleList
G4VPhysicsConstructor * fStoppingPhysics
virtual void ConstructParticle()=0
G4VPhysicsConstructor * fEmPhysicsList
G4GLOB_DLL std::ostream G4cout
void PhysicsHasBeenModified()
void SetDensityNuclei(XVCrystalCharacteristic *)
void SetPotential(XVCrystalCharacteristic *)
void SetPotential(XVCrystalCharacteristic *)
G4VPhysicsConstructor * fEmExtraPhysics
void SetIntegratedDensityNuclei(XVCrystalIntegratedDensity *, G4int)
void SetDensity(XVCrystalCharacteristic *)
G4VPhysicsConstructor * fDecayList
void SetIntegratedDensity(XCrystalIntegratedDensityHub *)
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79
void SetElectricField(XVCrystalCharacteristic *)
G4VPhysicsConstructor * fHadronInelasticPhysicsList
void SetFilePotentialName(const G4String &)
void SetPotential(XVCrystalCharacteristic *)
void SetNucleiDensity(XVCrystalCharacteristic *)
virtual void ConstructProcess()=0
void SetElectronDensity(XVCrystalCharacteristic *)
#define G4endl
Definition: G4ios.hh:61
void SetIntegratedDensityElectron(XVCrystalIntegratedDensity *, G4int)
G4double GetPDGCharge() const
#define theParticleIterator