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