#include #include "TObject.h" class TestClass : public TObject { private: // first a very simple float variables float fX; float fY; int ftemp; //! this exclamation mark means "Don't generate the streamer //try something more complicated, like an array int counter; int* arr; //[counter] public: TestClass() {fX=-1; fY=-1;counter=0;} void Print() const; void SetX(float x) {fX=x;} void SetY(float y) {fY=y;} float GetX() {return fX;} float GetY() {return fY;} void SetArray(int i); void PrintArray(); ClassDef (TestClass,1) // this is comment for TestClass // second parameter is version number. If equal to zero then no streamers are generated };