Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
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
//
28
//
29
//
30
// $Id$
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
47
PhysicsList::PhysicsList
()
48
:
G4VUserPhysicsList
()
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
64
PhysicsList::~PhysicsList
()
65
{ }
66
67
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
68
69
void
PhysicsList::ConstructParticle
()
70
{
71
// pseudo-particles
72
G4Geantino::GeantinoDefinition
();
73
74
// gamma
75
G4Gamma::GammaDefinition
();
76
77
// leptons
78
G4Electron::ElectronDefinition
();
79
G4Positron::PositronDefinition
();
80
81
G4NeutrinoE::NeutrinoEDefinition
();
82
G4AntiNeutrinoE::AntiNeutrinoEDefinition
();
83
84
// baryons
85
G4Proton::ProtonDefinition
();
86
G4Neutron::NeutronDefinition
();
87
88
// ions
89
G4IonConstructor
iConstructor;
90
iConstructor.
ConstructParticle
();
91
}
92
93
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
94
95
void
PhysicsList::ConstructProcess
()
96
{
97
AddTransportation
();
98
99
G4RadioactiveDecay
* radioactiveDecay =
new
G4RadioactiveDecay
();
100
radioactiveDecay->
SetHLThreshold
(-1.*
s
);
101
radioactiveDecay->
SetICM
(
true
);
//Internal Conversion
102
radioactiveDecay->
SetARM
(
false
);
//Atomic Rearangement
103
104
G4PhysicsListHelper
* ph =
G4PhysicsListHelper::GetPhysicsListHelper
();
105
ph->
RegisterProcess
(radioactiveDecay,
G4GenericIon::GenericIon
());
106
107
// Deexcitation (in case of Atomic Rearangement)
108
//
109
G4UAtomicDeexcitation
* de =
new
G4UAtomicDeexcitation
();
110
de->
SetFluo
(
true
);
111
de->
SetAuger
(
true
);
112
de->
SetPIXE
(
false
);
113
G4LossTableManager::Instance
()->
SetAtomDeexcitation
(de);
114
}
115
116
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
117
118
void
PhysicsList::SetCuts
()
119
{
120
SetCutsWithDefault
();
121
}
122
123
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Generated on Sat May 25 2013 14:31:57 for Geant4 by
1.8.4