Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4Material Namespace Reference

Functions

list f_GetFractionVector (const G4Material *material)
 
list f_GetAtomsVector (const G4Material *material)
 
list f_GetVecNbOfAtomsPerVolume (const G4Material *material)
 
list f_GetAtomicNumDensityVector (const G4Material *material)
 
void Print (G4Material &mat)
 

Variables

void(G4Material::* f1_AddElement )(G4Element *, G4int) = &G4Material::AddElement
 
void(G4Material::* f2_AddElement )(G4Element *, G4double) = &G4Material::AddElement
 

Function Documentation

list pyG4Material::f_GetAtomicNumDensityVector ( const G4Material material)

Definition at line 85 of file pyG4Material.cc.

86 {
87  list atomicNumDensityList;
88  const G4double* atomicNumDensityVec= material-> GetAtomicNumDensityVector();
89  G4int nele= material-> GetNumberOfElements();
90  for(G4int i=0; i<nele; i++) {
91  atomicNumDensityList.append(atomicNumDensityVec[i]);
92  }
93  return atomicNumDensityList;
94 }
int G4int
Definition: G4Types.hh:78
double G4double
Definition: G4Types.hh:76

Here is the caller graph for this function:

list pyG4Material::f_GetAtomsVector ( const G4Material material)

Definition at line 63 of file pyG4Material.cc.

64 {
65  list atomsList;
66  const G4int* atomsVec= material-> GetAtomsVector();
67  G4int nele= material-> GetNumberOfElements();
68  for(G4int i=0; i<nele; i++) {
69  atomsList.append(atomsVec[i]);
70  }
71  return atomsList;
72 }
int G4int
Definition: G4Types.hh:78

Here is the caller graph for this function:

list pyG4Material::f_GetFractionVector ( const G4Material material)

Definition at line 52 of file pyG4Material.cc.

53 {
54  list fracList;
55  const G4double* fracVec= material-> GetFractionVector();
56  G4int nele= material-> GetNumberOfElements();
57  for(G4int i=0; i<nele; i++) {
58  fracList.append(fracVec[i]);
59  }
60  return fracList;
61 }
int G4int
Definition: G4Types.hh:78
double G4double
Definition: G4Types.hh:76

Here is the caller graph for this function:

list pyG4Material::f_GetVecNbOfAtomsPerVolume ( const G4Material material)

Definition at line 74 of file pyG4Material.cc.

75 {
76  list nbOfAtomsPerVolumeList;
77  const G4double* nbOfAtomsPerVolumeVec= material-> GetVecNbOfAtomsPerVolume();
78  G4int nele= material-> GetNumberOfElements();
79  for(G4int i=0; i<nele; i++) {
80  nbOfAtomsPerVolumeList.append(nbOfAtomsPerVolumeVec[i]);
81  }
82  return nbOfAtomsPerVolumeList;
83 }
int G4int
Definition: G4Types.hh:78
double G4double
Definition: G4Types.hh:76

Here is the caller graph for this function:

void pyG4Material::Print ( G4Material mat)

Definition at line 97 of file pyG4Material.cc.

98 {
99  G4cout << mat;
100 }
G4GLOB_DLL std::ostream G4cout

Variable Documentation

void(G4Material::* pyG4Material::f1_AddElement)(G4Element *, G4int) = &G4Material::AddElement

Definition at line 44 of file pyG4Material.cc.

void(G4Material::* pyG4Material::f2_AddElement)(G4Element *, G4double) = &G4Material::AddElement

Definition at line 46 of file pyG4Material.cc.