Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NeutronHPphysics.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 /// \file hadronic/Hadr04/src/NeutronHPphysics.cc
27 /// \brief Implementation of the NeutronHPphysics class
28 //
29 // $Id: NeutronHPphysics.cc 66587 2012-12-21 11:06:44Z ihrivnac $
30 //
31 
32 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33 
34 #include "NeutronHPphysics.hh"
35 
36 #include "NeutronHPMessenger.hh"
37 
38 #include "G4ParticleDefinition.hh"
39 #include "G4ProcessManager.hh"
40 
41 // Processes
42 
46 #include "G4NeutronHPElastic.hh"
48 
51 #include "G4NeutronHPInelastic.hh"
52 
55 #include "G4NeutronHPCapture.hh"
56 
59 #include "G4NeutronHPFission.hh"
60 
61 #include "G4SystemOfUnits.hh"
62 
63 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
64 
66 : G4VPhysicsConstructor(name), fThermal(true), fNeutronMessenger(0)
67 {
68  fNeutronMessenger = new NeutronHPMessenger(this);
69 }
70 
71 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
72 
74 {
75  delete fNeutronMessenger;
76 }
77 
78 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
79 
81 {
83 
84  // process: elastic
85  //
87  pManager->AddDiscreteProcess(process1);
88  //
89  // cross section data set
93  process1->AddDataSet(dataSet1a);
94  if (fThermal) process1->AddDataSet(dataSet1b);
95  //
96  // models
97  G4NeutronHPElastic* model1a = new G4NeutronHPElastic();
99  if (fThermal) model1a->SetMinEnergy(4*eV);
100  process1->RegisterMe(model1a);
101  if (fThermal) process1->RegisterMe(model1b);
102 
103  // process: inelastic
104  //
106  pManager->AddDiscreteProcess(process2);
107  //
108  // cross section data set
110  process2->AddDataSet(dataSet2);
111  //
112  // models
114  process2->RegisterMe(model2);
115 
116  // process: nCapture
117  //
119  pManager->AddDiscreteProcess(process3);
120  //
121  // cross section data set
123  process3->AddDataSet(dataSet3);
124  //
125  // models
126  G4NeutronHPCapture* model3 = new G4NeutronHPCapture();
127  process3->RegisterMe(model3);
128 
129  // process: nFission
130  //
132  pManager->AddDiscreteProcess(process4);
133  //
134  // cross section data set
136  process4->AddDataSet(dataSet4);
137  //
138  // models
139  G4NeutronHPFission* model4 = new G4NeutronHPFission();
140  process4->RegisterMe(model4);
141 }
142 
143 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
NeutronHPphysics(const G4String &name="neutron")
virtual void ConstructProcess()
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
const XML_Char * name
G4ProcessManager * GetProcessManager() const
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
Definition of the NeutronHPphysics class.