Change log file extension.
Fix the ROOT.Double casting.
Add logging to file for ttbarest.py