|
ROOT 6.12/06 Reference Guide |
Simple Event class example.
execute as: .x tree0.C++
You have to copy it first to a directory where you have write access! Note that .x tree0.C cannot work with this example
After running this macro create an instance of Det and Event
now you can see the effect of the ClassDef() and ClassImp() macros. (for the Det class these commands are commented!) For instance 'e' now knows who it is:
whereas d does not.
The methods that are added by the ClassDef()/Imp() marcro can be listed with
Definition in file tree0.C.