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
G4PenelopeCrossSection.hh
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4PenelopeCrossSection.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
//
27
// Author: Luciano Pandola
28
//
29
// History:
30
// -----------
31
// 18 Mar 2010 L. Pandola 1st implementation.
32
// 09 Mar 2012 L. Pandola Add public method (and machinery) to return
33
// the absolute and the normalized shell cross
34
// sections independently.
35
//
36
// -------------------------------------------------------------------
37
//
38
// Class description:
39
// This class is a container for cross sections and transport momenta
40
// calculated by Penelope models (ionisation, bremsstrahlung). It stores
41
// PhysicsTables/PhysicsVectors of
42
// a) the "hard quantities" (above the threshold), 0-th order (cross section)
43
// 1-st order (= stopping XS), 2-nd order (= straggling XS)
44
// b) the "soft quantities" (below threshold), 0-th order (cross section)
45
// 1-st order (= stopping XS), 2-nd order (= straggling XS)
46
// c) total hard cross sections for individual oscillators
47
// vs. energy. Two versions are available, one with normalized values
48
// (good for sampling) and one with absolute values.
49
//
50
// The interface *always* uses energy and cross sections, while internally
51
// log(energy) and log(XS) are used.
52
//
53
// One instance per each cut-material couple should be created by the
54
// calling class.
55
//
56
// Public method to retrieve hard cross section, soft stopping power,
57
// total cross section and hard shell cross sections.
58
//
59
// Notice: all quantities stored here are *per molecule*
60
//
61
// -------------------------------------------------------------------
62
63
#ifndef G4PENELOPECROSSSECTION_HH
64
#define G4PENELOPECROSSSECTION_HH 1
65
66
#include "
globals.hh
"
67
68
class
G4PhysicsTable
;
69
class
G4DataVector
;
70
71
class
G4PenelopeCrossSection
72
{
73
74
public
:
75
//constructor: one has to give the number of points in each PhysicsVector
76
//(= dimension of the energy grid) and the number of shells (0 is the
77
//default).
78
G4PenelopeCrossSection
(
size_t
nOfEnergyPoints,
size_t
nOfShells=0);
79
//
80
~G4PenelopeCrossSection
();
81
83
G4double
GetTotalCrossSection
(
G4double
energy
)
const
;
85
G4double
GetHardCrossSection
(
G4double
energy)
const
;
87
G4double
GetSoftStoppingPower
(
G4double
energy)
const
;
89
G4double
GetShellCrossSection
(
size_t
shellID,
G4double
energy)
const
;
91
G4double
GetNormalizedShellCrossSection
(
size_t
shellID,
G4double
energy)
const
;
92
93
size_t
GetNumberOfShells
()
const
{
return
numberOfShells
;};
94
98
void
AddCrossSectionPoint
(
size_t
binNumber,
99
G4double
energy,
G4double
XH0,
G4double
XH1,
100
G4double
XH2,
101
G4double
XS0,
G4double
XS1,
G4double
XS2);
102
void
AddShellCrossSectionPoint
(
size_t
binNumber,
103
size_t
shellID,
G4double
energy,
G4double
xs);
104
void
NormalizeShellCrossSections
();
105
106
private
:
107
G4PenelopeCrossSection
&
operator=
(
const
G4PenelopeCrossSection
&
right
);
108
G4PenelopeCrossSection
(
const
G4PenelopeCrossSection
&);
109
110
G4bool
isNormalized
;
111
112
size_t
numberOfEnergyPoints
;
113
size_t
numberOfShells
;
114
115
//all tables are log. XS vs. log E
116
117
//XS0, XS1, XS2 in Penelope nomenclature
118
G4PhysicsTable
*
softCrossSections
;
119
120
//XH0, XH1, XH2 in Penelope nomenclature
121
G4PhysicsTable
*
hardCrossSections
;
122
123
//XS for individual shells
124
G4PhysicsTable
*
shellCrossSections
;
125
G4PhysicsTable
*
shellNormalizedCrossSections
;
126
127
};
128
129
#endif
130
geant4
tree
geant4-10.6-release
source
processes
electromagnetic
lowenergy
include
G4PenelopeCrossSection.hh
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:31
using
1.8.2 with
ECCE GitHub integration