..Trojans are basic files that phone home and as such a reformat will clean the drive of their presence.
Still, here are a couple of addition steps that I do which cleans out every virus that I'm familiar with..Since you're doing a clean install..First, I would shut down the machine with the Windows XP CD in the CD-Rom drive, then remove the CMOS battery for 15 minutes. After 15 minutes reinstall the battery and reboot the computer. As long as the CD-Rom drive is set to boot first in the BIOS, the XP installation process will start. At that point, make sure that you delete the current C partition and recreate a new one, then reformat and reinstall the operating system.
It's just a little more work to remove the battery but it helps clean out any memory resident viruses that might be there...The viruses you mentioned are NOT such viruses but it's better to be safe than sorry.
Hope this helps.
Grif
Will reformatting the HD remove the following viruses?
Trojan.cmapp,
Trojan.Elitebar
Hacktool
I?m doing a clean install of XP Home on a PIII 500MHZ, 256MB ram with 16GB HD running Windows 98. I?m asking because I?m aware there are certain viruses that persist even after a HD reformatting. I?m unfamiliar with the viruses mentioned above (this is a 3rd party?s system) and haven?t been able to reliably verify whether these fall into that category. As always any information is appreciated and, as always, genuinely funny comebacks, wisecracks, putdowns or overall ?user-surliness? will be appropriately rewarded. Thanks in advance!

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic