Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IonHIJINGPhysics.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/Hadr02/src/IonHIJINGPhysics.cc
27 /// \brief Implementation of the IonHIJINGPhysics class
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;
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);
104  theFTFP = theBuilder->GetModel();
105  theFTFP->SetMinEnergy(2*GeV);
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 
130 void IonHIJINGPhysics::AddProcess(const G4String& name,
131  G4ParticleDefinition* part, G4bool isIon)
132 {
133  G4HadronInelasticProcess* hadi = new G4HadronInelasticProcess(name, part);
134  G4ProcessManager* pManager = part->GetProcessManager();
135  pManager->AddDiscreteProcess(hadi);
136  hadi->AddDataSet(theNuclNuclData);
137  hadi->RegisterMe( theIonBC );
138  hadi->RegisterMe( theFTFP );
139  hadi->RegisterMe( fModel );
140 }
141 
142 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
143 #endif //HIJING
Definition of the IonHIJINGPhysics class.
IonHIJINGPhysics(G4int ver=0)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
const XML_Char * name
void ConstructProcess()
G4ProcessManager * GetProcessManager() const
int G4int
Definition: G4Types.hh:78
G4HadronicInteraction * GetModel()
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4GLOB_DLL std::ostream G4cout
bool G4bool
Definition: G4Types.hh:79
static G4Triton * Triton()
Definition: G4Triton.cc:95
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
virtual ~IonHIJINGPhysics()
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
void SetMaxEnergy(const G4double anEnergy)
#define G4endl
Definition: G4ios.hh:61
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
double G4double
Definition: G4Types.hh:76
static G4He3 * He3()
Definition: G4He3.cc:94