analysis macro for modular rich detector