def METHOD_NAME(self, key):
    if not isinstance(key, parameters.showerParameters):
        logger.error("parameter key needs to be of type NuRadioReco.framework.parameters.showerParameters")
        raise ValueError("parameter key needs to be of type NuRadioReco.framework.parameters.showerParameters")
    return self._parameters[key]