Adding a Class with The Script Compiler
Step 1: Write the class definition in a separate file.
Step 2: Add the ClassDef and ClassImp macro calls to the class definition.
Step 3: Load the class with the script compiler.
root[0] .L ABCClass.C++root[1] ABC abcroot[2] abc.a = 3.2;root[3] abc.b = 4.0;root[4] abc.Dump();