Clean up total_cross_section.cpp

Remove unused includes and set the mass range as a variable so that it
is set in one place instead of three.