Reading a tree with a particular form

The simplest thing you can try is (then inspect the newly created files):
AMPT->MakeClass();