base for detector class