LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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
 

Function Documentation

list pyG4Material::f_GetAtomicNumDensityVector ( const G4Material *  material)

Definition at line 85 of file pyG4Material.cc.

Referenced by export_G4Material().

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 }
list pyG4Material::f_GetAtomsVector ( const G4Material *  material)

Definition at line 63 of file pyG4Material.cc.

Referenced by export_G4Material().

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 }
list pyG4Material::f_GetFractionVector ( const G4Material *  material)

Definition at line 52 of file pyG4Material.cc.

Referenced by export_G4Material().

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 }
list pyG4Material::f_GetVecNbOfAtomsPerVolume ( const G4Material *  material)

Definition at line 74 of file pyG4Material.cc.

Referenced by export_G4Material().

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 }
void pyG4Material::Print ( G4Material &  mat)

Definition at line 97 of file pyG4Material.cc.

References mat.

Referenced by export_G4Material().

98 {
99  G4cout << mat;
100 }
Float_t mat
Definition: plot.C:40

Variable Documentation

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

Definition at line 44 of file pyG4Material.cc.

Referenced by export_G4Material().

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

Definition at line 46 of file pyG4Material.cc.

Referenced by export_G4Material().