ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PhysicsList.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PhysicsList.cc
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 //
31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33 
34 #include "PhysicsList.hh"
35 #include "PhysicsListMessenger.hh"
36 
37 #include "G4EmStandardPhysics.hh"
39 #include "PhysListEmStandard.hh"
40 #include "MuNuclearBuilder.hh"
41 
42 #include "G4EmParameters.hh"
43 
44 #include "G4Gamma.hh"
45 #include "G4Electron.hh"
46 #include "G4Positron.hh"
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 #include "G4SystemOfUnits.hh"
57 
58 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
59 
61  fEmPhysicsList(0),
62  fMuNuclPhysicsList(0),
63  fMessenger(0)
64 {
65  SetVerboseLevel(1);
66  fMessenger = new PhysicsListMessenger(this);
67 
68  // EM physics
69  fEmName = G4String("emstandard_opt0");
71 
72  //extend energy range of PhysicsTables
73  //
75  param->SetMinEnergy(100*eV);
76  param->SetMaxEnergy(1000*PeV);
77 
79 }
80 
81 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
82 
84 {
85  delete fMessenger;
86 }
87 
88 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
89 
91 {
92  G4BosonConstructor pBosonConstructor;
93  pBosonConstructor.ConstructParticle();
94 
95  G4LeptonConstructor pLeptonConstructor;
96  pLeptonConstructor.ConstructParticle();
97 
98  G4MesonConstructor pMesonConstructor;
99  pMesonConstructor.ConstructParticle();
100 
101  G4BaryonConstructor pBaryonConstructor;
102  pBaryonConstructor.ConstructParticle();
103 
104  G4IonConstructor pIonConstructor;
105  pIonConstructor.ConstructParticle();
106 
107  G4ShortLivedConstructor pShortLivedConstructor;
108  pShortLivedConstructor.ConstructParticle();
109 }
110 
111 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
112 
114 {
115  // transportation
116  //
118 
119  // electromagnetic Physics List
120  //
123 }
124 
125 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
126 
128 {
129  if (verboseLevel>-1) {
130  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">" << G4endl;
131  }
132 
133  if (name == fEmName) return;
134 
135  if (name == "emstandard_opt0") {
136 
137  fEmName = name;
138  delete fEmPhysicsList;
140 
141  } else if (name == "emstandard_opt4") {
142 
143  fEmName = name;
144  delete fEmPhysicsList;
146 
147  } else if (name == "local") {
148 
149  fEmName = name;
150  delete fEmPhysicsList;
152 
153  } else if (name == "muNucl") {
155 
156  } else {
157 
158  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">"
159  << " is not defined"
160  << G4endl;
161  }
162 }
163 
164 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
165 
166