Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 /// \file hadronic/Hadr01/src/PhysicsList.cc 26 /// \file hadronic/Hadr01/src/PhysicsList.cc 27 /// \brief Implementation of the PhysicsList c 27 /// \brief Implementation of the PhysicsList class 28 // 28 // 29 // 29 // >> 30 // $Id$ 30 // 31 // 31 ////////////////////////////////////////////// 32 ///////////////////////////////////////////////////////////////////////// 32 // 33 // 33 // PhysicsList 34 // PhysicsList 34 // 35 // 35 // Created: 31.04.2006 V.Ivanchenko 36 // Created: 31.04.2006 V.Ivanchenko 36 // 37 // 37 // Modified: 38 // Modified: 38 // 04.06.2006 Adoptation of Hadr01 (V.Ivanchen 39 // 04.06.2006 Adoptation of Hadr01 (V.Ivanchenko) 39 // 26.04.2007 Physics according to 8.3 Physics 40 // 26.04.2007 Physics according to 8.3 Physics List (V.Ivanchenko) 40 // 16.10.2012 Renamed used classes (A.Ribon) 41 // 16.10.2012 Renamed used classes (A.Ribon) 41 // 42 // 42 ////////////////////////////////////////////// 43 //////////////////////////////////////////////////////////////////////// 43 // << 44 // 44 45 45 #include "PhysicsList.hh" 46 #include "PhysicsList.hh" 46 << 47 #include "PhysicsListMessenger.hh" 47 #include "PhysicsListMessenger.hh" 48 48 49 #include "G4DecayPhysics.hh" 49 #include "G4DecayPhysics.hh" 50 #include "G4Electron.hh" << 51 #include "G4EmExtraPhysics.hh" << 52 #include "G4EmLivermorePhysics.hh" << 53 #include "G4EmParameters.hh" << 54 #include "G4EmPenelopePhysics.hh" << 55 #include "G4EmStandardPhysics.hh" 50 #include "G4EmStandardPhysics.hh" 56 #include "G4EmStandardPhysicsGS.hh" << 57 #include "G4EmStandardPhysics_option1.hh" 51 #include "G4EmStandardPhysics_option1.hh" 58 #include "G4EmStandardPhysics_option2.hh" 52 #include "G4EmStandardPhysics_option2.hh" 59 #include "G4EmStandardPhysics_option3.hh" 53 #include "G4EmStandardPhysics_option3.hh" 60 #include "G4EmStandardPhysics_option4.hh" 54 #include "G4EmStandardPhysics_option4.hh" 61 #include "G4Gamma.hh" << 55 #include "G4EmLivermorePhysics.hh" >> 56 #include "G4EmPenelopePhysics.hh" 62 #include "G4HadronElasticPhysics.hh" 57 #include "G4HadronElasticPhysics.hh" 63 #include "G4HadronElasticPhysicsHP.hh" << 64 #include "G4HadronElasticPhysicsXS.hh" 58 #include "G4HadronElasticPhysicsXS.hh" 65 #include "G4HadronHElasticPhysics.hh" << 59 #include "G4HadronElasticPhysicsHP.hh" 66 #include "G4HadronInelasticQBBC.hh" << 60 #include "G4HadronElasticPhysicsLHEP.hh" 67 #include "G4HadronPhysicsFTFP_BERT.hh" << 61 #include "G4HadronQElasticPhysics.hh" 68 #include "G4HadronPhysicsFTFP_BERT_HP.hh" << 62 #include "G4ChargeExchangePhysics.hh" 69 #include "G4HadronPhysicsFTFP_BERT_TRV.hh" << 63 #include "G4NeutronTrackingCut.hh" 70 #include "G4HadronPhysicsFTF_BIC.hh" << 64 #include "G4NeutronCrossSectionXS.hh" 71 #include "G4HadronPhysicsQGSP_BERT.hh" << 65 #include "G4QStoppingPhysics.hh" 72 #include "G4HadronPhysicsQGSP_BERT_HP.hh" << 66 #include "G4StoppingPhysics.hh" 73 #include "G4HadronPhysicsQGSP_BIC.hh" << 67 #include "G4LHEPStoppingPhysics.hh" 74 #include "G4HadronPhysicsQGSP_BIC_HP.hh" << 75 #include "G4HadronPhysicsQGSP_FTFP_BERT.hh" << 76 #include "G4HadronPhysicsQGS_BIC.hh" << 77 #include "G4IonBinaryCascadePhysics.hh" 68 #include "G4IonBinaryCascadePhysics.hh" 78 #include "G4IonElasticPhysics.hh" << 69 #include "G4IonLHEPPhysics.hh" 79 #include "G4IonPhysics.hh" 70 #include "G4IonPhysics.hh" 80 #include "G4IonPhysicsXS.hh" << 71 #include "G4EmExtraPhysics.hh" 81 #include "G4NeutronCrossSectionXS.hh" << 72 #include "G4EmProcessOptions.hh" 82 #include "G4NeutronTrackingCut.hh" << 73 83 #include "G4ParticleTable.hh" << 74 #include "HadronPhysicsFTFP_BERT.hh" >> 75 #include "HadronPhysicsFTF_BIC.hh" >> 76 #include "HadronPhysicsLHEP.hh" >> 77 #include "HadronPhysicsLHEP_EMV.hh" >> 78 #include "G4HadronInelasticQBBC.hh" >> 79 #include "HadronPhysicsQGSC_BERT.hh" >> 80 #include "HadronPhysicsQGSP.hh" >> 81 #include "HadronPhysicsQGSP_BERT.hh" >> 82 #include "HadronPhysicsQGSP_BERT_HP.hh" >> 83 #include "HadronPhysicsQGSP_BIC.hh" >> 84 #include "HadronPhysicsQGSP_BIC_HP.hh" >> 85 #include "HadronPhysicsQGSP_FTFP_BERT.hh" >> 86 #include "HadronPhysicsQGS_BIC.hh" >> 87 >> 88 #include "G4LossTableManager.hh" >> 89 >> 90 #include "G4ProcessManager.hh" 84 #include "G4ParticleTypes.hh" 91 #include "G4ParticleTypes.hh" 85 #include "G4PhysListFactoryMessenger.hh" << 92 #include "G4ParticleTable.hh" >> 93 #include "G4Gamma.hh" >> 94 #include "G4Electron.hh" 86 #include "G4Positron.hh" 95 #include "G4Positron.hh" 87 #include "G4ProcessManager.hh" << 88 #include "G4Proton.hh" 96 #include "G4Proton.hh" 89 #include "G4RadioactiveDecayPhysics.hh" << 97 90 #include "G4StoppingPhysics.hh" << 91 #include "G4SystemOfUnits.hh" 98 #include "G4SystemOfUnits.hh" 92 99 93 //....oooOO0OOooo........oooOO0OOooo........oo 100 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 94 101 95 PhysicsList::PhysicsList() : G4VModularPhysics 102 PhysicsList::PhysicsList() : G4VModularPhysicsList() 96 { 103 { 97 SetDefaultCutValue(0.7 * CLHEP::mm); << 104 G4LossTableManager::Instance(); 98 verboseLevel = 1; << 105 defaultCutValue = 0.7*mm; >> 106 fCutForGamma = defaultCutValue; >> 107 fCutForElectron = defaultCutValue; >> 108 fCutForPositron = defaultCutValue; >> 109 fCutForProton = defaultCutValue; >> 110 verboseLevel = 1; 99 111 100 // Messengers << 101 fMessenger = new PhysicsListMessenger(this); 112 fMessenger = new PhysicsListMessenger(this); 102 fFactMessenger = new G4PhysListFactoryMessen << 103 113 104 // Particles 114 // Particles 105 fParticleList = new G4DecayPhysics(verboseLe << 115 fParticleList = new G4DecayPhysics("decays"); 106 116 107 // EM physics 117 // EM physics 108 fEmPhysicsList = new G4EmStandardPhysics(ver << 118 fEmPhysicsList = new G4EmStandardPhysics(); 109 } 119 } 110 120 111 //....oooOO0OOooo........oooOO0OOooo........oo 121 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 112 122 113 PhysicsList::~PhysicsList() 123 PhysicsList::~PhysicsList() 114 { 124 { 115 delete fMessenger; 125 delete fMessenger; 116 delete fParticleList; 126 delete fParticleList; 117 delete fEmPhysicsList; 127 delete fEmPhysicsList; 118 for (std::size_t i = 0; i < fHadronPhys.size << 128 for(size_t i=0; i<fHadronPhys.size(); i++) { 119 delete fHadronPhys[i]; 129 delete fHadronPhys[i]; 120 } 130 } 121 } 131 } 122 132 123 //....oooOO0OOooo........oooOO0OOooo........oo 133 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 124 134 125 void PhysicsList::ConstructParticle() 135 void PhysicsList::ConstructParticle() 126 { 136 { 127 fParticleList->ConstructParticle(); 137 fParticleList->ConstructParticle(); 128 } 138 } 129 139 130 //....oooOO0OOooo........oooOO0OOooo........oo 140 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 131 141 132 void PhysicsList::ConstructProcess() 142 void PhysicsList::ConstructProcess() 133 { 143 { 134 AddTransportation(); 144 AddTransportation(); 135 fEmPhysicsList->ConstructProcess(); 145 fEmPhysicsList->ConstructProcess(); 136 fParticleList->ConstructProcess(); 146 fParticleList->ConstructProcess(); 137 for (std::size_t i = 0; i < fHadronPhys.size << 147 for(size_t i=0; i<fHadronPhys.size(); i++) { 138 fHadronPhys[i]->ConstructProcess(); 148 fHadronPhys[i]->ConstructProcess(); 139 } 149 } 140 } 150 } 141 151 142 //....oooOO0OOooo........oooOO0OOooo........oo 152 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 143 153 144 void PhysicsList::AddPhysicsList(const G4Strin 154 void PhysicsList::AddPhysicsList(const G4String& name) 145 { 155 { 146 if (verboseLevel > 0) { << 156 if (verboseLevel>0) { 147 G4cout << "PhysicsList::AddPhysicsList: <" 157 G4cout << "PhysicsList::AddPhysicsList: <" << name << ">" << G4endl; 148 } 158 } 149 if (name == "emstandard_opt0") { 159 if (name == "emstandard_opt0") { >> 160 150 delete fEmPhysicsList; 161 delete fEmPhysicsList; 151 fEmPhysicsList = new G4EmStandardPhysics(v << 162 fEmPhysicsList = new G4EmStandardPhysics(); 152 } << 163 153 else if (name == "emstandard_opt1") { << 164 } else if (name == "emstandard_opt1") { 154 delete fEmPhysicsList; << 165 155 fEmPhysicsList = new G4EmStandardPhysics_o << 156 } << 157 else if (name == "emstandard_opt2") { << 158 delete fEmPhysicsList; 166 delete fEmPhysicsList; 159 fEmPhysicsList = new G4EmStandardPhysics_o << 167 fEmPhysicsList = new G4EmStandardPhysics_option1(); 160 } << 168 161 else if (name == "emstandard_opt3") { << 169 } else if (name == "emstandard_opt2") { >> 170 162 delete fEmPhysicsList; 171 delete fEmPhysicsList; 163 fEmPhysicsList = new G4EmStandardPhysics_o << 172 fEmPhysicsList = new G4EmStandardPhysics_option2(); 164 } << 173 165 else if (name == "emstandard_opt4") { << 174 } else if (name == "emstandard_opt3") { >> 175 166 delete fEmPhysicsList; 176 delete fEmPhysicsList; 167 fEmPhysicsList = new G4EmStandardPhysics_o << 177 fEmPhysicsList = new G4EmStandardPhysics_option3(); 168 } << 178 169 else if (name == "emstandardGS") { << 179 } else if (name == "emstandard_opt4") { >> 180 170 delete fEmPhysicsList; 181 delete fEmPhysicsList; 171 fEmPhysicsList = new G4EmStandardPhysicsGS << 182 fEmPhysicsList = new G4EmStandardPhysics_option4(); 172 } << 183 173 else if (name == "FTFP_BERT_EMV") { << 184 } else if (name == "FTFP_BERT_EMV") { 174 AddPhysicsList("FTFP_BERT"); << 185 175 AddPhysicsList("emstandard_opt1"); 186 AddPhysicsList("emstandard_opt1"); 176 } << 177 else if (name == "FTFP_BERT_EMX") { << 178 AddPhysicsList("FTFP_BERT"); 187 AddPhysicsList("FTFP_BERT"); >> 188 >> 189 } else if (name == "FTFP_BERT_EMX") { >> 190 179 AddPhysicsList("emstandard_opt2"); 191 AddPhysicsList("emstandard_opt2"); 180 } << 181 else if (name == "FTFP_BERT_EMY") { << 182 AddPhysicsList("FTFP_BERT"); << 183 AddPhysicsList("emstandard_opt3"); << 184 } << 185 else if (name == "FTFP_BERT_EMZ") { << 186 AddPhysicsList("FTFP_BERT"); 192 AddPhysicsList("FTFP_BERT"); 187 AddPhysicsList("emstandard_opt4"); << 193 188 } << 194 } else if (name == "FTFP_BERT") { 189 else if (name == "FTFP_BERT") { << 195 190 SetBuilderList0(false); << 196 SetBuilderList1(); 191 fHadronPhys.push_back(new G4HadronPhysicsF << 197 fHadronPhys.push_back( new HadronPhysicsFTFP_BERT()); 192 } << 198 193 else if (name == "FTFP_BERT_TRV") { << 199 } else if (name == "FTF_BIC") { 194 AddPhysicsList("emstandardGS"); << 200 195 SetBuilderList1(false); << 201 SetBuilderList0(); 196 fHadronPhys.push_back(new G4HadronPhysicsF << 202 fHadronPhys.push_back( new HadronPhysicsFTF_BIC()); 197 } << 203 fHadronPhys.push_back( new G4NeutronCrossSectionXS(verboseLevel)); 198 else if (name == "FTF_BIC") { << 204 199 SetBuilderList0(false); << 205 } else if (name == "LHEP") { 200 fHadronPhys.push_back(new G4HadronPhysicsF << 206 201 } << 202 else if (name == "QBBC") { << 203 AddPhysicsList("emstandard_opt0"); << 204 SetBuilderList2(); 207 SetBuilderList2(); 205 fHadronPhys.push_back(new G4HadronInelasti << 208 fHadronPhys.push_back( new HadronPhysicsLHEP()); 206 } << 209 207 else if (name == "QGSP_BERT") { << 210 } else if (name == "LHEP_EMV") { 208 SetBuilderList0(false); << 211 209 fHadronPhys.push_back(new G4HadronPhysicsQ << 210 } << 211 else if (name == "QGSP_FTFP_BERT") { << 212 SetBuilderList0(false); << 213 fHadronPhys.push_back(new G4HadronPhysicsQ << 214 } << 215 else if (name == "QGSP_FTFP_BERT_EMV") { << 216 AddPhysicsList("QGSP_FTFP_BERT"); << 217 AddPhysicsList("emstandard_opt1"); 212 AddPhysicsList("emstandard_opt1"); 218 } << 213 SetBuilderList2(true); 219 else if (name == "QGSP_BERT_EMV") { << 214 fHadronPhys.push_back( new HadronPhysicsLHEP_EMV()); 220 AddPhysicsList("QGSP_BERT"); << 215 >> 216 } else if (name == "QBBC") { >> 217 >> 218 AddPhysicsList("emstandard_opt0"); >> 219 SetBuilderList3(); >> 220 fHadronPhys.push_back( new G4HadronInelasticQBBC()); >> 221 >> 222 } else if (name == "QGSC_BERT") { >> 223 >> 224 SetBuilderList4(); >> 225 fHadronPhys.push_back( new HadronPhysicsQGSC_BERT()); >> 226 >> 227 } else if (name == "QGSP") { >> 228 >> 229 SetBuilderList1(); >> 230 fHadronPhys.push_back( new HadronPhysicsQGSP()); >> 231 >> 232 } else if (name == "QGSP_BERT") { >> 233 >> 234 SetBuilderList1(); >> 235 fHadronPhys.push_back( new HadronPhysicsQGSP_BERT()); >> 236 >> 237 } else if (name == "QGSP_FTFP_BERT") { >> 238 >> 239 SetBuilderList1(); >> 240 fHadronPhys.push_back( new HadronPhysicsQGSP_FTFP_BERT()); >> 241 >> 242 } else if (name == "QGSP_BERT_EMV") { >> 243 221 AddPhysicsList("emstandard_opt1"); 244 AddPhysicsList("emstandard_opt1"); 222 } << 223 else if (name == "QGSP_BERT_EMX") { << 224 AddPhysicsList("QGSP_BERT"); 245 AddPhysicsList("QGSP_BERT"); >> 246 >> 247 } else if (name == "QGSP_BERT_EMX") { >> 248 225 AddPhysicsList("emstandard_opt2"); 249 AddPhysicsList("emstandard_opt2"); 226 } << 250 AddPhysicsList("QGSP_BERT"); 227 else if (name == "QGSP_BERT_HP") { << 251 228 SetBuilderList0(true); << 252 } else if (name == "QGSP_BERT_HP") { 229 fHadronPhys.push_back(new G4HadronPhysicsQ << 253 230 AddPhysicsList("RadioactiveDecay"); << 254 SetBuilderList1(true); 231 } << 255 fHadronPhys.push_back( new HadronPhysicsQGSP_BERT_HP()); 232 else if (name == "QGSP_BIC") { << 256 233 SetBuilderList0(false); << 257 } else if (name == "QGSP_BIC") { 234 fHadronPhys.push_back(new G4HadronPhysicsQ << 258 235 fHadronPhys.push_back(new G4IonElasticPhys << 259 SetBuilderList0(); 236 } << 260 fHadronPhys.push_back( new HadronPhysicsQGSP_BIC()); 237 else if (name == "QGSP_BIC_EMY") { << 261 238 AddPhysicsList("QGSP_BIC"); << 262 } else if (name == "QGSP_BIC_EMY") { >> 263 239 AddPhysicsList("emstandard_opt3"); 264 AddPhysicsList("emstandard_opt3"); 240 } << 265 SetBuilderList0(); 241 else if (name == "QGS_BIC") { << 266 fHadronPhys.push_back( new HadronPhysicsQGSP_BIC()); 242 SetBuilderList0(false); << 267 243 fHadronPhys.push_back(new G4HadronPhysicsQ << 268 } else if (name == "QGS_BIC") { 244 } << 269 245 else if (name == "QGSP_BIC_HP") { << 270 SetBuilderList0(); >> 271 fHadronPhys.push_back( new HadronPhysicsQGS_BIC()); >> 272 fHadronPhys.push_back( new G4NeutronCrossSectionXS(verboseLevel)); >> 273 >> 274 } else if (name == "QGSP_BIC_HP") { >> 275 246 SetBuilderList0(true); 276 SetBuilderList0(true); 247 fHadronPhys.push_back(new G4HadronPhysicsQ << 277 fHadronPhys.push_back( new HadronPhysicsQGSP_BIC_HP()); 248 AddPhysicsList("RadioactiveDecay"); << 278 249 } << 279 } else { 250 else if (name == "RadioactiveDecay") { << 280 251 fHadronPhys.push_back(new G4RadioactiveDec << 252 } << 253 else { << 254 G4cout << "PhysicsList::AddPhysicsList: <" 281 G4cout << "PhysicsList::AddPhysicsList: <" << name << ">" 255 << " is not defined" << G4endl; << 282 << " is not defined" >> 283 << G4endl; 256 } 284 } 257 } 285 } 258 286 259 //....oooOO0OOooo........oooOO0OOooo........oo 287 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 260 288 261 void PhysicsList::SetBuilderList0(G4bool flagH 289 void PhysicsList::SetBuilderList0(G4bool flagHP) 262 { 290 { 263 fHadronPhys.push_back(new G4EmExtraPhysics(v << 291 fHadronPhys.push_back( new G4EmExtraPhysics(verboseLevel)); 264 if (flagHP) { << 292 if(flagHP) { 265 fHadronPhys.push_back(new G4HadronElasticP << 293 fHadronPhys.push_back( new G4HadronElasticPhysicsHP(verboseLevel) ); 266 } << 294 } else { 267 else { << 295 fHadronPhys.push_back( new G4HadronElasticPhysics(verboseLevel) ); 268 fHadronPhys.push_back(new G4HadronElasticP << 296 } 269 } << 297 fHadronPhys.push_back( new G4StoppingPhysics(verboseLevel)); 270 fHadronPhys.push_back(new G4StoppingPhysics( << 298 fHadronPhys.push_back( new G4IonBinaryCascadePhysics(verboseLevel)); 271 fHadronPhys.push_back(new G4IonPhysics(verbo << 299 fHadronPhys.push_back( new G4NeutronTrackingCut(verboseLevel)); 272 if (!flagHP) { << 273 fHadronPhys.push_back(new G4NeutronTrackin << 274 } << 275 } 300 } 276 301 277 //....oooOO0OOooo........oooOO0OOooo........oo 302 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 278 303 279 void PhysicsList::SetBuilderList1(G4bool flagH 304 void PhysicsList::SetBuilderList1(G4bool flagHP) 280 { 305 { 281 fHadronPhys.push_back(new G4EmExtraPhysics(v << 306 fHadronPhys.push_back( new G4EmExtraPhysics(verboseLevel)); 282 if (flagHP) { << 307 if(flagHP) { 283 fHadronPhys.push_back(new G4HadronElasticP << 308 fHadronPhys.push_back( new G4HadronElasticPhysicsHP(verboseLevel) ); 284 } << 309 } else { 285 else { << 310 fHadronPhys.push_back( new G4HadronElasticPhysics(verboseLevel) ); 286 fHadronPhys.push_back(new G4HadronHElastic << 311 } 287 } << 312 fHadronPhys.push_back( new G4StoppingPhysics(verboseLevel)); 288 fHadronPhys.push_back(new G4StoppingPhysics( << 313 fHadronPhys.push_back( new G4IonLHEPPhysics(verboseLevel)); 289 fHadronPhys.push_back(new G4IonPhysics(verbo << 314 fHadronPhys.push_back( new G4NeutronTrackingCut(verboseLevel)); 290 if (!flagHP) { << 291 fHadronPhys.push_back(new G4NeutronTrackin << 292 } << 293 } 315 } 294 316 295 //....oooOO0OOooo........oooOO0OOooo........oo 317 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 296 318 297 void PhysicsList::SetBuilderList2() << 319 void PhysicsList::SetBuilderList2(G4bool addStopping) 298 { 320 { 299 fHadronPhys.push_back(new G4EmExtraPhysics(v << 321 fHadronPhys.push_back( new G4EmExtraPhysics(verboseLevel)); 300 fHadronPhys.push_back(new G4HadronElasticPhy << 322 fHadronPhys.push_back( new G4HadronElasticPhysicsLHEP(verboseLevel)); 301 fHadronPhys.push_back(new G4StoppingPhysics( << 323 if(addStopping) { fHadronPhys.push_back( new G4StoppingPhysics(verboseLevel)); } 302 fHadronPhys.push_back(new G4IonPhysicsXS(ver << 324 fHadronPhys.push_back( new G4IonLHEPPhysics(verboseLevel)); 303 fHadronPhys.push_back(new G4IonElasticPhysic << 304 fHadronPhys.push_back(new G4NeutronTrackingC << 305 } 325 } 306 326 307 //....oooOO0OOooo........oooOO0OOooo........oo 327 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 308 328 >> 329 void PhysicsList::SetBuilderList3() >> 330 { >> 331 fHadronPhys.push_back( new G4EmExtraPhysics(verboseLevel)); >> 332 fHadronPhys.push_back( new G4HadronElasticPhysicsXS(verboseLevel) ); >> 333 fHadronPhys.push_back( new G4StoppingPhysics(verboseLevel)); >> 334 fHadronPhys.push_back( new G4IonPhysics(verboseLevel)); >> 335 fHadronPhys.push_back( new G4NeutronTrackingCut(verboseLevel)); >> 336 } >> 337 >> 338 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... >> 339 >> 340 void PhysicsList::SetBuilderList4() >> 341 { >> 342 fHadronPhys.push_back( new G4EmExtraPhysics(verboseLevel)); >> 343 fHadronPhys.push_back( new G4HadronQElasticPhysics(verboseLevel)); >> 344 fHadronPhys.push_back( new G4QStoppingPhysics(verboseLevel)); //16-Oct-2012 A.R. Leave CHIPS stopping >> 345 fHadronPhys.push_back( new G4IonLHEPPhysics(verboseLevel)); >> 346 fHadronPhys.push_back( new G4NeutronTrackingCut(verboseLevel)); >> 347 } >> 348 >> 349 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... >> 350 >> 351 void PhysicsList::SetCuts() >> 352 { >> 353 >> 354 if (verboseLevel >0){ >> 355 G4cout << "PhysicsList::SetCuts:"; >> 356 G4cout << "CutLength : " << G4BestUnit(defaultCutValue,"Length") << G4endl; >> 357 } >> 358 >> 359 // set cut values for gamma at first and for e- second and next for e+, >> 360 // because some processes for e+/e- need cut values for gamma >> 361 SetCutValue(fCutForGamma, "gamma"); >> 362 SetCutValue(fCutForElectron, "e-"); >> 363 SetCutValue(fCutForPositron, "e+"); >> 364 SetCutValue(fCutForProton, "proton"); >> 365 >> 366 if (verboseLevel>0) { DumpCutValuesTable(); } >> 367 } >> 368 >> 369 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... >> 370 >> 371 void PhysicsList::SetCutForGamma(G4double cut) >> 372 { >> 373 fCutForGamma = cut; >> 374 SetParticleCuts(fCutForGamma, G4Gamma::Gamma()); >> 375 } >> 376 >> 377 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... >> 378 >> 379 void PhysicsList::SetCutForElectron(G4double cut) >> 380 { >> 381 fCutForElectron = cut; >> 382 SetParticleCuts(fCutForElectron, G4Electron::Electron()); >> 383 } >> 384 >> 385 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... >> 386 >> 387 void PhysicsList::SetCutForPositron(G4double cut) >> 388 { >> 389 fCutForPositron = cut; >> 390 SetParticleCuts(fCutForPositron, G4Positron::Positron()); >> 391 } >> 392 >> 393 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... >> 394 >> 395 void PhysicsList::SetCutForProton(G4double cut) >> 396 { >> 397 fCutForProton = cut; >> 398 SetParticleCuts(fCutForProton, G4Proton::Proton()); >> 399 } >> 400 309 void PhysicsList::List() 401 void PhysicsList::List() 310 { 402 { 311 G4cout << "### PhysicsLists available: FTFP_ << 403 G4cout << "### PhysicsLists available: FTFP_BERT FTFP_BERT_EMV FTFP_BERT_EMX FTF_BIC" 312 << "FTFP_BERT_EMX FTFP_BERT_EMZ FTFP_ << 404 << G4endl; 313 G4cout << " FTF_B << 405 G4cout << " LHEP LHEP_EMV QBBC QGS_BIC QGSP" 314 << "QGSP_BERT_EMV QGSP_BERT_EMX" << G << 406 << G4endl; 315 G4cout << " QGSP_ << 407 G4cout << " QGSC_BERT QGSP_BERT QGSP_BERT_EMV QGSP_BIC_EMY" 316 << "QGSP_FTFP_BERT_EMV" << G4endl; << 408 << G4endl; 317 G4cout << " QGS_B << 409 G4cout << " QGSP_BERT_EMX QGSP_BERT_HP QGSP_BIC QGSP_BIC_HP" 318 << "QGSP_BIC_HP" << G4endl; << 410 << G4endl; 319 } 411 } 320 412 321 //....oooOO0OOooo........oooOO0OOooo........oo 413 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... >> 414 322 415