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 // $Id$ 00027 // 00028 //--------------------------------------------------------------------------- 00029 // 00030 // ClassName: G4IonLHEPPhysics 00031 // 00032 // Author: A.Ribon 16-Oct-2012 00033 // Copied from the original G4IonPhysics and renamed. 00034 // 00035 // Modified: 00036 // 00037 //---------------------------------------------------------------------------- 00038 // 00039 00040 #include "G4IonLHEPPhysics.hh" 00041 00042 #include "G4DeuteronInelasticProcess.hh" 00043 #include "G4LEDeuteronInelastic.hh" 00044 00045 #include "G4TritonInelasticProcess.hh" 00046 #include "G4LETritonInelastic.hh" 00047 00048 #include "G4AlphaInelasticProcess.hh" 00049 #include "G4LEAlphaInelastic.hh" 00050 00051 #include "G4ParticleDefinition.hh" 00052 #include "G4ParticleTable.hh" 00053 #include "G4ProcessManager.hh" 00054 00055 // Nuclei 00056 #include "G4IonConstructor.hh" 00057 #include "G4BuilderType.hh" 00058 00059 #include "G4HadronicDeprecate.hh" 00060 00061 // factory 00062 #include "G4PhysicsConstructorFactory.hh" 00063 // 00064 G4_DECLARE_PHYSCONSTR_FACTORY(G4IonLHEPPhysics); 00065 00066 G4IonLHEPPhysics::G4IonLHEPPhysics(G4int) 00067 : G4VPhysicsConstructor("IonPhysics") 00068 , wasActivated(false) 00069 { 00070 G4HadronicDeprecate("G4IonLHEPPhysics"); 00071 SetPhysicsType(bIons); 00072 fDeuteronProcess = 0; 00073 fDeuteronModel = 0; 00074 fTritonProcess = 0; 00075 fTritonModel = 0; 00076 fAlphaProcess = 0; 00077 fAlphaModel = 0; 00078 } 00079 00080 G4IonLHEPPhysics::G4IonLHEPPhysics(const G4String& name) 00081 : G4VPhysicsConstructor(name), wasActivated(false) 00082 { 00083 G4HadronicDeprecate("G4IonLHEPPhysics"); 00084 SetPhysicsType(bIons); 00085 fDeuteronProcess = 0; 00086 fDeuteronModel = 0; 00087 fTritonProcess = 0; 00088 fTritonModel = 0; 00089 fAlphaProcess = 0; 00090 fAlphaModel = 0; 00091 } 00092 00093 G4IonLHEPPhysics::~G4IonLHEPPhysics() 00094 { 00095 if(wasActivated) { 00096 00097 delete fDeuteronProcess; 00098 delete fDeuteronModel; 00099 delete fTritonProcess; 00100 delete fTritonModel; 00101 delete fAlphaProcess; 00102 delete fAlphaModel; 00103 00104 } 00105 } 00106 00107 void G4IonLHEPPhysics::ConstructProcess() 00108 { 00109 G4ProcessManager * pManager = 0; 00110 00111 // Deuteron 00112 pManager = G4Deuteron::Deuteron()->GetProcessManager(); 00113 // add process 00114 fDeuteronModel = new G4LEDeuteronInelastic(); 00115 fDeuteronProcess = new G4DeuteronInelasticProcess(); 00116 fDeuteronProcess->RegisterMe(fDeuteronModel); 00117 pManager->AddDiscreteProcess(fDeuteronProcess); 00118 00119 // Triton 00120 pManager = G4Triton::Triton()->GetProcessManager(); 00121 // add process 00122 fTritonModel = new G4LETritonInelastic(); 00123 fTritonProcess = new G4TritonInelasticProcess(); 00124 fTritonProcess->RegisterMe(fTritonModel); 00125 pManager->AddDiscreteProcess(fTritonProcess); 00126 00127 // Alpha 00128 pManager = G4Alpha::Alpha()->GetProcessManager(); 00129 // add process 00130 fAlphaModel = new G4LEAlphaInelastic(); 00131 fAlphaProcess = new G4AlphaInelasticProcess(); 00132 fAlphaProcess->RegisterMe(fAlphaModel); 00133 pManager->AddDiscreteProcess(fAlphaProcess); 00134 00135 wasActivated = true; 00136 } 00137 00138 void G4IonLHEPPhysics::ConstructParticle() 00139 { 00140 // Construct light ions 00141 G4IonConstructor pConstructor; 00142 pConstructor.ConstructParticle(); 00143 }