pymchelper.utils.pld2sobp module

Reads PLD file in IBA format and convert to sobp.dat which is readable by FLUKA with source_sampler.f and by SHIELD-HIT12A.

TODO: Translate energy to spotsize.

class pymchelper.utils.pld2sobp.Layer(spotsize, energy, meterset, elsum, repaints, elements)[source]

Bases: object

Class for handling Layers.

class pymchelper.utils.pld2sobp.PLDRead(fpld)[source]

Bases: object

Class for handling PLD files.

pymchelper.utils.pld2sobp.dedx_air(energy)[source]

Calculate the mass stopping power of protons in air following ICRU 49. Valid from 1 to 500 MeV only.

Params energy:Proton energy in MeV
Returns:mass stopping power in MeV cm2/g
pymchelper.utils.pld2sobp.main(args=None)[source]

Main function of the pld2sobp script.