  self.components[name] for name in [
            &#39;front_window&#39;, &#39;rear_window&#39;, &#39;dem&#39;, &#39;mli&#39;,
            &#39;calibration_foil&#39;, &#39;dead_layer&#39;
        ]
    ]

    if attenuator:
        base_comps.append(self.components[&#39;attenuator&#39;])

    fine_grids = [10, 12, 17, 11, 18, 16]

    if detector_id in fine_grids:
        comp = Compound(base_comps + [self.components[&#39;grid_covers&#39;]])
    else:
        comp = Compound(base_comps)

    ebins_1d = ener