//================================================================== // Automatic script for doing analysis with ana.cc //================================================================== { //timer start //gROOT->Time(); // "k" = keep the generated shared library // "k" simply loads the shared library if the files weren't // modified from the last time // "f" = force compilation of the shared library every time // use "f" when you modify the headers that have names different // from the main .cc file gSystem->CompileMacro("HighLevelObjects.cc","k"); gSystem->CompileMacro("ana.cc","f"); ana* myana = new ana(); myana->OpenHistFile("output.ana.root"); myana->LoadFile(); myana->EventLoop(); myana->CloseHistFile(); //timer end //gROOT->Time(); }