I tried to run (a slightly modified copy of) the TTAnalyzer on a W+jets sample, and got a segmentation fault. I did not go through all the details, but I guess that this is because there is no top quark in the event - comparing to -1 (the initial value of gen_t etc. somewhere above) instead of to 0 on https://github.com/cp3-llbb/TTAnalysis/blob/master/plugins/TTAnalyzer.cc#L1093 seems to fix the problem. Does that make sense? (if yes I can create pull request)