Code for Powheg+Pythia and mc@nlo+Herwig TTbar Fit