Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BrachyPhysicsList.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 /*
27 Author: Susanna Guatelli
28 */
29 //
30 // **********************************
31 // * *
32 // * BrachyPhysicsList.cc *
33 // * *
34 // **********************************
35 //
37 #include "G4EmLivermorePhysics.hh"
38 #include "G4DecayPhysics.hh"
40 #include "G4EmPenelopePhysics.hh"
41 #include "BrachyPhysicsList.hh"
42 #include "G4VPhysicsConstructor.hh"
43 #include "G4ParticleDefinition.hh"
44 #include "G4ProductionCutsTable.hh"
45 #include "G4ProcessManager.hh"
46 #include "G4ParticleTypes.hh"
47 #include "G4ios.hh"
48 #include "G4StepLimiter.hh"
49 #include "G4ParticleDefinition.hh"
50 #include "globals.hh"
51 #include "G4SystemOfUnits.hh"
52 
54 {
55 SetVerboseLevel(1);
56 
57 // EM physics: 3 alternatives
58 emPhysicsList = new G4EmLivermorePhysics();
59 
60 // or
61 //emPhysicsList = new G4EmStandardPhysics_option4(1);
62 
63 // or
64 // emPhysicsList = new G4EmPenelopePhysics();
65 
66 // Add Decay
67 decPhysicsList = new G4DecayPhysics();
68 radDecayPhysicsList = new G4RadioactiveDecayPhysics();
69 
70 }
71 
73 {
74 delete decPhysicsList;
75 delete radDecayPhysicsList;
76 delete emPhysicsList;
77 }
78 
80 {
81 decPhysicsList -> ConstructParticle();
82 }
83 
85 {
87 emPhysicsList -> ConstructProcess();
88 
89 // decay physics list
90 decPhysicsList -> ConstructProcess();
91 radDecayPhysicsList -> ConstructProcess();
92 }
93 
95 {
96 // Definition of threshold of production
97 // of secondary particles
98 // This is defined in range.
99 defaultCutValue = 0.05 * mm;
100 SetCutValue(defaultCutValue, "gamma");
103 
104 // By default the low energy limit to produce
105 // secondary particles is 990 eV.
106 // This value is correct when using the EM Standard Physics.
107 // When using the Low Energy Livermore this value can be
108 // changed to 250 eV corresponding to the limit
109 // of validity of the physics models.
110 // Comment out following three lines if the
111 // Standard electromagnetic Package is adopted.
112 G4double lowLimit = 250. * eV;
113 G4double highLimit = 100. * GeV;
114 
116  highLimit);
117 
118 // Print the cuts
120 }
static constexpr double mm
Definition: G4SIunits.hh:115
void SetCutValue(G4double aCut, const G4String &pname)
void SetEnergyRange(G4double lowedge, G4double highedge)
void DumpCutValuesTable(G4int flag=1)
static constexpr double eV
Definition: G4SIunits.hh:215
void SetVerboseLevel(G4int value)
static G4ProductionCutsTable * GetProductionCutsTable()
static constexpr double GeV
Definition: G4SIunits.hh:217
double G4double
Definition: G4Types.hh:76