<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def Wp(self):
 """Total energy in protons """

        Wp = trapz_loglog(self._Ep * self._J, self._Ep) * u.GeV
        return Wp.to("erg")