Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4IonPhysicsPHP.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 // $Id: $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // Header: G4IonPhysicsPHP
31 //
32 // Author: A.Ribon 24-May-2016
33 //
34 // Modified:
35 //
36 //---------------------------------------------------------------------------
37 //
38 
39 #include "G4IonPhysicsPHP.hh"
40 #include "G4SystemOfUnits.hh"
41 #include "G4ParticleDefinition.hh"
42 #include "G4ProcessManager.hh"
43 #include "G4Deuteron.hh"
44 #include "G4Triton.hh"
45 #include "G4He3.hh"
46 #include "G4Alpha.hh"
47 #include "G4GenericIon.hh"
48 #include "G4IonConstructor.hh"
49 
54 
55 #include "G4PreCompoundModel.hh"
56 #include "G4ExcitationHandler.hh"
57 #include "G4FTFBuilder.hh"
58 #include "G4HadronicInteraction.hh"
59 #include "G4BuilderType.hh"
61 
62 #include "G4ParticleHPInelastic.hh"
64 
65 using namespace std;
66 
67 // factory
69 
71 
87 
88 
90  : G4VPhysicsConstructor( "ionInelasticFTFP_BIC" ), verbose( ver ) {
92  if ( verbose > 1 ) G4cout << "### G4IonPhysicsPHP" << G4endl;
93 }
94 
95 
97  : G4VPhysicsConstructor( nname ), verbose( 1 ) {
99  if ( verbose > 1 ) G4cout << "### G4IonPhysicsPHP" << G4endl;
100 }
101 
102 
104  //Explictly setting pointers to zero is actually needed.
105  //These are static variables, in case we restart threads we need to re-create objects
106  delete modelAlphaPHP; modelAlphaPHP = 0;
107  delete modelHe3PHP; modelHe3PHP = 0;
108  delete modelTritonPHP; modelTritonPHP = 0;
110  delete theBuilder; theBuilder = 0;
111  delete theFTFP; theFTFP = 0;
112  delete theIonBC2; theIonBC2 = 0;
113  delete theIonBC1; theIonBC1 = 0;
118  delete theGGNuclNuclXS; theGGNuclNuclXS = 0;
119  delete theNuclNuclData; theNuclNuclData = 0;
120 }
121 
122 
124  // Construct ions
125  G4IonConstructor pConstructor;
126  pConstructor.ConstructParticle();
127 }
128 
129 
131  if ( wasActivated ) return;
132  wasActivated = true;
133 
134  const G4double maxPHP = 200.0*MeV;
135  const G4double overlapPHP_BIC = 10.0*MeV;
136  const G4double maxBIC = 4.0*GeV;
137  const G4double minFTF = 2.0* GeV;
138  const G4double maxFTF = 100.0*TeV;
139 
142  G4PreCompoundModel* thePreCompound = static_cast< G4PreCompoundModel* >(p);
143  if ( ! thePreCompound ) thePreCompound = new G4PreCompoundModel;
144 
145  // Binary Cascade
146  theIonBC1 = new G4BinaryLightIonReaction( thePreCompound );
147  theIonBC1->SetMinEnergy( 0.0 ); // Used for generic ions
148  theIonBC1->SetMaxEnergy( maxBIC );
149 
150  theIonBC2 = new G4BinaryLightIonReaction( thePreCompound );
151  theIonBC2->SetMinEnergy( maxPHP - overlapPHP_BIC ); // Used for d, t, He3, alpha
152  theIonBC2->SetMaxEnergy( maxBIC );
153 
154  // FTFP
155  theBuilder = new G4FTFBuilder( "FTFP", thePreCompound );
157  theFTFP->SetMinEnergy( minFTF );
158  theFTFP->SetMaxEnergy( maxFTF );
159 
160  theNuclNuclData =
162 
163  // ParticleHP : deuteron
164  modelDeuteronPHP = new G4ParticleHPInelastic( G4Deuteron::Deuteron(), "ParticleHPInelastic" );
166  modelDeuteronPHP->SetMaxEnergy( maxPHP );
170 
171  // ParticleHP : triton
172  modelTritonPHP = new G4ParticleHPInelastic( G4Triton::Triton(), "ParticleHPInelastic" );
174  modelTritonPHP->SetMaxEnergy( maxPHP );
178 
179  // ParticleHP : 3He
180  modelHe3PHP = new G4ParticleHPInelastic( G4He3::He3(), "ParticleHPInelastic" );
181  modelHe3PHP->SetMinEnergy( 0.0 );
182  modelHe3PHP->SetMaxEnergy( maxPHP );
186 
187  // ParticleHP : alpha
188  modelAlphaPHP = new G4ParticleHPInelastic( G4Alpha::Alpha(), "ParticleHPInelastic" );
189  modelAlphaPHP->SetMinEnergy( 0.0 );
190  modelAlphaPHP->SetMaxEnergy( maxPHP );
194 
199  AddProcess( "ionInelastic", G4GenericIon::GenericIon(), 0, 0, theIonBC1, theFTFP );
200 
201  if ( verbose > 1 ) G4cout << "G4IonPhysicsPHP::ConstructProcess done! " << G4endl;
202 }
203 
204 
208  G4HadronicInteraction* aFTFP ) {
209  G4HadronInelasticProcess* hadi = new G4HadronInelasticProcess( name, part );
210  G4ProcessManager* pManager = part->GetProcessManager();
211  pManager->AddDiscreteProcess( hadi );
212  hadi->AddDataSet( theNuclNuclData );
213  if ( aPHP ) {
214  hadi->RegisterMe( aPHP );
215  if ( xsecPHP ) {
216  hadi->AddDataSet( xsecPHP );
217  }
218  }
219  hadi->RegisterMe( aBIC );
220  hadi->RegisterMe( aFTFP );
221 }
222 
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
static G4He3 * He3()
Definition: G4He3.cc:94
const XML_Char * name
Definition: expat.h:151
void SetMinKinEnergy(G4double value)
void SetMinEnergy(G4double anEnergy)
static G4ThreadLocal G4BinaryLightIonReaction * theIonBC2
void SetMaxEnergy(const G4double anEnergy)
static G4ThreadLocal G4VComponentCrossSection * theGGNuclNuclXS
static constexpr double MeV
Definition: G4SIunits.hh:214
void SetMaxKinEnergy(G4double value)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
void RegisterMe(G4HadronicInteraction *a)
#define G4endl
Definition: G4ios.hh:61
const char * p
Definition: xmltok.h:285
static void ConstructParticle()
G4HadronicInteraction * GetModel()
virtual ~G4IonPhysicsPHP()
static G4ThreadLocal G4ParticleHPInelasticData * theDeuteronHPInelasticData
#define G4ThreadLocal
Definition: tls.hh:69
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static constexpr double TeV
Definition: G4SIunits.hh:218
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
TString part[npart]
Definition: Style.C:32
void AddProcess(const G4String &, G4ParticleDefinition *, G4ParticleHPInelasticData *, G4HadronicInteraction *, G4BinaryLightIonReaction *, G4HadronicInteraction *)
static G4HadronicInteractionRegistry * Instance()
G4IonPhysicsPHP(G4int ver=0)
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4ThreadLocal G4ParticleHPInelasticData * theTritonHPInelasticData
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
int G4int
Definition: G4Types.hh:78
static G4ThreadLocal G4HadronicInteraction * modelAlphaPHP
static G4ThreadLocal G4ParticleHPInelasticData * theAlphaHPInelasticData
static G4Triton * Triton()
Definition: G4Triton.cc:95
G4ProcessManager * GetProcessManager() const
static G4ThreadLocal G4VCrossSectionDataSet * theNuclNuclData
static G4ThreadLocal G4HadronicInteraction * modelTritonPHP
G4GLOB_DLL std::ostream G4cout
static G4ThreadLocal G4ParticleHPInelasticData * theHe3HPInelasticData
static G4ThreadLocal G4HadronicInteraction * modelDeuteronPHP
static G4ThreadLocal G4bool wasActivated
static G4ThreadLocal G4HadronicInteraction * theFTFP
G4HadronicInteraction * FindModel(const G4String &name)
static G4ThreadLocal G4FTFBuilder * theBuilder
static constexpr double GeV
Definition: G4SIunits.hh:217
static G4ThreadLocal G4HadronicInteraction * modelHe3PHP
static G4ThreadLocal G4BinaryLightIonReaction * theIonBC1