add macro & shell code for EleTOP and MuoTOP