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
cascade
include
G4Analyser.hh
G4BigBanger.hh
G4CascadeChannel.hh
G4CascadeChannelTables.hh
G4CascadeCheckBalance.hh
G4CascadeCoalescence.hh
G4CascadeColliderBase.hh
G4CascadeData.hh
G4CascadeDeexcitation.hh
G4CascadeDeexciteBase.hh
G4CascadeFinalStateAlgorithm.hh
G4CascadeFinalStateGenerator.hh
G4CascadeFunctions.hh
G4CascadeGamNChannel.hh
G4CascadeGamPChannel.hh
G4CascadeHistory.hh
G4CascadeInterface.hh
G4CascadeInterpolator.hh
G4CascadeKminusNChannel.hh
G4CascadeKminusPChannel.hh
G4CascadeKplusNChannel.hh
G4CascadeKplusPChannel.hh
G4CascadeKzeroBarNChannel.hh
G4CascadeKzeroBarPChannel.hh
G4CascadeKzeroNChannel.hh
G4CascadeKzeroPChannel.hh
G4CascadeLambdaNChannel.hh
G4CascadeLambdaPChannel.hh
G4CascadeMuMinusPChannel.hh
G4CascadeNNChannel.hh
G4CascadeNPChannel.hh
G4CascadeOmegaMinusNChannel.hh
G4CascadeOmegaMinusPChannel.hh
G4CascadeParameters.hh
G4CascadeParamMessenger.hh
G4CascadePiMinusNChannel.hh
G4CascadePiMinusPChannel.hh
G4CascadePiPlusNChannel.hh
G4CascadePiPlusPChannel.hh
G4CascadePiZeroNChannel.hh
G4CascadePiZeroPChannel.hh
G4CascadePPChannel.hh
G4CascadeRecoilMaker.hh
G4CascadeSampler.hh
G4CascadeSigmaMinusNChannel.hh
G4CascadeSigmaMinusPChannel.hh
G4CascadeSigmaPlusNChannel.hh
G4CascadeSigmaPlusPChannel.hh
G4CascadeSigmaZeroNChannel.hh
G4CascadeSigmaZeroPChannel.hh
G4CascadeXiMinusNChannel.hh
G4CascadeXiMinusPChannel.hh
G4CascadeXiZeroNChannel.hh
G4CascadeXiZeroPChannel.hh
G4CascadParticle.hh
G4CollisionOutput.hh
G4Dineutron.hh
G4Diproton.hh
G4ElementaryParticleCollider.hh
G4EquilibriumEvaporator.hh
G4EvaporationInuclCollider.hh
G4ExitonConfiguration.hh
G4FissionConfiguration.hh
G4Fissioner.hh
G4FissionStore.hh
G4GammaNuclAngDst.hh
G4GamP2NPipAngDst.hh
G4GamP2PPi0AngDst.hh
G4GDecay3.hh
G4HadNElastic1AngDst.hh
G4HadNElastic2AngDst.hh
G4HadNucl3BodyAngDst.hh
G4HadNucl3BodyMomDst.hh
G4HadNucl4BodyMomDst.hh
G4HyperonSampler.hh
G4InteractionCase.hh
G4IntraNucleiCascader.hh
G4InuclCollider.hh
G4InuclElementaryParticle.hh
G4InuclEvaporation.hh
G4InuclNuclei.hh
G4InuclParamAngDst.hh
G4InuclParamMomDst.hh
G4InuclParticle.hh
G4InuclParticleNames.hh
G4InuclSpecialFunctions.hh
G4KaonHypSampler.hh
G4KaonSampler.hh
G4LightTargetCollider.hh
G4LorentzConvertor.hh
G4MultiBodyMomentumDist.hh
G4NonEquilibriumEvaporator.hh
G4NP2NPAngDst.hh
G4NucleiModel.hh
G4NuclNucl3BodyAngDst.hh
G4NuclNucl3BodyMomDst.hh
G4NuclNucl4BodyMomDst.hh
G4NuclNuclAngDst.hh
G4NuclWatcher.hh
G4NumIntTwoBodyAngDst.hh
G4ParamExpTwoBodyAngDst.hh
G4ParticleLargerBeta.hh
G4ParticleLargerEkin.hh
G4Pi0P2Pi0PAngDst.hh
G4PimP2Pi0NAngDst.hh
G4PimP2PimPAngDst.hh
G4PiNInelasticAngDst.hh
G4PionNucSampler.hh
G4PipP2PipPAngDst.hh
G4PP2PPAngDst.hh
G4PreCompoundDeexcitation.hh
G4TwoBodyAngularDist.hh
G4UnboundPN.hh
G4VCascadeCollider.hh
G4VCascadeDeexcitation.hh
G4VMultiBodyMomDst.hh
G4VThreeBodyAngDst.hh
G4VTwoBodyAngDst.hh
G4WatcherGun.hh
src
coherent_elastic
de_excitation
em_dissociation
fission
gamma_nuclear
im_r_matrix
inclxx
lend
lepto_nuclear
management
particle_hp
parton_string
pre_equilibrium
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
G4NumIntTwoBodyAngDst.hh
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4NumIntTwoBodyAngDst.hh
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
// Author: Dennis Wright (SLAC)
27
// Date: 28 January 2013
28
//
29
// Description: Templated base class for numerically integrated two-body
30
// final state angular distributions in Bertini-style cascade
31
//
32
// 20130219 M. Kelsey: Rewrite with C-arrays, using template args for
33
// dimensions (c.f. G4CascadeSampler)
34
// 20130620 Address Coverity #51342; initialize angDist[] buffer in ctor
35
36
#ifndef G4NumIntTwoBodyAngDst_h
37
#define G4NumIntTwoBodyAngDst_h 1
38
39
#include "
G4VTwoBodyAngDst.hh
"
40
#include <algorithm>
41
42
template
<G4
int
NKEBINS, G4
int
NANGLES>
43
class
G4NumIntTwoBodyAngDst
:
public
G4VTwoBodyAngDst
{
44
public
:
45
enum
{
nDists
=NKEBINS,
nAngles
=NANGLES };
// For use in function arguments
46
47
G4NumIntTwoBodyAngDst
(
const
G4String
&
name
,
48
const
G4double
(&kebins)[
nDists
],
49
const
G4double
(&angles)[
nAngles
],
50
const
G4double
(&dists)[nDists][nAngles],
51
const
G4double
highKEscale,
G4int
verbose = 0)
52
:
G4VTwoBodyAngDst
(name, verbose),
tcoeff
(highKEscale),
53
labKE
(kebins),
cosBins
(angles),
angDists
(dists) {
54
std::fill(
angDist
,
angDist
+nDists, 0.);
// Initialize working buffer
55
}
56
57
virtual
~G4NumIntTwoBodyAngDst
() {;}
58
59
virtual
G4double
GetCosTheta
(
const
G4double
& ekin,
const
G4double
& pcm)
const
;
60
61
protected
:
62
G4double
tcoeff
;
// Fall-off of exponential for high energy ang. dist.
63
64
// Kinetic energies at which angular distributions are taken
65
const
G4double
(&
labKE
)[
nDists
];
66
67
// Bins of the angular distributions in cos(theta)
68
const
G4double
(&
cosBins
)[
nAngles
];
69
70
// table of numerical normalized indefinite integrals of
71
// angular distributions vs. KE and angle
72
const
G4double
(&
angDists
)[
nDists
][
nAngles
];
73
74
// Compute interpolated angular distribution between energy bins
75
void
Interpolate
(
const
G4double
& ekin)
const
;
76
mutable
G4double
angDist
[
nAngles
];
// Reusable buffer
77
};
78
79
// Implementations must be included for templated classes
80
#include "G4NumIntTwoBodyAngDst.icc"
81
82
#endif
/* G4NumIntTwoBodyAngDst_h */
geant4
tree
geant4-10.6-release
source
processes
hadronic
models
cascade
cascade
include
G4NumIntTwoBodyAngDst.hh
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:39
using
1.8.2 with
ECCE GitHub integration