Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
examples/extended/radioactivedecay/rdecay01/src/PhysicsList.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 /// \file radioactivedecay/rdecay01/src/PhysicsList.cc
27 /// \brief Implementation of the PhysicsList class
28 //
29 //
30 // $Id: PhysicsList.cc 73284 2013-08-23 08:35:02Z gcosmo $
31 //
32 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
34 
35 #include "PhysicsList.hh"
36 #include "G4UnitsTable.hh"
37 #include "G4ParticleTypes.hh"
38 #include "G4IonConstructor.hh"
39 #include "G4PhysicsListHelper.hh"
40 #include "G4RadioactiveDecay.hh"
41 #include "G4UAtomicDeexcitation.hh"
42 #include "G4LossTableManager.hh"
43 #include "G4SystemOfUnits.hh"
44 
45 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
46 
49 {
50  //add new units for radioActive decays
51  //
52  const G4double minute = 60*second;
53  const G4double hour = 60*minute;
54  const G4double day = 24*hour;
55  const G4double year = 365*day;
56  new G4UnitDefinition("minute", "min", "Time", minute);
57  new G4UnitDefinition("hour", "h", "Time", hour);
58  new G4UnitDefinition("day", "d", "Time", day);
59  new G4UnitDefinition("year", "y", "Time", year);
60 }
61 
62 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
63 
65 { }
66 
67 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
68 
70 {
71  // pseudo-particles
73 
74  // gamma
76 
77  // leptons
80 
83 
84  // baryons
87 
88  // ions
89  G4IonConstructor iConstructor;
90  iConstructor.ConstructParticle();
91 }
92 
93 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
94 
96 {
98 
99  G4RadioactiveDecay* radioactiveDecay = new G4RadioactiveDecay();
100  //Caution! With G4MT migration this threshold can no longer be set smaller
101  //than nanosecond
102  radioactiveDecay->SetHLThreshold(nanosecond);
103 
104  radioactiveDecay->SetICM(true); //Internal Conversion
105  radioactiveDecay->SetARM(false); //Atomic Rearangement
106 
108  ph->RegisterProcess(radioactiveDecay, G4GenericIon::GenericIon());
109 
110  // Deexcitation (in case of Atomic Rearangement)
111  //
113  de->SetFluo(true);
114  de->SetAuger(true);
115  de->SetPIXE(false);
117 }
118 
119 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
120 
122 {
124 }
125 
126 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
static G4Geantino * GeantinoDefinition()
Definition: G4Geantino.cc:82
static G4Electron * ElectronDefinition()
Definition: G4Electron.cc:89
static G4LossTableManager * Instance()
static G4Proton * ProtonDefinition()
Definition: G4Proton.cc:88
static void ConstructParticle()
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4NeutrinoE * NeutrinoEDefinition()
Definition: G4NeutrinoE.cc:80
void SetARM(G4bool arm)
int nanosecond
Definition: hepunit.py:82
static G4Positron * PositronDefinition()
Definition: G4Positron.cc:89
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
static G4PhysicsListHelper * GetPhysicsListHelper()
void SetICM(G4bool icm)
static G4AntiNeutrinoE * AntiNeutrinoEDefinition()
double G4double
Definition: G4Types.hh:76
void SetHLThreshold(G4double hl)
static G4Neutron * NeutronDefinition()
Definition: G4Neutron.cc:99
void SetAtomDeexcitation(G4VAtomDeexcitation *)
static G4Gamma * GammaDefinition()
Definition: G4Gamma.cc:81