|
|
|||
File indexing completed on 2025-12-16 09:29:09
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // 0027 /// \file PhysicsList.cc 0028 /// \brief Implementation of the PhysicsList class 0029 0030 #include "PhysicsList.hh" 0031 0032 #include "ChemistryList.hh" 0033 #include "ParallelWorldPhysics.hh" 0034 0035 #include "G4DecayPhysics.hh" 0036 #include "G4EmDNAPhysics.hh" 0037 #include "G4EmDNAPhysics_option2.hh" 0038 #include "G4EmDNAPhysics_option4.hh" 0039 #include "G4EmDNAPhysics_option6.hh" 0040 #include "G4EmParameters.hh" 0041 #include "G4RadioactiveDecayPhysics.hh" 0042 #include "G4SystemOfUnits.hh" 0043 0044 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0045 0046 PhysicsList::PhysicsList(G4int phylist, G4int vis) 0047 { 0048 SetDefaultCutValue(1.0 * micrometer); 0049 SetVerboseLevel(1); 0050 0051 UseCoupledTransportation(); 0052 0053 if (phylist == 0) { 0054 RegisterPhysics(new G4EmDNAPhysics()); 0055 } 0056 else if (phylist == 2) { 0057 RegisterPhysics(new G4EmDNAPhysics_option2()); 0058 } 0059 else if (phylist == 4) { 0060 RegisterPhysics(new G4EmDNAPhysics_option4()); 0061 } 0062 else if (phylist == 6) { 0063 RegisterPhysics(new G4EmDNAPhysics_option6()); 0064 } 0065 else { 0066 G4ExceptionDescription errmsg; 0067 errmsg << "Recommend to option 2, 4, 6 or default" << G4endl; 0068 G4Exception("PhysicsList::PhysicsList", "", FatalException, errmsg); 0069 } 0070 RegisterPhysics(new G4DecayPhysics()); 0071 RegisterPhysics(new G4RadioactiveDecayPhysics()); 0072 0073 if (vis == 1) { 0074 RegisterPhysics(new ParallelWorldPhysics("DNAWorld", true)); 0075 } 0076 0077 RegisterPhysics(new ChemistryList()); 0078 0079 G4ProductionCutsTable::GetProductionCutsTable()->SetEnergyRange(100 * eV, 1 * GeV); 0080 } 0081 0082 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|