Geant4  10.01.p01
G4EmLEPTSPhysics.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 #include "G4EmLEPTSPhysics.hh"
27 
32 
33 #include "G4GammaConversion.hh"
34 #include "G4RayleighScattering.hh"
35 #include "G4ComptonScattering.hh"
36 #include "G4PhotoElectricEffect.hh"
37 #include "G4OpRayleigh.hh"
38 
39 #include "G4eMultipleScattering.hh"
40 #include "G4eIonisation.hh"
41 #include "G4eBremsstrahlung.hh"
42 
43 #include "G4DNAElastic.hh"
44 #include "G4DNAIonisation.hh"
45 #include "G4DNAExcitation.hh"
46 #include "G4DNADissociation.hh"
47 #include "G4DNAVibExcitation.hh"
48 #include "G4DNARotExcitation.hh"
49 #include "G4DNAAttachment.hh"
50 #include "G4DNAPositronium.hh"
51 #include "G4DNAChargeDecrease.hh"
52 #include "G4DNAChargeIncrease.hh"
53 
54 #include "G4LEPTSElasticModel.hh"
59 
60 #include "G4GenericIon.hh"
61 #include "G4LossTableManager.hh"
62 #include "G4UAtomicDeexcitation.hh"
63 #include "G4PhysicsListHelper.hh"
64 #include "G4BuilderType.hh"
65 
66 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
68  : G4VPhysicsConstructor(name)
69 {
70 }
71 
72 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
74 {
78 
79 // baryons
81 
83 
84  G4DNAGenericIonsManager * genericIonsManager;
85  genericIonsManager=G4DNAGenericIonsManager::Instance();
86  genericIonsManager->GetIon("alpha++");
87  genericIonsManager->GetIon("alpha+");
88  genericIonsManager->GetIon("helium");
89  genericIonsManager->GetIon("hydrogen");
90  genericIonsManager->GetIon("carbon");
91  genericIonsManager->GetIon("nitrogen");
92  genericIonsManager->GetIon("oxygen");
93  genericIonsManager->GetIon("iron");
94 
95 }
96 
97 //....oooOO0OOooo.......oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
99 {
100 
101  aParticleIterator->reset();
102 
103  while( (*aParticleIterator)() ){
104  G4ParticleDefinition * particle = aParticleIterator->value();
105  G4String particleName = particle->GetParticleName();
106  G4ProcessManager * manager = particle->GetProcessManager();
107  G4cout << " particle " << particle->GetParticleName() << " manager " << manager << G4endl; //GDEB
108  if(particleName=="e-") {
109  G4DNAElastic* elastic = new G4DNAElastic("e-_G4LEPTSElastic");
110  elastic->SetEmModel( new G4LEPTSElasticModel );
111  manager->AddDiscreteProcess(elastic );
112 
113  G4DNAIonisation* ioni = new G4DNAIonisation("e-_G4LEPTSIonisation");
114  ioni->SetEmModel( new G4LEPTSIonisationModel );
115  manager->AddDiscreteProcess( ioni );
116 
117  G4DNAExcitation* excit = new G4DNAExcitation("e-_G4LEPTSExcitation");
118  excit->SetEmModel( new G4LEPTSExcitationModel );
119  manager->AddDiscreteProcess( excit );
120 
121  manager->AddDiscreteProcess(new G4DNADissociation("e-_G4LEPTSDissocNeutr") );
122 
123  G4DNAVibExcitation* vibExcit = new G4DNAVibExcitation("e-_G4LEPTSExcitVibrat");
124  vibExcit->SetEmModel( new G4LEPTSVibExcitationModel );
125  manager->AddDiscreteProcess( vibExcit );
126 
127  manager->AddDiscreteProcess( new G4DNARotExcitation("e-_G4LEPTSExcitRotat") );
128 
129  G4DNAAttachment* attach = new G4DNAAttachment("e-_G4LEPTSAttachment");
130  attach->SetEmModel( new G4LEPTSAttachmentModel );
131  manager->AddDiscreteProcess( attach );
132 
133  } else if(particleName=="e+") {
134  G4DNAElastic* elastic = new G4DNAElastic("e+_G4LEPTSElastic");
135  elastic->SetEmModel( new G4LEPTSElasticModel );
136  manager->AddDiscreteProcess(elastic );
137 
138  G4DNAIonisation* ioni = new G4DNAIonisation("e+_G4LEPTSIonisation");
139  ioni->SetEmModel( new G4LEPTSIonisationModel );
140  manager->AddDiscreteProcess( ioni );
141 
142  G4DNAExcitation* excit = new G4DNAExcitation("e+_G4LEPTSExcitation");
143  excit->SetEmModel( new G4LEPTSExcitationModel );
144  manager->AddDiscreteProcess( excit );
145 
146  manager->AddDiscreteProcess(new G4DNADissociation("e+_G4LEPTSDissocNeutr") );
147 
148  G4DNAVibExcitation* vibExcit = new G4DNAVibExcitation("e+_G4LEPTSExcitVibrat");
149  vibExcit->SetEmModel( new G4LEPTSVibExcitationModel );
150  manager->AddDiscreteProcess( vibExcit );
151 
152  manager->AddDiscreteProcess( new G4DNARotExcitation("e+_G4LEPTSExcitRotat") );
153 
154  G4DNAAttachment* attach = new G4DNAAttachment("e+_G4LEPTSAttachment");
155  attach->SetEmModel( new G4LEPTSAttachmentModel );
156  manager->AddDiscreteProcess( attach );
157 
158  manager->AddDiscreteProcess(new G4DNAPositronium("e+_G4LEPTSPositronium") );
159 
160  /* } else if ( particleName == "proton" ) {
161  manager->AddDiscreteProcess(new G4DNAExcitation("proton_G4DNAExcitation"));
162  manager->AddDiscreteProcess(new G4DNAIonisation("proton_G4DNAIonisation"));
163  manager->AddDiscreteProcess(new G4DNAChargeDecrease("proton_G4DNAChargeDecrease"));
164 
165  } else if ( particleName == "hydrogen" ) {
166  manager->AddDiscreteProcess(new G4DNAExcitation("hydrogen_G4DNAExcitation"));
167  manager->AddDiscreteProcess(new G4DNAIonisation("hydrogen_G4DNAIonisation"));
168  manager->AddDiscreteProcess(new G4DNAChargeIncrease("hydrogen_G4DNAChargeIncrease"));
169 
170  } else if ( particleName == "alpha" ) {
171  manager->AddDiscreteProcess(new G4DNAExcitation("alpha_G4DNAExcitation"));
172  manager->AddDiscreteProcess(new G4DNAIonisation("alpha_G4DNAIonisation"));
173  manager->AddDiscreteProcess(new G4DNAChargeDecrease("alpha_G4DNAChargeDecrease"));
174 
175  } else if ( particleName == "alpha+" ) {
176  manager->AddDiscreteProcess(new G4DNAExcitation("alpha+_G4DNAExcitation"));
177  manager->AddDiscreteProcess(new G4DNAIonisation("alpha+_G4DNAIonisation"));
178  manager->AddDiscreteProcess(new G4DNAChargeDecrease("alpha+_G4DNAChargeDecrease"));
179  manager->AddDiscreteProcess(new G4DNAChargeIncrease("alpha+_G4DNAChargeIncrease"));
180 
181  } else if ( particleName == "helium" ) {
182  manager->AddDiscreteProcess(new G4DNAExcitation("helium_G4DNAExcitation"));
183  manager->AddDiscreteProcess(new G4DNAIonisation("helium_G4DNAIonisation"));
184  manager->AddDiscreteProcess(new G4DNAChargeIncrease("helium_G4DNAChargeIncrease"));
185 
186  // Extension to HZE proposed by Z. Francis
187 
188  } else if ( particleName == "carbon" ) {
189  manager->AddDiscreteProcess(new G4DNAIonisation("carbon_G4DNAIonisation"));
190 
191  } else if ( particleName == "nitrogen" ) {
192  manager->AddDiscreteProcess(new G4DNAIonisation("nitrogen_G4DNAIonisation"));
193 
194  } else if ( particleName == "oxygen" ) {
195  manager->AddDiscreteProcess(new G4DNAIonisation("oxygen_G4DNAIonisation"));
196 
197  } else if ( particleName == "iron" ) {
198  manager->AddDiscreteProcess(new G4DNAIonisation("iron_G4DNAIonisation"));
199  */
200  } else if (particleName == "gamma") {
201 
202  G4double LivermoreHighEnergyLimit = CLHEP::GeV;
203 
204  G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
205  G4LivermorePhotoElectricModel* theLivermorePhotoElectricModel =
207  theLivermorePhotoElectricModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
208  thePhotoElectricEffect->AddEmModel(0, theLivermorePhotoElectricModel);
209  manager->AddDiscreteProcess(thePhotoElectricEffect);
210 
211  G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
212  G4LivermoreComptonModel* theLivermoreComptonModel =
214  theLivermoreComptonModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
215  theComptonScattering->AddEmModel(0, theLivermoreComptonModel);
216  manager->AddDiscreteProcess(theComptonScattering);
217 
218  G4GammaConversion* theGammaConversion = new G4GammaConversion();
219  G4LivermoreGammaConversionModel* theLivermoreGammaConversionModel =
221  theLivermoreGammaConversionModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
222  theGammaConversion->AddEmModel(0, theLivermoreGammaConversionModel);
223  manager->AddDiscreteProcess(theGammaConversion);
224 
225  G4RayleighScattering* theRayleigh = new G4RayleighScattering();
226  G4LivermoreRayleighModel* theRayleighModel = new G4LivermoreRayleighModel();
227  theRayleighModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
228  theRayleigh->AddEmModel(0, theRayleighModel);
229  manager->AddDiscreteProcess(theRayleigh);
230  }
231 
232  }
233 
234 }
235 
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:88
virtual void ConstructParticle()
G4String name
Definition: TRTMaterials.hh:40
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
virtual void ConstructProcess()
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:706
void SetEmModel(G4VEmModel *, G4int index=1)
G4GLOB_DLL std::ostream G4cout
#define aParticleIterator
G4EmLEPTSPhysics(const G4String &name="G4EmLEPTSPhysics")
static G4Proton * Proton()
Definition: G4Proton.cc:93
static const double GeV
Definition: G4SIunits.hh:196
static G4DNAGenericIonsManager * Instance(void)
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4Positron * Positron()
Definition: G4Positron.cc:94
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=0)
static G4Electron * Electron()
Definition: G4Electron.cc:94
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
G4ParticleDefinition * GetIon(const G4String &name)
G4double elastic(Particle const *const p1, Particle const *const p2)