Can Hamiltonian MCMC be used effectively if the likelihood is identically zero for some parameters?

Can you tell a bit more about the structure of the likelihood?