Geant4  10.02.p01
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 = "";
71 
73 
75 
77 
79 
81 
83 
85 
87 
89 
91 }
92 
93 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
94 
96  delete fMessenger;
97  delete fEmPhysicsList;
98  delete fDecayList;
99  delete fRaddecayList;
102  delete fStoppingPhysics;
103  delete fIonPhysics;
104  delete fNeutronTrackingCut;
105  delete fEmExtraPhysics;
106 }
107 
108 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
109 
111 
113 
115 
117 
119 
121 
123 
125 
127 
129 
131 
133 
134  AddChanneling();
135 
136  G4cout << "### ExExChPhysicsList::ConstructProcess is done" << G4endl;
137 }
138 
139 
140 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
141 
144 }
145 
146 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
147 
149 
150  XVCrystalCharacteristic* vPotentialEnergy =
152  XVCrystalCharacteristic* vElectricField =
154  XVCrystalCharacteristic* vNucleiDensity =
156  XVCrystalCharacteristic* vElectronDensity =
158 
159  XVCrystalIntegratedDensity* vIntegratedDensityNuclei =
161  vIntegratedDensityNuclei->SetPotential(vPotentialEnergy);
162  vIntegratedDensityNuclei->SetDensity(vNucleiDensity);
163 
164  XVCrystalIntegratedDensity* vIntegratedDensityElectron =
166  vIntegratedDensityElectron->SetPotential(vPotentialEnergy);
167  vIntegratedDensityElectron->SetDensity(vElectronDensity);
168 
169  XCrystalIntegratedDensityHub* vIntegratedDensityHub =
171  vIntegratedDensityHub->SetPotential(vPotentialEnergy);
172  vIntegratedDensityHub->SetDensityNuclei(vNucleiDensity);
173  vIntegratedDensityHub->SetDensityElectron(vElectronDensity);
174 
175  for(G4int i=-3;i<=+3;i++){
176  if(i!=0){
177  vIntegratedDensityHub->SetIntegratedDensityNuclei(
179  vIntegratedDensityHub->SetIntegratedDensityElectron(
181  }
182  }
183 
184  ExExChProcessChanneling* channeling =
186  channeling->SetPotential(vPotentialEnergy);
187  channeling->SetIntegratedDensity(vIntegratedDensityHub);
188  channeling->SetElectricField(vElectricField);
189  channeling->SetNucleiDensity(vNucleiDensity);
190  channeling->SetElectronDensity(vElectronDensity);
191 
193  channeling->SetTimeStepMin(fTimeStepMin);
194  if(fFilePotentialName != ""){
196  }
197 
198  theParticleIterator->reset();
199  while( (*theParticleIterator)() ){
200  G4ParticleDefinition* particle = theParticleIterator->value();
201  G4ProcessManager* pManager = particle->GetProcessManager();
202  G4String particleName = particle->GetParticleName();
203 
204  if(particle->GetPDGCharge() != 0)
205  {
206  pManager->AddDiscreteProcess(channeling);
207  }
208  }
209  G4cout << "\nPhysicsList::AddChanneling: Channeling process added...\n";
210  G4cout << G4endl;
211 }
212 
213 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
214 
215 
217 {
218  // These values are used as the default production thresholds
219  // for the world volume.
221 
222 }
223 
224 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
225 
227  if(fFilePotentialName != vFilename){
228  fFilePotentialName = vFilename;
230  }
231 }
232 
233 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
234 
236  return fFilePotentialName;
237 }
238 
239 
240 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
241 
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
G4double fTransverseVariationMax
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 SetTimeStepMin(G4double aDouble)
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 SetTransverseVariationMax(G4double aDouble)
void SetElectronDensity(XVCrystalCharacteristic *)
#define G4endl
Definition: G4ios.hh:61
void SetIntegratedDensityElectron(XVCrystalIntegratedDensity *, G4int)
G4double GetPDGCharge() const
#define theParticleIterator
static const double angstrom
Definition: G4SIunits.hh:101