New macro for invariant mass analysis from ESD (Christian)