Geant4 Cross Reference |
1 // 1 2 // ******************************************* 3 // * License and Disclaimer 4 // * 5 // * The Geant4 software is copyright of th 6 // * the Geant4 Collaboration. It is provided 7 // * conditions of the Geant4 Software License 8 // * LICENSE and available at http://cern.ch/ 9 // * include a list of copyright holders. 10 // * 11 // * Neither the authors of this software syst 12 // * institutes,nor the agencies providing fin 13 // * work make any representation or warran 14 // * regarding this software system or assum 15 // * use. Please see the license in the file 16 // * for the full disclaimer and the limitatio 17 // * 18 // * This code implementation is the result 19 // * technical work of the GEANT4 collaboratio 20 // * By using, copying, modifying or distri 21 // * any work based on the software) you ag 22 // * use in resulting scientific publicati 23 // * acceptance of all terms of the Geant4 Sof 24 // ******************************************* 25 // 26 // 27 /// \file PhysicsList.cc 28 /// \brief Implementation of the PhysicsList c 29 30 #include "PhysicsList.hh" 31 32 #include "ChemistryList.hh" 33 #include "ParallelWorldPhysics.hh" 34 35 #include "G4DecayPhysics.hh" 36 #include "G4EmDNAPhysics.hh" 37 #include "G4EmDNAPhysics_option2.hh" 38 #include "G4EmDNAPhysics_option4.hh" 39 #include "G4EmDNAPhysics_option6.hh" 40 #include "G4EmParameters.hh" 41 #include "G4RadioactiveDecayPhysics.hh" 42 #include "G4SystemOfUnits.hh" 43 44 //....oooOO0OOooo........oooOO0OOooo........oo 45 46 PhysicsList::PhysicsList(G4int phylist) 47 { 48 SetDefaultCutValue(1.0 * micrometer); 49 SetVerboseLevel(1); 50 51 UseCoupledTransportation(); 52 53 if (phylist == 0) { 54 RegisterPhysics(new G4EmDNAPhysics()); 55 } 56 else if (phylist == 2) { 57 RegisterPhysics(new G4EmDNAPhysics_option2 58 } 59 else if (phylist == 4) { 60 RegisterPhysics(new G4EmDNAPhysics_option4 61 } 62 else if (phylist == 6) { 63 RegisterPhysics(new G4EmDNAPhysics_option6 64 } 65 else { 66 G4ExceptionDescription errmsg; 67 errmsg << "Recommend to option 2, 4, 6 or 68 G4Exception("PhysicsList::PhysicsList", "" 69 } 70 RegisterPhysics(new G4DecayPhysics()); 71 RegisterPhysics(new G4RadioactiveDecayPhysic 72 73 G4bool useParallelPhysicsWorld = false; 74 if (useParallelPhysicsWorld) { 75 RegisterPhysics(new ParallelWorldPhysics(" 76 } 77 78 RegisterPhysics(new ChemistryList()); 79 80 G4ProductionCutsTable::GetProductionCutsTabl 81 } 82 83 //....oooOO0OOooo........oooOO0OOooo........oo 84