ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
tree
geant4-10.6-release
config
environments
examples
source
analysis
digits_hits
error_propagation
event
externals
g3tog4
geometry
global
graphics_reps
intercoms
interfaces
materials
parameterisations
particles
persistency
physics_lists
processes
biasing
cuts
decay
electromagnetic
hadronic
cross_sections
management
models
abla
abrasion
binary_cascade
cascade
coherent_elastic
de_excitation
em_dissociation
fission
gamma_nuclear
im_r_matrix
inclxx
lend
lepto_nuclear
management
particle_hp
parton_string
pre_equilibrium
exciton_model
include
src
G4GNASHTransitions.cc
G4HETCAlpha.cc
G4HETCChargedFragment.cc
G4HETCDeuteron.cc
G4HETCEmissionFactory.cc
G4HETCFragment.cc
G4HETCHe3.cc
G4HETCNeutron.cc
G4HETCProton.cc
G4HETCTriton.cc
G4LowEGammaNuclearModel.cc
G4LowEIonFragmentation.cc
G4PreCompoundAlpha.cc
G4PreCompoundDeuteron.cc
G4PreCompoundEmission.cc
G4PreCompoundEmissionFactory.cc
G4PreCompoundFragment.cc
G4PreCompoundFragmentVector.cc
G4PreCompoundHe3.cc
G4PreCompoundIon.cc
G4PreCompoundModel.cc
G4PreCompoundNeutron.cc
G4PreCompoundNucleon.cc
G4PreCompoundProton.cc
G4PreCompoundTransitions.cc
G4PreCompoundTriton.cc
G4VPreCompoundEmissionFactory.cc
G4VPreCompoundFragment.cc
G4VPreCompoundTransitions.cc
qmd
quasi_elastic
radioactive_decay
rpg
theo_high_energy
util
processes
stopping
util
management
optical
parameterisation
scoring
solidstate
transportation
readout
run
track
tracking
visualization
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4LowEGammaNuclearModel.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4LowEGammaNuclearModel.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
// Physics model class G4LowEGammaNuclearModel
27
// Created: 15 May 2019
28
// Author V.Ivanchenko
29
//
30
//
31
32
#include "
G4LowEGammaNuclearModel.hh
"
33
#include "
G4SystemOfUnits.hh
"
34
#include "
G4ParticleDefinition.hh
"
35
#include "
G4Fragment.hh
"
36
#include "
G4NucleiProperties.hh
"
37
#include "
G4DynamicParticle.hh
"
38
#include "
G4HadSecondary.hh
"
39
#include "
G4ReactionProduct.hh
"
40
#include "
G4ReactionProductVector.hh
"
41
#include "
G4HadronicParameters.hh
"
42
#include "
G4HadronicInteractionRegistry.hh
"
43
#include "
G4PreCompoundModel.hh
"
44
#include "
G4ThreeVector.hh
"
45
46
G4LowEGammaNuclearModel::G4LowEGammaNuclearModel
()
47
:
G4HadronicInteraction
(
"GammaNPreco"
),lab4mom(0.,0.,0.,0.)
48
{
49
SetMinEnergy
( 0.0*
CLHEP::GeV
);
50
SetMaxEnergy
(
G4HadronicParameters::Instance
()->
GetMaxEnergy
() );
51
52
// reuse existing pre-compound model
53
G4HadronicInteraction
*
p
=
54
G4HadronicInteractionRegistry::Instance
()->
FindModel
(
"PRECO"
);
55
fPreco
=
static_cast<
G4PreCompoundModel
*
>
(
p
);
56
if
(!
fPreco
) {
fPreco
=
new
G4PreCompoundModel
(); }
57
}
58
59
G4LowEGammaNuclearModel::~G4LowEGammaNuclearModel
()
60
{}
61
62
void
G4LowEGammaNuclearModel::InitialiseModel
()
63
{}
64
65
G4HadFinalState
*
G4LowEGammaNuclearModel::ApplyYourself
(
66
const
G4HadProjectile
& aTrack,
G4Nucleus
& theNucleus)
67
{
68
theParticleChange
.
Clear
();
69
70
G4int
A
= theNucleus.
GetA_asInt
();
71
G4int
Z
= theNucleus.
GetZ_asInt
();
72
73
// Create initial state
74
lab4mom
.
set
(0.,0.,0.,
G4NucleiProperties::GetNuclearMass
(A, Z));
75
lab4mom
+= aTrack.
Get4Momentum
();
76
77
G4Fragment
frag(A, Z,
lab4mom
);
78
79
if
(
verboseLevel
> 1) {
80
G4cout
<<
"G4LowEGammaNuclearModel::ApplyYourself initial G4Fragmet:"
81
<<
G4endl
;
82
G4cout
<< frag <<
G4endl
;
83
}
84
G4ReactionProductVector
* res =
fPreco
->
DeExcite
(frag);
85
86
// secondaries produced
87
if
(res) {
88
89
theParticleChange
.
SetStatusChange
(
stopAndKill
);
90
G4int
nsec = res->size();
91
if
(
verboseLevel
> 1) {
92
G4cout
<<
"G4LowEGammaNuclearModel: "
<< nsec <<
" secondaries"
<<
G4endl
;
93
}
94
for
(
G4int
i=0; i<nsec; ++i) {
95
if
((*res)[i]) {
96
G4double
ekin = (*res)[i]->GetKineticEnergy();
97
G4ThreeVector
dir
(0.,0.,1.);
98
if
(ekin > 0.0) { dir = (*res)[i]->GetMomentum().
unit
(); }
99
G4HadSecondary
* news =
new
G4HadSecondary
(
100
new
G4DynamicParticle
((*res)[i]->GetDefinition(), dir, ekin));
101
news->
SetTime
((*res)[i]->GetTOF());
102
news->
SetCreatorModelType
((*res)[i]->GetCreatorModel());
103
theParticleChange
.
AddSecondary
(*news);
104
if
(
verboseLevel
> 1) {
105
G4cout
<< i <<
". "
<< (*res)[i]->GetDefinition()->GetParticleName()
106
<<
" Ekin(MeV)= "
<< ekin/
MeV
107
<<
" dir: "
<< dir <<
G4endl
;
108
}
109
delete
(*res)[i];
110
delete
news;
111
}
112
}
113
delete
res;
114
}
115
return
&
theParticleChange
;
116
}
117
geant4
tree
geant4-10.6-release
source
processes
hadronic
models
pre_equilibrium
exciton_model
src
G4LowEGammaNuclearModel.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:49
using
1.8.2 with
ECCE GitHub integration