Example of Use
gROOT->LoadMacro("startmacro.C") // load shared libs
gROOT->LoadMacro("MyEvent.C"); // 'compile' class
MyEvent* m = new MyEvent("MyRootFile.root"); // create MyEvent object
m->Go(500); // loop over 500 events. Go contains your analysis code
m->Go() // look at remainder of file
m->HClr(); // clear histograms
m->Init("AnotherRootFile.root");
delete m; // prior to reloading macro
gROOT->LoadMacro("MyEvent.C"); // 'compile' class
- Its easy to define macros to hold the gRoot directives.