Geant4-11
Public Types | Public Member Functions | Data Fields | Static Public Attributes
G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 > Struct Template Reference

#include <G4CascadeData.hh>

Public Types

enum  {
  N02 =N2 , N23 =N2+N3 , N24 =N23+N4 , N25 =N24+N5 ,
  N26 =N25+N6 , N27 =N26+N7 , N28 =N27+N8 , N29 =N28+N9
}
 
enum  { N8D =N8?N8:1 , N9D =N9?N9:1 }
 
enum  { NM =N9?8:N8?7:6 , NXS =N29 }
 

Public Member Functions

 G4CascadeData (const G4int(&the2bfs)[N2][2], const G4int(&the3bfs)[N3][3], const G4int(&the4bfs)[N4][4], const G4int(&the5bfs)[N5][5], const G4int(&the6bfs)[N6][6], const G4int(&the7bfs)[N7][7], const G4double(&xsec)[NXS][NE], const G4double(&theTot)[NE], G4int ini, const G4String &aName="G4CascadeData")
 
 G4CascadeData (const G4int(&the2bfs)[N2][2], const G4int(&the3bfs)[N3][3], const G4int(&the4bfs)[N4][4], const G4int(&the5bfs)[N5][5], const G4int(&the6bfs)[N6][6], const G4int(&the7bfs)[N7][7], const G4double(&xsec)[NXS][NE], G4int ini, const G4String &aName="G4CascadeData")
 
 G4CascadeData (const G4int(&the2bfs)[N2][2], const G4int(&the3bfs)[N3][3], const G4int(&the4bfs)[N4][4], const G4int(&the5bfs)[N5][5], const G4int(&the6bfs)[N6][6], const G4int(&the7bfs)[N7][7], const G4int(&the8bfs)[N8D][8], const G4int(&the9bfs)[N9D][9], const G4double(&xsec)[NXS][NE], const G4double(&theTot)[NE], G4int ini, const G4String &aName="G4CascadeData")
 
 G4CascadeData (const G4int(&the2bfs)[N2][2], const G4int(&the3bfs)[N3][3], const G4int(&the4bfs)[N4][4], const G4int(&the5bfs)[N5][5], const G4int(&the6bfs)[N6][6], const G4int(&the7bfs)[N7][7], const G4int(&the8bfs)[N8D][8], const G4int(&the9bfs)[N9D][9], const G4double(&xsec)[NXS][NE], G4int ini, const G4String &aName="G4CascadeData")
 
void initialize ()
 
G4int maxMultiplicity () const
 
void print (G4int mult, std::ostream &os) const
 
void print (std::ostream &os=G4cout) const
 
void printXsec (const G4double(&xsec)[NE], std::ostream &os) const
 

Data Fields

const G4double(& crossSections )[NXS][NE]
 
G4int index [9]
 
G4double inelastic [NE]
 
const G4int initialState
 
G4double multiplicities [NM][NE]
 
const G4String name
 
G4double sum [NE]
 
const G4double(& tot )[NE]
 
const G4int(& x2bfs )[N2][2]
 
const G4int(& x3bfs )[N3][3]
 
const G4int(& x4bfs )[N4][4]
 
const G4int(& x5bfs )[N5][5]
 
const G4int(& x6bfs )[N6][6]
 
const G4int(& x7bfs )[N7][7]
 
const G4int(& x8bfs )[N8D][8]
 
const G4int(& x9bfs )[N9D][9]
 

Static Public Attributes

static const G4int empty8bfs [1][8] = {{0}}
 
static const G4int empty9bfs [1][9] = {{0}}
 

Detailed Description

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
struct G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >

Definition at line 52 of file G4CascadeData.hh.

Member Enumeration Documentation

◆ anonymous enum

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
anonymous enum
Enumerator
N02 
N23 
N24 
N25 
N26 
N27 
N28 
N29 

Definition at line 55 of file G4CascadeData.hh.

◆ anonymous enum

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
anonymous enum
Enumerator
N8D 
N9D 

Definition at line 58 of file G4CascadeData.hh.

