Study of the effect of process parameters on the thermophilic anaerobic digestion of sewage sludge, evaluation of a thermal sludge pre-treatment and overall energetic assessment