Here is the HPTEWBTagger source code for the HPTEWBTagger as developed in the references.
The HPTEWBTagger algorithm reconstructs hadronically decaying top quarks and is specifically designed for high top quark transverse momentum (>1TeV) where calorimeter granularity prevents the separate detection of the individual decay products.
The HPTEWBTagger uses tracks of charged particles (or a combination between E-cal and tracks) inside a fat jet. The tracking information is complemented by the calorimeter measurement (Hcal + Ecal + tracks) of the fat jet energy to eliminate the sensitivity to jet-to-jet fluctuations in the charged-to-neutral particle ratio. The algorithm is based on FastJet jets and their respective cluster sequences.