<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def We(self):
 """ Total energy in electrons used for the radiative calculation """

        We = trapz_loglog(self._gam * self._nelec, self._gam * mec2)
        return We