LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
pyG4Element Namespace Reference

Functions

list f_GetRelativeAbundanceVector (const G4Element *element)
 
void Print (G4Element &ele)
 

Function Documentation

list pyG4Element::f_GetRelativeAbundanceVector ( const G4Element *  element)

Definition at line 44 of file pyG4Element.cc.

Referenced by export_G4Element().

45 {
46  list aList;
47  const G4double* aVec= element-> GetRelativeAbundanceVector();
48  G4int niso= element-> GetNumberOfIsotopes();
49  for(G4int i=0; i<niso; i++) {
50  aList.append(aVec[i]);
51  }
52  return aList;
53 }
void pyG4Element::Print ( G4Element &  ele)

Definition at line 56 of file pyG4Element.cc.

Referenced by export_G4Element(), export_G4Event(), export_G4PrimaryParticle(), export_G4PrimaryVertex(), geo::GeometryCore::MaterialName(), and g4b::PrimaryParticleInformation::MCParticleIndex().

57 {
58  std::cout << ele; // problem with G4cout. (delayed message)
59 }