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: G4QIonPhysics 00031 // 00032 // Author: 03/06/2010, M. Kossov 00033 // 00034 // Modified: 00035 // 00036 //---------------------------------------------------------------------------- 00037 // 00038 00039 #include "G4QIonPhysics.hh" 00040 #include "G4BuilderType.hh" 00041 00042 G4QIonPhysics::G4QIonPhysics(const G4String& name) 00043 : G4VPhysicsConstructor(name) 00044 , fQAAInelasticProcess(0),fQAAElasticProcess(0) 00045 , wasActivated(false) 00046 { 00047 SetPhysicsType(bIons); 00048 } 00049 00050 void G4QIonPhysics::ConstructProcess() 00051 { 00052 G4ProcessManager* pManager = 0; 00053 fQAAInelasticProcess = new G4QLowEnergy(); 00054 fQAAElasticProcess = new G4QIonIonElastic(); 00055 00056 // Deuteron 00057 pManager = G4Deuteron::Deuteron()->GetProcessManager(); 00058 pManager->AddDiscreteProcess(fQAAInelasticProcess); 00059 pManager->AddDiscreteProcess(fQAAElasticProcess); 00060 00061 // Triton 00062 pManager = G4Triton::Triton()->GetProcessManager(); 00063 pManager->AddDiscreteProcess(fQAAInelasticProcess); 00064 pManager->AddDiscreteProcess(fQAAElasticProcess); 00065 00066 // He3 00067 pManager = G4He3::He3()->GetProcessManager(); 00068 pManager->AddDiscreteProcess(fQAAInelasticProcess); 00069 pManager->AddDiscreteProcess(fQAAElasticProcess); 00070 00071 // Alpha 00072 pManager = G4Alpha::Alpha()->GetProcessManager(); 00073 pManager->AddDiscreteProcess(fQAAInelasticProcess); 00074 pManager->AddDiscreteProcess(fQAAElasticProcess); 00075 00076 // GenericIon 00077 pManager = G4GenericIon::GenericIon()->GetProcessManager(); 00078 pManager->AddDiscreteProcess(fQAAInelasticProcess); 00079 pManager->AddDiscreteProcess(fQAAElasticProcess); 00080 00081 wasActivated = true; 00082 } 00083 00084 void G4QIonPhysics::ConstructParticle() 00085 { 00086 // Construct light ions 00087 G4IonConstructor pConstructor; 00088 pConstructor.ConstructParticle(); 00089 }