58{ N8D=N8?N8:1, N9D=N9?N9:1 }; // SPECIAL: Can't dimension arrays [0]

◆ anonymous enum

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
anonymous enum
Enumerator
NM 
NXS 

Definition at line 60 of file G4CascadeData.hh.

60{ NM=N9?8:N8?7:6, NXS=N29 }; // Multiplicity and cross-section bins

Constructor & Destructor Documentation

◆ G4CascadeData() [1/4]

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::G4CascadeData ( const G4int(&)  the2bfs[N2][2],
const G4int(&)  the3bfs[N3][3],
const G4int(&)  the4bfs[N4][4],
const G4int(&)  the5bfs[N5][5],
const G4int(&)  the6bfs[N6][6],
const G4int(&)  the7bfs[N7][7],
const G4double(&)  xsec[NXS][NE],
G4int  ini,
const G4String aName = "G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >" 
)
inline

Definition at line 94 of file G4CascadeData.hh.

99 : x2bfs(the2bfs), x3bfs(the3bfs), x4bfs(the4bfs), x5bfs(the5bfs),
100 x6bfs(the6bfs), x7bfs(the7bfs), x8bfs(empty8bfs), x9bfs(empty9bfs),
101 crossSections(xsec), tot(sum), name(aName), initialState(ini) {
102 initialize();
103 }
G4double sum[NE]
static const G4int empty8bfs[1][8]
void initialize()
const G4int(& x9bfs)[N9D][9]
const G4int initialState
const G4double(& crossSections)[NXS][NE]
const G4int(& x5bfs)[N5][5]
const G4int(& x7bfs)[N7][7]
const G4double(& tot)[NE]
const G4int(& x3bfs)[N3][3]
const G4String name
static const G4int empty9bfs[1][9]
const G4int(& x8bfs)[N8D][8]
const G4int(& x6bfs)[N6][6]
const G4int(& x2bfs)[N2][2]
const G4int(& x4bfs)[N4][4]

References G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::initialize().

◆ G4CascadeData() [2/4]

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::G4CascadeData ( const G4int(&)  the2bfs[N2][2],
const G4int(&)  the3bfs[N3][3],
const G4int(&)  the4bfs[N4][4],
const G4int(&)  the5bfs[N5][5],
const G4int(&)  the6bfs[N6][6],
const G4int(&)  the7bfs[N7][7],
const G4double(&)  xsec[NXS][NE],
const G4double(&)  theTot[NE],
G4int  ini,
const G4String aName = "G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >" 
)
inline

Definition at line 106 of file G4CascadeData.hh.

111 : x2bfs(the2bfs), x3bfs(the3bfs), x4bfs(the4bfs), x5bfs(the5bfs),
112 x6bfs(the6bfs), x7bfs(the7bfs), x8bfs(empty8bfs), x9bfs(empty9bfs),
113 crossSections(xsec), tot(theTot), name(aName), initialState(ini) {
114 initialize();
115 }

References G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::initialize().

◆ G4CascadeData() [3/4]

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::G4CascadeData ( const G4int(&)  the2bfs[N2][2],
const G4int(&)  the3bfs[N3][3],
const G4int(&)  the4bfs[N4][4],
const G4int(&)  the5bfs[N5][5],
const G4int(&)  the6bfs[N6][6],
const G4int(&)  the7bfs[N7][7],
const G4int(&)  the8bfs[N8D][8],
const G4int(&)  the9bfs[N9D][9],
const G4double(&)  xsec[NXS][NE],
G4int  ini,
const G4String aName = "G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >" 
)
inline

Definition at line 118 of file G4CascadeData.hh.

124 : x2bfs(the2bfs), x3bfs(the3bfs), x4bfs(the4bfs), x5bfs(the5bfs),
125 x6bfs(the6bfs), x7bfs(the7bfs), x8bfs(the8bfs), x9bfs(the9bfs),
126 crossSections(xsec), tot(sum), name(aName), initialState(ini) {
127 initialize();
128 }

References G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::initialize().

