This: http://root.cern.ch/drupal/content/adding-your-class-root-classdef says to put ClassDef “somewhere” in your class definition.
This: http://root.cern.ch/root/Using.html claims that ClassDef MUST be the last line of your class definition. It’s even in bold text. I know that page is old, but it’s what comes up on Google when I search for how to add my own class to ROOT.
Furthermore, these two pages seem to have a different understanding of the meaning of “definition” than me. I thought the declaration is the stuff that typically goes into a .h file, while the definition == the implementation and goes in a .C/.cxx file. Which do they mean? What do I do if I don’t separate my code into .h/.C but just have a simple .C file, will putting ClassDef there work properly?