Geant4  10.02.p01
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: PhysicsList.cc 85259 2014-10-27 08:52:40Z gcosmo $
31 //
32 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
34 
35 #include "PhysicsList.hh"
36 #include "PhysicsListMessenger.hh"
37 
38 #include "PhysListEmStandard.hh"
39 #include "PhysListEmLivermore.hh"
40 #include "PhysListEmPenelope.hh"
41 
42 #include "G4LossTableManager.hh"
43 #include "G4UnitsTable.hh"
44 #include "G4SystemOfUnits.hh"
45 
46 // particles
47 
48 #include "G4BosonConstructor.hh"
49 #include "G4LeptonConstructor.hh"
50 #include "G4MesonConstructor.hh"
51 #include "G4BosonConstructor.hh"
52 #include "G4BaryonConstructor.hh"
53 #include "G4IonConstructor.hh"
55 
56 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
57 
60  fEmPhysicsList(0), fMessenger(0)
61 {
62 
63  //add new units for cross sections
64  //
65  new G4UnitDefinition( "mm2/g", "mm2/g","Surface/Mass", mm2/g);
66  new G4UnitDefinition( "um2/mg", "um2/mg","Surface/Mass", um*um/mg);
67 
68  SetVerboseLevel(1);
69 
70  fMessenger = new PhysicsListMessenger(this);
71 
72  // EM physics
73  fEmName = G4String("standard");
75 
77  SetDefaultCutValue(1.0*mm);
78 }
79 
80 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
81 
83 {
84  delete fMessenger;
85 }
86 
87 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
88 
90 {
91  G4BosonConstructor pBosonConstructor;
92  pBosonConstructor.ConstructParticle();
93 
94  G4LeptonConstructor pLeptonConstructor;
95  pLeptonConstructor.ConstructParticle();
96 
97  G4MesonConstructor pMesonConstructor;
98  pMesonConstructor.ConstructParticle();
99 
100  G4BaryonConstructor pBaryonConstructor;
101  pBaryonConstructor.ConstructParticle();
102 
103  G4IonConstructor pIonConstructor;
104  pIonConstructor.ConstructParticle();
105 
106  G4ShortLivedConstructor pShortLivedConstructor;
107  pShortLivedConstructor.ConstructParticle();
108 }
109 
110 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
111 
112 #include "G4EmProcessOptions.hh"
113 
115 {
116  // Transportation
117  //
119 
120  // Electromagnetic physics list
121  //
123 
124  // Em options
125  //
126  G4EmProcessOptions emOptions;
127  emOptions.SetIntegral(false);
128 }
129 
130 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
131 
133 {
134  if (verboseLevel>0) {
135  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">" << G4endl;
136  }
137 
138  if (name == fEmName) return;
139 
140  if (name == "standard") {
141  fEmName = name;
142  delete fEmPhysicsList;
144 
145  } else if (name == "livermore") {
146  fEmName = name;
147  delete fEmPhysicsList;
149 
150  } else if (name == "penelope") {
151  fEmName = name;
152  delete fEmPhysicsList;
154 
155  } else {
156  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">"
157  << " is not defined"
158  << G4endl;
159  }
160 }
161 
162 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void SetDefaultCutValue(G4double newCutValue)
void ConstructParticle()
Definition: PhysicsList.cc:117
static G4LossTableManager * Instance()
G4String name
Definition: TRTMaterials.hh:40
static void ConstructParticle()
static const double mg
Definition: G4SIunits.hh:181
static void ConstructParticle()
PhysicsListMessenger * fMessenger
Definition: PhysicsList.hh:78
void AddPhysicsList(const G4String &name)
Definition: PhysicsList.cc:191
static void ConstructParticle()
G4GLOB_DLL std::ostream G4cout
static void ConstructParticle()
void SetVerboseLevel(G4int value)
static void ConstructParticle()
static const double mm2
Definition: G4SIunits.hh:115
static const double g
Definition: G4SIunits.hh:180
G4VPhysicsConstructor * fEmPhysicsList
Definition: PhysicsList.hh:73
virtual void ConstructProcess()=0
void SetIntegral(G4bool val)
static const double um
Definition: G4SIunits.hh:112
#define G4endl
Definition: G4ios.hh:61
G4String fEmName
Definition: PhysicsList.hh:72
void ConstructProcess()
Definition: PhysicsList.cc:170
static const double mm
Definition: G4SIunits.hh:114