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
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4DNAPTBElasticModel.hh
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4DNAPTBElasticModel.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
// Authors: S. Meylan and C. Villagrasa (IRSN, France)
27
// Models come from
28
// M. Bug et al, Rad. Phys and Chem. 130, 459-479 (2017)
29
//
30
31
32
#ifndef G4DNAPTBElasticModel_h
33
#define G4DNAPTBElasticModel_h 1
34
35
#include <map>
36
#include "
G4DNACrossSectionDataSet.hh
"
37
#include "
G4VDNAModel.hh
"
38
#include "
G4Electron.hh
"
39
#include "
G4ParticleChangeForGamma.hh
"
40
#include "
G4LogLogInterpolation.hh
"
41
#include "
G4ProductionCutsTable.hh
"
42
#include "
G4NistManager.hh
"
43
48
class
G4DNAPTBElasticModel
:
public
G4VDNAModel
49
{
50
51
public
:
52
60
G4DNAPTBElasticModel
(
const
G4String
&applyToMaterial =
"all"
,
const
G4ParticleDefinition
*
p
= 0,
61
const
G4String
& nam =
"DNAPTBElasticModel"
);
62
67
virtual
~G4DNAPTBElasticModel
();
68
76
virtual
void
Initialise
(
const
G4ParticleDefinition
*
particle
,
const
G4DataVector
&,
G4ParticleChangeForGamma
* fpChangeForGamme=
nullptr
);
77
91
virtual
G4double
CrossSectionPerVolume
(
const
G4Material
*
material
,
92
const
G4String
& materialName,
93
const
G4ParticleDefinition
*
p
,
94
G4double
ekin,
95
G4double
emin
,
96
G4double
emax
);
97
107
virtual
void
SampleSecondaries
(std::vector<G4DynamicParticle*>*,
108
const
G4MaterialCutsCouple
*,
109
const
G4String
& materialName,
110
const
G4DynamicParticle
*,
111
G4ParticleChangeForGamma
*particleChangeForGamma,
112
G4double
tmin,
113
G4double
tmax);
114
115
protected
:
116
117
118
119
private
:
120
121
G4int
verboseLevel
;
122
std::map<G4String, double >
killBelowEnergyTable
;
123
G4double
fKillBelowEnergy
;
124
125
typedef
std::map<G4String, std::map<G4String, std::map<double, std::map<double, double> > > >
TriDimensionMap
;
126
TriDimensionMap
diffCrossSectionData
;
127
128
typedef
std::map<G4String, std::map<G4String, std::map<double, std::vector<double> > > >
VecMap
;
129
VecMap
eValuesVect
;
130
std::map<G4String, std::map<G4String, std::vector<double> > >
tValuesVec
;
131
139
void
ReadDiffCSFile
(
const
G4String
&materialName,
const
G4String
&particleName,
const
G4String
&
file
,
const
G4double
);
140
151
G4double
Theta
(
G4ParticleDefinition
* fParticleDefinition,
G4double
k
,
G4double
integrDiff,
const
G4String
&materialName);
152
162
G4double
LinLinInterpolate
(
G4double
e1
,
G4double
e2
,
G4double
e
,
G4double
xs1,
G4double
xs2);
163
173
G4double
LinLogInterpolate
(
G4double
e1
,
G4double
e2
,
G4double
e
,
G4double
xs1,
G4double
xs2);
174
184
G4double
LogLogInterpolate
(
G4double
e1
,
G4double
e2
,
G4double
e
,
G4double
xs1,
G4double
xs2);
185
202
G4double
QuadInterpolator
(
G4double
e11,
203
G4double
e12,
204
G4double
e21,
205
G4double
e22,
206
G4double
x11,
207
G4double
x12,
208
G4double
x21,
209
G4double
x22,
210
G4double
t1
,
211
G4double
t2
,
212
G4double
t
,
213
G4double
e
);
214
221
G4double
RandomizeCosTheta
(
G4double
k
,
const
G4String
&materialName);
222
223
// copy constructor and hide assignment operator
224
G4DNAPTBElasticModel
(
G4DNAPTBElasticModel
&);
// prevent copy-construction
225
G4DNAPTBElasticModel
&
operator=
(
const
G4DNAPTBElasticModel
&
right
);
// prevent assignement
226
};
227
228
#endif
geant4
tree
geant4-10.6-release
source
processes
electromagnetic
dna
models
include
G4DNAPTBElasticModel.hh
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:29
using
1.8.2 with
ECCE GitHub integration