Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 //
28 //
29 // $Id: PhysicsList.cc 101866 2016-12-02 13:10:44Z 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 
47 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
48 
51 {
53  param->SetFluo(true);
54  param->SetAuger(true);
55  param->SetAugerCascade(true);
56  param->SetDeexcitationIgnoreCut(true);
58  //add new units for radioActive decays
59  //
60  const G4double minute = 60*second;
61  const G4double hour = 60*minute;
62  const G4double day = 24*hour;
63  const G4double year = 365*day;
64  new G4UnitDefinition("minute", "min", "Time", minute);
65  new G4UnitDefinition("hour", "h", "Time", hour);
66  new G4UnitDefinition("day", "d", "Time", day);
67  new G4UnitDefinition("year", "y", "Time", year);
68 }
69 
70 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
71 
73 { }
74 
75 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
76 
78 {
79  // pseudo-particles
81 
82  // gamma
84 
85  // leptons
88 
91 
92  // baryons
95 
96  // ions
97  G4IonConstructor iConstructor;
98  iConstructor.ConstructParticle();
99 }
100 
101 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
102 
104 {
106 
107  G4RadioactiveDecay* radioactiveDecay = new G4RadioactiveDecay();
108 
109  radioactiveDecay->SetARM(false); //Atomic Rearangement
110 
112  ph->RegisterProcess(radioactiveDecay, G4GenericIon::GenericIon());
113 
114  // Need to initialize atomic deexcitation outside of radioactive decay
116  G4VAtomDeexcitation* p = theManager->AtomDeexcitation();
117  if (!p) {
119  theManager->SetAtomDeexcitation(atomDeex);
120  atomDeex->InitialiseAtomicDeexcitation();
121  }
122  //
123  // mandatory for G4NuclideTable
124  //
127 }
128 
129 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
130 
132 {
134 }
135 
136 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
static G4Geantino * GeantinoDefinition()
Definition: G4Geantino.cc:82
void SetThresholdOfHalfLife(G4double)
static G4Electron * ElectronDefinition()
Definition: G4Electron.cc:89
void ConstructParticle()
Definition: PhysicsList.cc:117
static G4LossTableManager * Instance()
void SetDeexcitationIgnoreCut(G4bool val)
const char * p
Definition: xmltok.h:285
void SetAuger(G4bool val)
static G4Proton * ProtonDefinition()
Definition: G4Proton.cc:88
static constexpr double second
Definition: G4SIunits.hh:157
static constexpr double picosecond
Definition: G4SIunits.hh:161
static void ConstructParticle()
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4NeutrinoE * NeutrinoEDefinition()
Definition: G4NeutrinoE.cc:80
void SetAugerCascade(G4bool val)
void SetARM(G4bool arm)
G4DeexPrecoParameters * GetParameters()
static constexpr double eV
Definition: G4SIunits.hh:215
void SetCuts()
Definition: PhysicsList.cc:219
static G4Positron * PositronDefinition()
Definition: G4Positron.cc:89
void SetLevelTolerance(G4double x)
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4EmParameters * Instance()
static G4NuclideTable * GetInstance()
G4VAtomDeexcitation * AtomDeexcitation()
static G4AntiNeutrinoE * AntiNeutrinoEDefinition()
double G4double
Definition: G4Types.hh:76
void ConstructProcess()
Definition: PhysicsList.cc:170
static G4Neutron * NeutronDefinition()
Definition: G4Neutron.cc:99
void SetAtomDeexcitation(G4VAtomDeexcitation *)
static G4NuclearLevelData * GetInstance()
void SetFluo(G4bool val)
static G4Gamma * GammaDefinition()
Definition: G4Gamma.cc:81