Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
examples/extended/radioactivedecay/rdecay01/src/PhysicsList.cc
이 파일의 문서화 페이지로 가기
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 // $Id: PhysicsList.cc 108902 2018-03-15 14:51:23Z gcosmo $
30 //
31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33 
34 #include "PhysicsList.hh"
35 #include "G4UnitsTable.hh"
36 #include "G4ParticleTypes.hh"
37 #include "G4IonConstructor.hh"
38 #include "G4PhysicsListHelper.hh"
39 #include "G4RadioactiveDecay.hh"
40 #include "G4SystemOfUnits.hh"
41 #include "G4NuclideTable.hh"
42 #include "G4LossTableManager.hh"
43 #include "G4UAtomicDeexcitation.hh"
44 #include "G4NuclearLevelData.hh"
45 #include "G4DeexPrecoParameters.hh"
46 #include "G4NuclideTable.hh"
47 
48 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
49 
52 {
53  //add new units for radioActive decays
54  //
55  const G4double minute = 60*second;
56  const G4double hour = 60*minute;
57  const G4double day = 24*hour;
58  const G4double year = 365*day;
59  new G4UnitDefinition("minute", "min", "Time", minute);
60  new G4UnitDefinition("hour", "h", "Time", hour);
61  new G4UnitDefinition("day", "d", "Time", day);
62  new G4UnitDefinition("year", "y", "Time", year);
63 
64  // mandatory for G4NuclideTable
65  //
68 
69  //read new PhotonEvaporation data set
70  //
71  G4DeexPrecoParameters* deex =
73  deex->SetCorrelatedGamma(false);
74  deex->SetStoreAllLevels(true);
75  deex->SetMaxLifeTime(G4NuclideTable::GetInstance()->GetThresholdOfHalfLife()
76  /std::log(2.));
77 }
78 
79 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
80 
82 { }
83 
84 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
85 
87 {
88  // pseudo-particles
90 
91  // gamma
93 
94  // leptons
97 
100 
101  // baryons
104 
105  // ions
106  G4IonConstructor iConstructor;
107  iConstructor.ConstructParticle();
108 }
109 
110 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
111 
113 {
115 
116  G4RadioactiveDecay* radioactiveDecay = new G4RadioactiveDecay();
117 
118  G4bool ARMflag = false;
119  radioactiveDecay->SetARM(ARMflag); //Atomic Rearangement
120 
121  // need to initialize atomic deexcitation
122  //
124  G4VAtomDeexcitation* deex = man->AtomDeexcitation();
125  if (!deex) {
128  deex = new G4UAtomicDeexcitation();
130  man->SetAtomDeexcitation(deex);
131  }
132 
133  // register radioactiveDecay
134  //
136  ph->RegisterProcess(radioactiveDecay, G4GenericIon::GenericIon());
137 
138  //printout
139  //
140  G4cout << "\n Set atomic relaxation mode " << ARMflag << G4endl;
141 }
142 
143 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
144 
146 {
148 }
149 
150 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
G4VAtomDeexcitation * AtomDeexcitation()
G4DeexPrecoParameters * GetParameters()
#define G4endl
Definition: G4ios.hh:61
static G4NuclearLevelData * GetInstance()
static void ConstructParticle()
static constexpr double second
Definition: G4SIunits.hh:157
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
static G4Proton * ProtonDefinition()
Definition: G4Proton.cc:88
PhysicsList()
Implementation of the PhysicsList class.
static constexpr double eV
Definition: G4SIunits.hh:215
void SetARM(G4bool arm)
static G4Electron * ElectronDefinition()
Definition: G4Electron.cc:89
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
void SetThresholdOfHalfLife(G4double)
static G4Gamma * GammaDefinition()
Definition: G4Gamma.cc:81
void SetAugerCascade(G4bool val)
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4NeutrinoE * NeutrinoEDefinition()
Definition: G4NeutrinoE.cc:80
void SetLevelTolerance(G4double x)
static G4Neutron * NeutronDefinition()
Definition: G4Neutron.cc:99
G4GLOB_DLL std::ostream G4cout
static G4LossTableManager * Instance()
void SetAtomDeexcitation(G4VAtomDeexcitation *)
static G4Positron * PositronDefinition()
Definition: G4Positron.cc:89
static G4Geantino * GeantinoDefinition()
Definition: G4Geantino.cc:82
static constexpr double picosecond
Definition: G4SIunits.hh:161
static G4AntiNeutrinoE * AntiNeutrinoEDefinition()
static G4NuclideTable * GetInstance()
static G4EmParameters * Instance()