Geant4  10.00.p01
GammaRayTelIonPhysics.cc
Go to the documentation of this file.
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 76280 2013-11-08 12:54:34Z gcosmo $
28 //
29 //
30 
31 #include "GammaRayTelIonPhysics.hh"
32 
33 #include "globals.hh"
34 #include "G4ios.hh"
35 #include <iomanip>
36 
37 
39  : G4VPhysicsConstructor(name)
40 {;}
41 
43 {;}
44 
46 {;}
47 
48 
49 #include "G4ProcessManager.hh"
50 
51 
53 {
54  G4ProcessManager * pManager = 0;
55 
56  const G4double theBERTMin = 0.0*GeV;
57  const G4double theBERTMax = 5.0*GeV;
58  const G4double theFTFMin = 4.0*GeV;
59  const G4double theFTFMax = 100.0*TeV;
60 
61  G4FTFModel* theStringModel = new G4FTFModel;
63  theStringModel->SetFragmentationModel( theStringDecay );
64  G4PreCompoundModel* thePreEquilib = new G4PreCompoundModel( new G4ExcitationHandler );
65  G4GeneratorPrecompoundInterface* theCascade = new G4GeneratorPrecompoundInterface( thePreEquilib );
66 
67  G4TheoFSGenerator* theModel = new G4TheoFSGenerator( "FTFP" );
68  theModel->SetHighEnergyGenerator( theStringModel );
69  theModel->SetTransport( theCascade );
70  theModel->SetMinEnergy( theFTFMin );
71  theModel->SetMaxEnergy( theFTFMax );
72 
73  G4CascadeInterface * theBERTModel = new G4CascadeInterface;
74  theBERTModel->SetMinEnergy( theBERTMin );
75  theBERTModel->SetMaxEnergy( theBERTMax );
76 
77  // Elastic Process
80 
81  // Generic Ion
83  // add process
85 
86  pManager->AddProcess(&fIonIonisation, ordInActive, 2, 2);
87 
91 
93  GetCrossSectionDataSet(G4GGNuclNuclCrossSection::Default_Name());
94 
95  // Deuteron
97  // add process
99  fDeuteronProcess.AddDataSet(theGGNuclNuclData);
100  fDeuteronProcess.RegisterMe(theBERTModel);
101  fDeuteronProcess.RegisterMe(theModel);
103 
104  pManager->AddProcess(&fDeuteronIonisation, ordInActive, 2, 2);
105 
109 
110  // Triton
111  pManager = G4Triton::Triton()->GetProcessManager();
112  // add process
114  fTritonProcess.AddDataSet(theGGNuclNuclData);
115  fTritonProcess.RegisterMe(theBERTModel);
116  fTritonProcess.RegisterMe(theModel);
118 
119  pManager->AddProcess(&fTritonIonisation, ordInActive, 2, 2);
120 
124 
125  // Alpha
126  pManager = G4Alpha::Alpha()->GetProcessManager();
127  // add process
129 
130  fAlphaProcess.AddDataSet(theGGNuclNuclData);
131  fAlphaProcess.RegisterMe(theBERTModel);
132  fAlphaProcess.RegisterMe(theModel);
133  pManager->AddDiscreteProcess(&fAlphaProcess);
134 
135  pManager->AddProcess(&fAlphaIonisation, ordInActive, 2, 2);
136 
140 
141  // He3
142  pManager = G4He3::He3()->GetProcessManager();
143  // add process
145 
146  pManager->AddProcess(&fHe3Ionisation, ordInActive, 2, 2);
147 
151 
152 }
153 
154 
155 
G4hMultipleScattering fDeuteronMultipleScattering
void SetFragmentationModel(G4VStringFragmentation *aModel)
G4String name
Definition: TRTMaterials.hh:40
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4TritonInelasticProcess fTritonProcess
static const char * Default_Name()
G4ProcessManager * GetProcessManager() const
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
void RegisterMe(G4HadronicInteraction *a)
G4HadronElastic * theElasticModel
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4DeuteronInelasticProcess fDeuteronProcess
GammaRayTelIonPhysics(const G4String &name="ion")
G4HadronElasticProcess theElasticProcess
G4hMultipleScattering fTritonMultipleScattering
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
static G4CrossSectionDataSetRegistry * Instance()
static G4Triton * Triton()
Definition: G4Triton.cc:95
static const double GeV
Definition: G4SIunits.hh:196
void SetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt, G4int ordDoIt=ordDefault)
G4AlphaInelasticProcess fAlphaProcess
G4hMultipleScattering fHe3MultipleScattering
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
void SetMaxEnergy(const G4double anEnergy)
void SetTransport(G4VIntraNuclearTransportModel *const value)
static const double TeV
Definition: G4SIunits.hh:197
G4hMultipleScattering fAlphaMultipleScattering
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
double G4double
Definition: G4Types.hh:76
G4hMultipleScattering fIonMultipleScattering
static G4He3 * He3()
Definition: G4He3.cc:94