00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id: PhysicsList.cc,v 1.1 2010-10-18 15:56:17 maire Exp $ 00028 // GEANT4 tag $Name: not supported by cvs2svn $ 00029 // 00030 // 00031 00032 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00033 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00034 00035 #include "PhysicsList.hh" 00036 00037 #include "G4ProcessManager.hh" 00038 #include "G4ProcessVector.hh" 00039 #include "G4ParticleTypes.hh" 00040 #include "G4ParticleTable.hh" 00041 00042 #include "G4Material.hh" 00043 #include "G4MaterialTable.hh" 00044 #include "G4ios.hh" 00045 #include <iomanip> 00046 00047 #include "G4BosonConstructor.hh" 00048 #include "G4LeptonConstructor.hh" 00049 #include "G4MesonConstructor.hh" 00050 #include "G4BaryonConstructor.hh" 00051 #include "G4IonConstructor.hh" 00052 00053 #include "G4DecayPhysics.hh" 00054 #include "G4EmStandardPhysics.hh" 00055 #include "G4EmExtraPhysics.hh" 00056 #include "G4IonPhysics.hh" 00057 // TODO: 00058 // /home/chen/MyWorkArea/g4sim/src/PhysicsList.cc:57:33: fatal error: G4QStoppingPhysics.hh: No such file or directory 00059 //#include "G4QStoppingPhysics.hh" 00060 #include "G4HadronElasticPhysics.hh" 00061 #include "G4NeutronTrackingCut.hh" 00062 // TODO: 00063 // /home/chen/MyWorkArea/g4sim/src/PhysicsList.cc:62:36: fatal error: G4LHEPStoppingPhysics.hh: No such file or directory 00064 //#include "G4LHEPStoppingPhysics.hh" 00065 00066 #include "G4DataQuestionaire.hh" 00067 // TODO: 00068 // /home/chen/MyWorkArea/g4sim/src/PhysicsList.cc:67:37: fatal error: HadronPhysicsQGSP_BERT.hh: No such file or directory 00069 //#include "HadronPhysicsQGSP_BERT.hh" 00070 //#include "HadronPhysicsQGSP_BERT_HP.hh" 00071 00072 #include "MyDecayPhysics.hh" 00073 #include "MyPionPhysics.hh" 00074 00075 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00076 00077 PhysicsList::PhysicsList(int ver): G4VModularPhysicsList() 00078 { 00079 00080 G4DataQuestionaire it(photon); 00081 G4cout << "<<< Geant4 Physics List simulation engine: My Own physics list based on QGSP_BERT 3.4"<<G4endl; 00082 G4cout <<G4endl; 00083 00084 defaultCutValue = 1e-3*m; 00085 SetVerboseLevel(ver); 00086 00087 // EM Physics 00088 RegisterPhysics( new G4EmStandardPhysics(ver) ); 00089 00090 // Synchroton Radiation & GN Physics 00091 RegisterPhysics( new G4EmExtraPhysics(ver) ); 00092 00093 // Decays 00094 //RegisterPhysics( new MyDecayPhysics(ver) ); 00095 RegisterPhysics( new G4DecayPhysics(ver) ); 00096 00097 // Hadron Elastic scattering 00098 RegisterPhysics( new G4HadronElasticPhysics(ver) ); 00099 00100 // Hadron Physics 00101 //RegisterPhysics( new HadronPhysicsQGSP_BERT_HP(ver)); 00102 // RegisterPhysics( new HadronPhysicsQGSP_BERT(ver)); 00103 00104 // Stopping Physics 00105 // RegisterPhysics( new G4QStoppingPhysics(ver) ); 00106 //RegisterPhysics( new G4LHEPStoppingPhysics(ver) ); 00107 00108 // Ion Physics 00109 RegisterPhysics( new G4IonPhysics(ver)); 00110 00111 // Neutron tracking cut 00112 RegisterPhysics( new G4NeutronTrackingCut(ver)); 00113 00114 // My Physics 00115 //RegisterPhysics( new MyPionPhysics(ver) ); 00116 00117 } 00118 00119 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00120 00121 PhysicsList::~PhysicsList() 00122 {} 00123 00124 void PhysicsList::SetCuts() 00125 { 00126 if (verboseLevel >1){ 00127 G4cout << "PhysicsList::SetCuts:"; 00128 } 00129 // " G4VModularPhysicsList::SetCutsWithDefault" method sets 00130 // the default cut value for all particle types 00131 00132 SetCutsWithDefault(); 00133 00134 if (verboseLevel >0) 00135 G4VModularPhysicsList::DumpCutValuesTable(); 00136 }