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 #include "PhysicsList.hh"
30 #include "PhysicsListMessenger.hh"
31 
36 
37 #include "G4UnitsTable.hh"
38 #include "G4SystemOfUnits.hh"
39 #include "G4UserSpecialCuts.hh"
40 
41 // particles
42 
43 #include "G4BosonConstructor.hh"
44 #include "G4LeptonConstructor.hh"
45 #include "G4MesonConstructor.hh"
46 #include "G4BosonConstructor.hh"
47 #include "G4BaryonConstructor.hh"
48 #include "G4IonConstructor.hh"
51 
52 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
53 
56  fEmPhysicsList(0), fMessenger(0)
57 {
58  fMessenger = new PhysicsListMessenger(this);
59 
60  SetVerboseLevel(1);
61 
62  // EM physics
64 }
65 
66 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
67 
69 {
70  delete fMessenger;
71  delete fEmPhysicsList;
72 }
73 
74 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
75 
77 {
78  G4BosonConstructor pBosonConstructor;
79  pBosonConstructor.ConstructParticle();
80 
81  G4LeptonConstructor pLeptonConstructor;
82  pLeptonConstructor.ConstructParticle();
83 
84  G4MesonConstructor pMesonConstructor;
85  pMesonConstructor.ConstructParticle();
86 
87  G4BaryonConstructor pBaryonConstructor;
88  pBaryonConstructor.ConstructParticle();
89 
90  G4IonConstructor pIonConstructor;
91  pIonConstructor.ConstructParticle();
92 
93  G4ShortLivedConstructor pShortLivedConstructor;
94  pShortLivedConstructor.ConstructParticle();
95 
96  G4DNAGenericIonsManager* genericIonsManager;
97  genericIonsManager=G4DNAGenericIonsManager::Instance();
98  genericIonsManager->GetIon("alpha++");
99  genericIonsManager->GetIon("alpha+");
100  genericIonsManager->GetIon("helium");
101  genericIonsManager->GetIon("hydrogen");
102 }
103 
104 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
105 
107 {
108  // transportation
109  //
111 
112  // electromagnetic physics list
113  //
115 }
116 
117 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
118 
120 {
121  if (verboseLevel>-1) {
122  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">" << G4endl;
123  }
124 
125  if (name == fEmName) return;
126 
127  if (name == "dna_stat") {
128  fEmName = name;
129  delete fEmPhysicsList;
131  }
132  else if (name == "dna_stat_opt2") {
133  fEmName = name;
134  delete fEmPhysicsList;
136  }
137  else if (name == "dna_stat_opt4") {
138  fEmName = name;
139  delete fEmPhysicsList;
141  }
142  else if (name == "dna_stat_opt6") {
143  fEmName = name;
144  delete fEmPhysicsList;
146  }
147  else {
148  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">"
149  << " is not defined"
150  << G4endl;
151  }
152 }