| 1 | //
|
|---|
| 2 | // ********************************************************************
|
|---|
| 3 | // * License and Disclaimer *
|
|---|
| 4 | // * *
|
|---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of *
|
|---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and *
|
|---|
| 7 | // * conditions of the Geant4 Software License, included in the file *
|
|---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These *
|
|---|
| 9 | // * include a list of copyright holders. *
|
|---|
| 10 | // * *
|
|---|
| 11 | // * Neither the authors of this software system, nor their employing *
|
|---|
| 12 | // * institutes,nor the agencies providing financial support for this *
|
|---|
| 13 | // * work make any representation or warranty, express or implied, *
|
|---|
| 14 | // * regarding this software system or assume any liability for its *
|
|---|
| 15 | // * use. Please see the license in the file LICENSE and URL above *
|
|---|
| 16 | // * for the full disclaimer and the limitation of liability. *
|
|---|
| 17 | // * *
|
|---|
| 18 | // * This code implementation is the result of the scientific and *
|
|---|
| 19 | // * technical work of the GEANT4 collaboration. *
|
|---|
| 20 | // * By using, copying, modifying or distributing the software (or *
|
|---|
| 21 | // * any work based on the software) you agree to acknowledge its *
|
|---|
| 22 | // * use in resulting scientific publications, and indicate your *
|
|---|
| 23 | // * acceptance of all terms of the Geant4 Software license. *
|
|---|
| 24 | // ********************************************************************
|
|---|
| 25 | //
|
|---|
| 26 | //
|
|---|
| 27 | // $Id: GammaRayTelIonPhysics.cc,v 1.4 2006/06/29 15:56:48 gunter Exp $
|
|---|
| 28 | // GEANT4 tag $Name: geant4-09-03-cand-01 $
|
|---|
| 29 | //
|
|---|
| 30 | //
|
|---|
| 31 |
|
|---|
| 32 | #include "GammaRayTelIonPhysics.hh"
|
|---|
| 33 |
|
|---|
| 34 | #include "globals.hh"
|
|---|
| 35 | #include "G4ios.hh"
|
|---|
| 36 | #include <iomanip>
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 | GammaRayTelIonPhysics::GammaRayTelIonPhysics(const G4String& name)
|
|---|
| 40 | : G4VPhysicsConstructor(name)
|
|---|
| 41 | {
|
|---|
| 42 | }
|
|---|
| 43 |
|
|---|
| 44 | GammaRayTelIonPhysics::~GammaRayTelIonPhysics()
|
|---|
| 45 | {
|
|---|
| 46 | }
|
|---|
| 47 |
|
|---|
| 48 | void GammaRayTelIonPhysics::ConstructParticle()
|
|---|
| 49 | {
|
|---|
| 50 |
|
|---|
| 51 | }
|
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 | #include "G4ProcessManager.hh"
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 | void GammaRayTelIonPhysics::ConstructProcess()
|
|---|
| 58 | {
|
|---|
| 59 | G4ProcessManager * pManager = 0;
|
|---|
| 60 |
|
|---|
| 61 | // Elastic Process
|
|---|
| 62 | theElasticModel = new G4LElastic();
|
|---|
| 63 | theElasticProcess.RegisterMe(theElasticModel);
|
|---|
| 64 |
|
|---|
| 65 | // Generic Ion
|
|---|
| 66 | pManager = G4GenericIon::GenericIon()->GetProcessManager();
|
|---|
| 67 | // add process
|
|---|
| 68 | pManager->AddDiscreteProcess(&theElasticProcess);
|
|---|
| 69 |
|
|---|
| 70 | pManager->AddProcess(&fIonIonisation, ordInActive, 2, 2);
|
|---|
| 71 |
|
|---|
| 72 | pManager->AddProcess(&fIonMultipleScattering);
|
|---|
| 73 | pManager->SetProcessOrdering(&fIonMultipleScattering, idxAlongStep, 1);
|
|---|
| 74 | pManager->SetProcessOrdering(&fIonMultipleScattering, idxPostStep, 1);
|
|---|
| 75 |
|
|---|
| 76 | // Deuteron
|
|---|
| 77 | pManager = G4Deuteron::Deuteron()->GetProcessManager();
|
|---|
| 78 | // add process
|
|---|
| 79 | pManager->AddDiscreteProcess(&theElasticProcess);
|
|---|
| 80 |
|
|---|
| 81 | fDeuteronModel = new G4LEDeuteronInelastic();
|
|---|
| 82 | fDeuteronProcess.RegisterMe(fDeuteronModel);
|
|---|
| 83 | pManager->AddDiscreteProcess(&fDeuteronProcess);
|
|---|
| 84 |
|
|---|
| 85 | pManager->AddProcess(&fDeuteronIonisation, ordInActive, 2, 2);
|
|---|
| 86 |
|
|---|
| 87 | pManager->AddProcess(&fDeuteronMultipleScattering);
|
|---|
| 88 | pManager->SetProcessOrdering(&fDeuteronMultipleScattering, idxAlongStep, 1);
|
|---|
| 89 | pManager->SetProcessOrdering(&fDeuteronMultipleScattering, idxPostStep, 1);
|
|---|
| 90 |
|
|---|
| 91 | // Triton
|
|---|
| 92 | pManager = G4Triton::Triton()->GetProcessManager();
|
|---|
| 93 | // add process
|
|---|
| 94 | pManager->AddDiscreteProcess(&theElasticProcess);
|
|---|
| 95 |
|
|---|
| 96 | fTritonModel = new G4LETritonInelastic();
|
|---|
| 97 | fTritonProcess.RegisterMe(fTritonModel);
|
|---|
| 98 | pManager->AddDiscreteProcess(&fTritonProcess);
|
|---|
| 99 |
|
|---|
| 100 | pManager->AddProcess(&fTritonIonisation, ordInActive, 2, 2);
|
|---|
| 101 |
|
|---|
| 102 | pManager->AddProcess(&fTritonMultipleScattering);
|
|---|
| 103 | pManager->SetProcessOrdering(&fTritonMultipleScattering, idxAlongStep, 1);
|
|---|
| 104 | pManager->SetProcessOrdering(&fTritonMultipleScattering, idxPostStep, 1);
|
|---|
| 105 |
|
|---|
| 106 | // Alpha
|
|---|
| 107 | pManager = G4Alpha::Alpha()->GetProcessManager();
|
|---|
| 108 | // add process
|
|---|
| 109 | pManager->AddDiscreteProcess(&theElasticProcess);
|
|---|
| 110 |
|
|---|
| 111 | fAlphaModel = new G4LEAlphaInelastic();
|
|---|
| 112 | fAlphaProcess.RegisterMe(fAlphaModel);
|
|---|
| 113 | pManager->AddDiscreteProcess(&fAlphaProcess);
|
|---|
| 114 |
|
|---|
| 115 | pManager->AddProcess(&fAlphaIonisation, ordInActive, 2, 2);
|
|---|
| 116 |
|
|---|
| 117 | pManager->AddProcess(&fAlphaMultipleScattering);
|
|---|
| 118 | pManager->SetProcessOrdering(&fAlphaMultipleScattering, idxAlongStep, 1);
|
|---|
| 119 | pManager->SetProcessOrdering(&fAlphaMultipleScattering, idxPostStep, 1);
|
|---|
| 120 |
|
|---|
| 121 | // He3
|
|---|
| 122 | pManager = G4He3::He3()->GetProcessManager();
|
|---|
| 123 | // add process
|
|---|
| 124 | pManager->AddDiscreteProcess(&theElasticProcess);
|
|---|
| 125 |
|
|---|
| 126 | pManager->AddProcess(&fHe3Ionisation, ordInActive, 2, 2);
|
|---|
| 127 |
|
|---|
| 128 | pManager->AddProcess(&fHe3MultipleScattering);
|
|---|
| 129 | pManager->SetProcessOrdering(&fHe3MultipleScattering, idxAlongStep, 1);
|
|---|
| 130 | pManager->SetProcessOrdering(&fHe3MultipleScattering, idxPostStep, 1);
|
|---|
| 131 |
|
|---|
| 132 | }
|
|---|
| 133 |
|
|---|
| 134 |
|
|---|
| 135 |
|
|---|