Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
IonHIJINGPhysics.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 //
28 //
29 // $Id: IonHIJINGPhysics.cc,v 1.1 2006/10/28 16:00:25 vnivanch Exp $
30 // GEANT4 tag $Name: $
31 //
32 //---------------------------------------------------------------------------
33 //
34 // Class: IonHIJINGPhysics
35 //
36 // Author: 2012 Andrea Dotti
37 //
38 //
39 // Modified:
40 //
41 // ------------------------------------------------------------
42 //
43 #ifdef G4_USE_HIJING
44 #include "IonHIJINGPhysics.hh"
45 #include "G4ParticleDefinition.hh"
46 #include "G4ProcessManager.hh"
47 #include "G4Deuteron.hh"
48 #include "G4Triton.hh"
49 #include "G4He3.hh"
50 #include "G4Alpha.hh"
51 #include "G4GenericIon.hh"
52 #include "G4SystemOfUnits.hh"
54 
55 #include "G4HIJING_Model.hh"
59 
60 #include "G4PreCompoundModel.hh"
61 #include "G4ExcitationHandler.hh"
62 #include "G4FTFBuilder.hh"
63 #include "G4HadronicInteraction.hh"
64 #include "G4BuilderType.hh"
65 using namespace std;
66 
67 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
68 
70  : G4VHadronPhysics("ionInelasticHIJING"),fVerbose(ver),
71  fWasActivated(false)
72 {
73  fModel = 0;
74  SetPhysicsType(bIons);
75  if(fVerbose > 1) { G4cout << "### IonHIJINGPhysics" << G4endl; }
76 }
77 
78 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
79 
81 {}
82 
83 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
85 {
86  if(fWasActivated) { return; }
87  fWasActivated = true;
88 
89  G4double emin = 0.*MeV;
90  G4double emaxFTF = 25.*GeV;
91  G4double eminHIJ = 12.*GeV;
92  G4double emaxHIJ = 100.*TeV;
93 
95  G4PreCompoundModel* thePreCompound = new G4PreCompoundModel(handler);
96 
97  // Binary Cascade
98  theIonBC = new G4BinaryLightIonReaction(thePreCompound);
99  theIonBC->SetMinEnergy(0.0);
100  theIonBC->SetMaxEnergy(4*GeV); //4
101 
102  // FTFP
103  theBuilder = new G4FTFBuilder("FTFP",thePreCompound);
106  theFTFP->SetMaxEnergy(emaxFTF);
107 
108  //HIJING
109  fModel = new G4HIJING_Model();
110  fModel->SetMinEnergy( eminHIJ );
111  fModel->SetMaxEnergy( emaxHIJ );
112 
113  theNuclNuclData =
115 
116  AddProcess("dInelastic", G4Deuteron::Deuteron(),false);
117  AddProcess("tInelastic",G4Triton::Triton(),false);
118  AddProcess("He3Inelastic",G4He3::He3(),true);
119  AddProcess("alphaInelastic", G4Alpha::Alpha(),true);
120  AddProcess("ionInelastic",G4GenericIon::GenericIon(),true);
121 
122  if(fVerbose > 1) {
123  G4cout << "IonHIJINGPhysics::ConstructProcess done! "
124  << G4endl;
125  }
126 }
127 
128 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
129 
132 {
133  G4HadronInelasticProcess* hadi = new G4HadronInelasticProcess(name, part);
134  G4ProcessManager* pManager = part->GetProcessManager();
135  pManager->AddDiscreteProcess(hadi);
137  hadi->RegisterMe( theIonBC );
138  hadi->RegisterMe( theFTFP );
139  hadi->RegisterMe( fModel );
140 }
141 
142 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
143 #endif //HIJING
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
static G4He3 * He3()
Definition: G4He3.cc:94
const XML_Char * name
Definition: expat.h:151
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
static constexpr double MeV
Definition: G4SIunits.hh:214
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
void RegisterMe(G4HadronicInteraction *a)
#define G4endl
Definition: G4ios.hh:61
Definition of the IonHIJINGPhysics class.
G4HadronicInteraction * GetModel()
G4HIJING_Model * fModel
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
G4VCrossSectionDataSet * theNuclNuclData
static constexpr double TeV
Definition: G4SIunits.hh:218
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
IonHIJINGPhysics(G4int ver=0)
TString part[npart]
Definition: Style.C:32
void AddProcess(const G4String &, G4ParticleDefinition *, G4bool isIon)
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
virtual ~IonHIJINGPhysics()
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
int G4int
Definition: G4Types.hh:78
static G4Triton * Triton()
Definition: G4Triton.cc:95
G4ProcessManager * GetProcessManager() const
void ConstructProcess()
G4HadronicInteraction * theFTFP
G4GLOB_DLL std::ostream G4cout
G4FTFBuilder * theBuilder
static constexpr double GeV
Definition: G4SIunits.hh:217
G4BinaryLightIonReaction * theIonBC