Geant4  10.01
G4DNAExcitation.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 // $Id: G4DNAExcitation.cc 85423 2014-10-29 08:22:38Z gcosmo $
27 
28 #include "G4DNAExcitation.hh"
30 #include "G4SystemOfUnits.hh"
31 #include "G4Positron.hh"
32 
33 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
34 
35 using namespace std;
36 
38  G4ProcessType type):G4VEmProcess (processName, type),
39  isInitialised(false)
40 {
42 }
43 
44 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
45 
47 {}
48 
49 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
50 
52 {
53 
56 
57  return
58  (
59  &p == G4Electron::Electron()
60  || &p == G4Positron::Positron()
62  || &p == instance->GetIon("hydrogen")
63  || &p == instance->GetIon("alpha++")
64  || &p == instance->GetIon("alpha+")
65  || &p == instance->GetIon("helium")
66  );
67 }
68 
69 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
70 
72 {
73  if(!isInitialised)
74  {
75  isInitialised = true;
76  SetBuildTableFlag(false);
77 
79 
80  if(name == "e-")
81  {
82 
83  // Emfietzoglou model
84 /*
85  if(!EmModel()) SetEmModel(new G4DNAEmfietzoglouExcitationModel);
86  EmModel()->SetLowEnergyLimit(8.23*eV);
87  EmModel()->SetHighEnergyLimit(10*MeV);
88 */
89  // Born model
90 
94 
95  AddEmModel(1, EmModel());
96  }
97 
98  if(name == "e+")
99  {
103 
104  AddEmModel(1, EmModel());
105  }
106 
107  if(name == "proton")
108  {
110  EmModel(1)->SetLowEnergyLimit(10*eV);
111  EmModel(1)->SetHighEnergyLimit(500*keV);
112 
114  EmModel(2)->SetLowEnergyLimit(500*keV);
115  EmModel(2)->SetHighEnergyLimit(100*MeV);
116 
117  AddEmModel(1, EmModel(1));
118  AddEmModel(2, EmModel(2));
119  }
120 
121  if(name == "hydrogen")
122  {
126 
127  AddEmModel(1, EmModel());
128  }
129 
130 
131  if( name == "alpha" || name == "alpha+" || name == "helium" )
132  {
136 
137  AddEmModel(1, EmModel());
138  }
139 
140  }
141 }
142 
143 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
144 
146 {
147  if (EmModel(2))
148  {
149  G4cout
150  << " Total cross sections computed from "
151  << EmModel(1)->GetName()
152  << " and "
153  << EmModel(2)->GetName()
154  << " models"
155  << G4endl;
156  }
157  else
158  {
159  G4cout
160  << " Total cross sections computed from "
161  << EmModel()->GetName()
162  << G4endl;
163  }
164 }
165 
166 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
static const double MeV
Definition: G4SIunits.hh:193
void SetBuildTableFlag(G4bool val)
virtual void InitialiseProcess(const G4ParticleDefinition *)
G4DNAExcitation(const G4String &processName="DNAExcitation", G4ProcessType type=fElectromagnetic)
G4VEmModel * EmModel(G4int index=1) const
G4String name
Definition: TRTMaterials.hh:40
virtual void PrintInfo()
static G4Proton * ProtonDefinition()
Definition: G4Proton.cc:88
const G4String & GetParticleName() const
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:706
virtual ~G4DNAExcitation()
void SetEmModel(G4VEmModel *, G4int index=1)
G4GLOB_DLL std::ostream G4cout
bool G4bool
Definition: G4Types.hh:79
void SetProcessSubType(G4int)
Definition: G4VProcess.hh:432
static G4DNAGenericIonsManager * Instance(void)
static const double eV
Definition: G4SIunits.hh:194
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
const G4String & GetName() const
Definition: G4VEmModel.hh:776
static MCTruthManager * instance
static const double keV
Definition: G4SIunits.hh:195
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:713
G4ParticleDefinition * GetIon(const G4String &name)
G4ProcessType
virtual G4bool IsApplicable(const G4ParticleDefinition &)