LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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
 
G4Material *(* f1_GetMaterial )(const G4String &, G4bool) = &G4Material::GetMaterial
 
G4Material *(* f2_GetMaterial )(G4double, G4double, G4double) = &G4Material::GetMaterial
 
G4Material *(* f3_GetMaterial )(size_t, G4double) = &G4Material::GetMaterial
 

Function Documentation

list pyG4Material::f_GetAtomicNumDensityVector ( const G4Material *  material)

Definition at line 91 of file pyG4Material.cc.

Referenced by export_G4Material().

92 {
93  list atomicNumDensityList;
94  const G4double* atomicNumDensityVec= material-> GetAtomicNumDensityVector();
95  G4int nele= material-> GetNumberOfElements();
96  for(G4int i=0; i<nele; i++) {
97  atomicNumDensityList.append(atomicNumDensityVec[i]);
98  }
99  return atomicNumDensityList;
100 }
list pyG4Material::f_GetAtomsVector ( const G4Material *  material)

Definition at line 69 of file pyG4Material.cc.

Referenced by export_G4Material().

70 {
71  list atomsList;
72  const G4int* atomsVec= material-> GetAtomsVector();
73  G4int nele= material-> GetNumberOfElements();
74  for(G4int i=0; i<nele; i++) {
75  atomsList.append(atomsVec[i]);
76  }
77  return atomsList;
78 }
list pyG4Material::f_GetFractionVector ( const G4Material *  material)

Definition at line 58 of file pyG4Material.cc.

Referenced by export_G4Material().

59 {
60  list fracList;
61  const G4double* fracVec= material-> GetFractionVector();
62  G4int nele= material-> GetNumberOfElements();
63  for(G4int i=0; i<nele; i++) {
64  fracList.append(fracVec[i]);
65  }
66  return fracList;
67 }
list pyG4Material::f_GetVecNbOfAtomsPerVolume ( const G4Material *  material)

Definition at line 80 of file pyG4Material.cc.

Referenced by export_G4Material().

81 {
82  list nbOfAtomsPerVolumeList;
83  const G4double* nbOfAtomsPerVolumeVec= material-> GetVecNbOfAtomsPerVolume();
84  G4int nele= material-> GetNumberOfElements();
85  for(G4int i=0; i<nele; i++) {
86  nbOfAtomsPerVolumeList.append(nbOfAtomsPerVolumeVec[i]);
87  }
88  return nbOfAtomsPerVolumeList;
89 }
void pyG4Material::Print ( G4Material &  mat)

Definition at line 103 of file pyG4Material.cc.

References mat.

Referenced by export_G4Material().

104 {
105  G4cout << mat;
106 }
Float_t mat
Definition: plot.C:38

Variable Documentation

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

Definition at line 42 of file pyG4Material.cc.

Referenced by export_G4Material().

G4Material*(* pyG4Material::f1_GetMaterial) (const G4String &, G4bool) = &G4Material::GetMaterial

Definition at line 48 of file pyG4Material.cc.

Referenced by export_G4Material().

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

Definition at line 44 of file pyG4Material.cc.

Referenced by export_G4Material().

G4Material*(* pyG4Material::f2_GetMaterial) (G4double, G4double, G4double) = &G4Material::GetMaterial

Definition at line 50 of file pyG4Material.cc.

Referenced by export_G4Material().

G4Material*(* pyG4Material::f3_GetMaterial) (size_t, G4double) = &G4Material::GetMaterial

Definition at line 52 of file pyG4Material.cc.

Referenced by export_G4Material().