pymchelper.readers.fluka module

class pymchelper.readers.fluka.FlukaReader(filename)[source]

Bases: pymchelper.readers.common.Reader

corename

corename_fort.XX. :return: corename part of output file or None in case filename doesn’t follow Fluka naming pattern

Type:Fluka output filenames follow this pattern
parse_data(estimator)[source]

TODO :param estimator: an Estimator object, will be modified here and filled with data

parse_resnuclei(estimator)[source]

TODO add support for resnuclei RESNUCLEi Scores residual nuclei produced in inelastic interactions on a region basis :param estimator: an Estimator object, will be modified here and filled with data

parse_usrbdx(estimator)[source]

USRBDX defines a detector for a boundary crossing fluence or current estimator :param estimator: an Estimator object, will be modified here and filled with data

parse_usrbin(estimator)[source]

USRBIN scores distribution of one of several quantities in a regular spatial structure (binning detector) independent from the geometry. :param estimator: an Estimator object, will be modified here and filled with data

parse_usrtrack(estimator)[source]
Parameters:estimator – an Estimator object, will be modified here and filled with data

USRTRACK defines a detector for a track-length fluence estimator

read_data(estimator, nscale=1)[source]

TODO :param estimator: an Estimator object, will be modified here and filled with data

class pymchelper.readers.fluka.FlukaReaderFactory(filename)[source]

Bases: pymchelper.readers.common.ReaderFactory

Class responsible for discovery of filetype.

get_reader()[source]

Try reading header of Fluka binary file and return a corresponding FlukaReader object

Returns:FlukaReader class if file is digested by Usrxxx Flair reader. None is returned otherwise