olympus.event_generation.mc_record

Implements MCRecord class.

Classes:

  • MCRecord

    Stores MC truth information.

MCRecord

MCRecord(event_type, sources, mc_info)

Bases: object

Stores MC truth information.

Attributes:
  • event_type (str) –

    Event type.

  • sources (list of PhotonSource) –

    List of photon sources.

  • mc_info (list of dict) –

    List of dictionaries containing MC truth information.

Source code in olympus/event_generation/mc_record.py
def __init__(self, event_type, sources, mc_info):
    """Initialize MCRecord."""
    self.event_type = event_type
    self.sources = sources
    if not isinstance(mc_info, list):
        mc_info = [mc_info]
    self.mc_info = mc_info