pymchelper.shieldhit.detector.fortran_card module

class pymchelper.shieldhit.detector.fortran_card.CardLine(data=None)[source]

Bases: object

Represents single line of detect.dat file

static any_to_element(s, align_right=True)[source]
comment = '*----0---><----1---><----2---><----3---><----4---><----5---><----6--->'
credits = '* generated by pymchelper (https://github.com/DataMedSci/pymchelper) *'
element_length = 10
no_of_elements = 7
class pymchelper.shieldhit.detector.fortran_card.EstimatorReader[source]

Bases: object

class pymchelper.shieldhit.detector.fortran_card.EstimatorWriter[source]

Bases: object

Helper class. Gives textual representation of Estimator objects.

static get_lines(estimator)[source]

Converts estimator to CardLine objects :param estimator: valid estimator object :return: tuple of CardLine objects

static get_text(estimator, add_comment=False)[source]

Converts Estimator to text :param estimator: valid Estimator object :param add_comment: if True, prepends textual representation with comment line :return: text representation (set of text lines) of Estimator