◆ G4CascadeData() [4/4]

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::G4CascadeData ( const G4int(&)  the2bfs[N2][2],
const G4int(&)  the3bfs[N3][3],
const G4int(&)  the4bfs[N4][4],
const G4int(&)  the5bfs[N5][5],
const G4int(&)  the6bfs[N6][6],
const G4int(&)  the7bfs[N7][7],
const G4int(&)  the8bfs[N8D][8],
const G4int(&)  the9bfs[N9D][9],
const G4double(&)  xsec[NXS][NE],
const G4double(&)  theTot[NE],
G4int  ini,
const G4String aName = "G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >" 
)
inline

Definition at line 131 of file G4CascadeData.hh.

137 : x2bfs(the2bfs), x3bfs(the3bfs), x4bfs(the4bfs), x5bfs(the5bfs),
138 x6bfs(the6bfs), x7bfs(the7bfs), x8bfs(the8bfs), x9bfs(the9bfs),
139 crossSections(xsec), tot(theTot), name(aName), initialState(ini) {
140 initialize();
141 }

References G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::initialize().

Member Function Documentation

◆ initialize()

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
void G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::initialize ( )

◆ maxMultiplicity()

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
G4int G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::maxMultiplicity ( ) const
inline

Definition at line 86 of file G4CascadeData.hh.

86{ return NM+1; } // Used by G4CascadeFunctions

References G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::NM.

◆ print() [1/2]

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
void G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::print ( G4int  mult,
std::ostream &  os 
) const

◆ print() [2/2]

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
void G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::print ( std::ostream &  os = G4cout) const

◆ printXsec()

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
void G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::printXsec ( const G4double(&)  xsec[NE],
std::ostream &  os 
) const

Field Documentation

◆ crossSections

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
const G4double(& G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::crossSections)[NXS][NE]

Definition at line 73 of file G4CascadeData.hh.

◆ empty8bfs

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8, int N9>
const G4int G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::empty8bfs = {{0}}
static

Definition at line 80 of file G4CascadeData.hh.

◆ empty9bfs

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8, int N9>
const G4int G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::empty9bfs = {{0}}
static

Definition at line 81 of file G4CascadeData.hh.

◆ index

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
G4int G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::index[9]

Definition at line 62 of file G4CascadeData.hh.

◆ inelastic

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
G4double G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::inelastic[NE]

Definition at line 78 of file G4CascadeData.hh.

◆ initialState

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
const G4int G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::initialState

Definition at line 84 of file G4CascadeData.hh.

◆ multiplicities

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
G4double G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::multiplicities[NM][NE]

Definition at line 63 of file G4CascadeData.hh.

◆ name

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
const G4String G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::name

◆ sum

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
G4double G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::sum[NE]

Definition at line 75 of file G4CascadeData.hh.

◆ tot

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
const G4double(& G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::tot)[NE]

Definition at line 76 of file G4CascadeData.hh.

◆ x2bfs

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
const G4int(& G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::x2bfs)[N2][2]

Definition at line 65 of file G4CascadeData.hh.

◆ x3bfs

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
const G4int(& G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::x3bfs)[N3][3]

Definition at line 66 of file G4CascadeData.hh.

◆ x4bfs

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
const G4int(& G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::x4bfs)[N4][4]

Definition at line 67 of file G4CascadeData.hh.

◆ x5bfs

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
const G4int(& G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::x5bfs)[N5][5]

Definition at line 68 of file G4CascadeData.hh.

◆ x6bfs

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
const G4int(& G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::x6bfs)[N6][6]

Definition at line 69 of file G4CascadeData.hh.

◆ x7bfs

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
const G4int(& G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::x7bfs)[N7][7]

Definition at line 70 of file G4CascadeData.hh.

◆ x8bfs

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
const G4int(& G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::x8bfs)[N8D][8]

Definition at line 71 of file G4CascadeData.hh.

◆ x9bfs

template<int NE, int N2, int N3, int N4, int N5, int N6, int N7, int N8 = 0, int N9 = 0>
const G4int(& G4CascadeData< NE, N2, N3, N4, N5, N6, N7, N8, N9 >::x9bfs)[N9D][9]

Definition at line 72 of file G4CascadeData.hh.


The documentation for this struct was generated from the following file: