Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
GammaRayTelHadronPhysics.cc
이 파일의 문서화 페이지로 가기
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: GammaRayTelHadronPhysics.cc 76280 2013-11-08 12:54:34Z gcosmo $
28 //
29 
30 #include <iomanip>
31 
33 #include "globals.hh"
34 #include "G4ios.hh"
35 #include "G4SystemOfUnits.hh"
37 
38 
40  : G4VPhysicsConstructor(name)
41 {;}
42 
44 {
45  delete theStringDecay;
46 }
47 
48 
49 #include "G4ProcessManager.hh"
50 
51 
53 {
54 
55  G4ProcessManager * pManager = 0;
56  /*
57  G4cout << "" << G4endl;
58  G4cout << "You are using the GammaRayTelHadronPhysics" << G4endl;
59  G4cout << " - Note that this hadronic physics list is not optimized for any particular usage" << G4endl;
60  G4cout << " - If you wish to have a starting point tailored for a particular area of work," << G4endl;
61  G4cout << " please use one of the available physics lists by use-case." << G4endl;
62  G4cout << "" << G4endl;
63  */
64 
65  // Elastic Process
68 
69  const G4double theBERTMin = 0.0*GeV;
70  const G4double theBERTMax = 5.0*GeV;
71  const G4double theFTFMin = 4.0*GeV;
72  const G4double theFTFMax = 100.0*TeV;
73 
79 
80  theModel = new G4TheoFSGenerator( "FTFP" );
83  theModel->SetMinEnergy( theFTFMin );
84  theModel->SetMaxEnergy( theFTFMax );
85 
86  G4TheoFSGenerator* theModelDownToZero = new G4TheoFSGenerator( "FTFP" );
87  theModelDownToZero->SetHighEnergyGenerator( theStringModel );
88  theModelDownToZero->SetTransport( theCascade );
89  theModelDownToZero->SetMinEnergy(0*eV);
90  theModelDownToZero->SetMaxEnergy(theFTFMax );
91 
92  G4CascadeInterface * theBERTModel = new G4CascadeInterface;
93  theBERTModel->SetMinEnergy( theBERTMin );
94  theBERTModel->SetMaxEnergy( theBERTMax );
95 
96  // pi+ and pi-
97 
100 
101 
102  // PionPlus
104  pManager = pion ->GetProcessManager();
105  // add process
107  thePionPlusInelastic.AddDataSet(thePiData);
108  thePionPlusInelastic.RegisterMe(theBERTModel);
111 
112  pManager->AddProcess(&thePionPlusIonisation, ordInActive,2, 2);
113 
114  pManager->AddProcess(&thePionPlusMult);
117 
118  // PionMinus
120  pManager = pionMinus -> GetProcessManager();
121  // add process
124  thePionMinusInelastic.RegisterMe(theBERTModel);
127 
129 
130  pManager->AddProcess(&thePionMinusMult);
133 
135 
136  // KaonPlus
138  pManager = kaonPlus->GetProcessManager();
139  // add process
142  GetCrossSectionDataSet(G4ChipsKaonPlusInelasticXS::Default_Name()));
143  theKaonPlusInelastic.RegisterMe(theBERTModel);
146 
147  pManager->AddProcess(&theKaonPlusIonisation, ordInActive,2, 2);
148 
149  pManager->AddProcess(&theKaonPlusMult);
152 
153  // KaonMinus
155  pManager = kaonMinus->GetProcessManager();
156  // add process
159  GetCrossSectionDataSet(G4ChipsKaonMinusInelasticXS::Default_Name()));
160  theKaonMinusInelastic.RegisterMe(theBERTModel);
163 
165 
166  pManager->AddProcess(&theKaonMinusMult);
169 
171 
172  // KaonZeroL
174  // add process
177  ->GetCrossSectionDataSet(G4ChipsKaonZeroInelasticXS::Default_Name()));
178  theKaonZeroLInelastic.RegisterMe(theBERTModel);
181 
182  // KaonZeroS
184  // add process
187  ->GetCrossSectionDataSet(G4ChipsKaonZeroInelasticXS::Default_Name()));
188  theKaonZeroSInelastic.RegisterMe(theBERTModel);
191 
192  // Proton
193  pManager = G4Proton::Proton()->GetProcessManager();
194  // add process
197  theProtonInelastic.RegisterMe(theBERTModel);
200 
201  pManager->AddProcess(&theProtonIonisation, ordInActive,2, 2);
202 
203  pManager->AddProcess(&theProtonMult);
206 
207  // anti-Proton
209  // add process
211  theAntiProtonInelastic.AddDataSet( theAntiNucleonData );
212  theAntiProtonInelastic.RegisterMe(theModelDownToZero);
214 
216 
217  pManager->AddProcess(&theAntiProtonMult);
220 
222 
223  // Neutron
224  pManager = G4Neutron::Neutron()->GetProcessManager();
225  // add process
228  theNeutronInelastic.RegisterMe(theBERTModel);
231 
235 
239 
240  // AntiNeutron
242  // add process
244  theAntiNeutronInelastic.AddDataSet( theAntiNucleonData );
245  theAntiNeutronInelastic.RegisterMe(theModelDownToZero);
247 
248 }
G4bool pion(G4int ityp)
G4hMultipleScattering theAntiProtonMult
const XML_Char * name
Definition: expat.h:151
G4KaonPlusInelasticProcess theKaonPlusInelastic
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
G4NeutronInelasticProcess theNeutronInelastic
G4int AddRestProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4AntiNeutron * AntiNeutron()
void RegisterMe(G4HadronicInteraction *a)
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
G4GeneratorPrecompoundInterface * theCascade
G4PionPlusInelasticProcess thePionPlusInelastic
G4AntiProtonInelasticProcess theAntiProtonInelastic
static G4CrossSectionDataSetRegistry * Instance()
G4ProtonInelasticProcess theProtonInelastic
static G4Proton * Proton()
Definition: G4Proton.cc:93
static G4PionPlus * PionPlusDefinition()
Definition: G4PionPlus.cc:93
G4hMultipleScattering theKaonMinusMult
void SetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt, G4int ordDoIt=ordDefault)
G4AntiNeutronInelasticProcess theAntiNeutronInelastic
static constexpr double TeV
Definition: G4SIunits.hh:218
static G4KaonZeroLong * KaonZeroLong()
double G4double
Definition: G4Types.hh:76
G4hMultipleScattering theKaonPlusMult
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
void SetTransport(G4VIntraNuclearTransportModel *const value)
G4hMultipleScattering thePionMinusMult
G4HadronCaptureProcess * theNeutronCapture
static constexpr double eV
Definition: G4SIunits.hh:215
G4KaonZeroLInelasticProcess theKaonZeroLInelastic
G4HadronFissionProcess theNeutronFission
G4hMultipleScattering theProtonMult
G4PiMinusAbsorptionBertini thePionMinusAbsorption
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
G4PionMinusInelasticProcess thePionMinusInelastic
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
static G4KaonZeroShort * KaonZeroShort()
G4hMultipleScattering thePionPlusMult
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
GammaRayTelHadronPhysics(const G4String &name="hadron")
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
G4AntiProtonAbsorptionFritiof theAntiProtonAnnihilation
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4ProcessManager * GetProcessManager() const
G4ExcitedStringDecay * theStringDecay
void SetFragmentationModel(G4VStringFragmentation *aModel)
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
G4HadronElasticProcess theElasticProcess
G4KaonMinusAbsorptionBertini theKaonMinusAbsorption
G4KaonMinusInelasticProcess theKaonMinusInelastic
static constexpr double GeV
Definition: G4SIunits.hh:217
G4KaonZeroSInelasticProcess theKaonZeroSInelastic