Beispiel #1
0
class InstrumentContainer(Container):
    """Storage of header info that does not change with event. This is a
    temporary hack until the Instrument module and database is fully
    implemented.  Eventually static information like this will not be
    part of the data stream, but be loaded and accessed from
    functions.
    """

    subarray = Field(SubarrayDescription("MonteCarloArray"),
                     "SubarrayDescription from the instrument module")
    optical_foclen = Field(Map(ndarray), "map of tel_id to focal length")
    tel_pos = Field(Map(ndarray), "map of tel_id to telescope position")
    pixel_pos = Field(Map(ndarray), "map of tel_id to pixel positions")
    telescope_ids = Field([], "list of IDs of telescopes used in the run")
    num_pixels = Field(Map(int), "map of tel_id to number of pixels in camera")
    num_channels = Field(Map(int), "map of tel_id to number of channels")
    num_samples = Field(Map(int), "map of tel_id to number of samples")
    geom = Field(Map(None), 'map of tel_if to CameraGeometry')
    cam = Field(Map(None), 'map of tel_id to Camera')
    optics = Field(Map(None), 'map of tel_id to CameraOptics')
    cluster_matrix_7 = Field(Map(ndarray), 'map of tel_id of cluster 7 matrix')
    cluster_matrix_19 = Field(
        Map(ndarray),
        'map of tel_id of cluster 19 matrix'
    )
    patch_matrix = Field(Map(ndarray), 'map of tel_id of patch matrix')
    mirror_dish_area = Field(Map(float),
                             "map of tel_id to the area of the mirror dish",
                             unit=u.m ** 2)
    mirror_numtiles = Field(Map(int),
                            "map of tel_id to the number of \
                            tiles for the mirror")
Beispiel #2
0
class DL1Container(Container):
    """ DL1 Calibrated Camera Images and associated data"""
    tel = Field(Map(DL1CameraContainer), "map of tel_id to DL1CameraContainer")
Beispiel #3
0
 class ParentContainer(Container):
     x = Field(0, "some value")
     children = Field(Map(), "map of tel_id to child")
Beispiel #4
0
class CHECMCEventContainer(Container):
    """
    Monte-Carlo
    """
    tel = Field(Map(CHECMCCameraEventContainer),
                "map of tel_id to MCCameraEventContainer")
Beispiel #5
0
class SST1MContainer(Container):
    tels_with_data = Field([], "list of telescopes with data")
    tel = Field(Map(SST1MCameraContainer),
                "map of tel_id to SST1MCameraContainer")